ody3307
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Side Disappeared after upgrade to 2.7!!!!Can you get into your admin area?
Forum: Fixing WordPress
In reply to: Blog not appearingI had a similar problem recently. My host is also bluehost.com. My account was temporarily suspended due to massive amounts of slow queries.
When I talked to Bluehost support, she told me that although my installation of wp showed as 2.7, her end of things showed a 2.6 installation. She told me they had seen similar problems in the past when the original wp installation was handled via the Fantastico installer (which was how I installed wp 2 years ago).
The problem was resolved by re-installing wp 2.7 using the SimpleScripts installer instead. Bluehost did this while I was on the phone with them (you just gotta love Bluehost support). I have had no problems since.
Although I never found out what the underlying problem was, it had something to do with the Fantastico installation. By using SimpleScripts everything was resolved. The SimpleScripts link is in your Bluehost cpanel.
Forum: Fixing WordPress
In reply to: WordPress 2.7 Emptying Global Variables Before FooterAlright, I figured this out after fiddling with it for hours. Also learned something new about php. Documentation on php.net was non-existent or I didn’t find it.
Here’s how you do it.
In the header you declare the variable with the GLOBAL keyword (just like you thought).But, in the footer you must do the same thing. First, declare the variable as GLOBAL again. Then you can echo it.
So …
in the header fileglobal $my_variable; $my_variable = "some arbitrary value";
Then …
in the footer fileglobal $my_variable; echo $my_variable;
And …
Your footer will display “some arbitrary value”Forum: Fixing WordPress
In reply to: I switched themes and lost access to Admin sectionGo to the admin area directly by typing in this url:
https://www.yourdomainname.com/wp-admin
This should get you to your admin area where you can undo the changes and get the theme fixed.
Forum: Fixing WordPress
In reply to: post via email/google apps questionsCheck the documentation here:
Forum: Fixing WordPress
In reply to: Import data from a regular website (created in Dreamweaver)Not true. This can be done.
Are you proficient at all with regex? If the html files are all in the same format, this is a fairly simple project.Forum: Fixing WordPress
In reply to: Getting a Parse Error, not sure whyIf this is all of it …
There are characters and lines missing. It should look something like this the code below./**
* Runs just before PHP shuts down execution.
*
* @access private
* @since 1.2.0
*/
function shutdown_action_hook() {
do_action(‘shutdown’);
wp_cache_close();
}
register_shutdown_function(‘shutdown_action_hook’);$wp->init(); // Sets up current user.
// Everything is loaded and initialized.
do_action(‘init’);?>
Forum: Fixing WordPress
In reply to: Unexpected T_CONSTANT_ENCAPSED_STRING on single.phpThis section of code is wrong. There should be a closing single quote.
<?php edit_post_link(‘Edit’, ‘ | ‘, ‘); ?>
Edit is wrapped in single quotes, followed by a comma …
Space Post Space is wrapped by single quotes, followed by a comma …
Then there is a single quote. There should be 2 single quotes and probably somethin between them.Forum: Fixing WordPress
In reply to: in_category used in footerThis syntax will only work from within a function.
Forum: Fixing WordPress
In reply to: Unexpected T_CONSTANT_ENCAPSED_STRING on single.phpNo, you don’t want to do that! This portion of code is using the alternate php syntax.
Let me take a look here … brb
Forum: Fixing WordPress
In reply to: Parse error questionI’ve never seen code written like this.
You have a function that starts on line 150 and never closes.
Forum: Fixing WordPress
In reply to: Unexpected T_CONSTANT_ENCAPSED_STRING on single.phpI see. Okay let’s try this…
All php statements must end with the semicolon. So, make sure the semicolons end each of these 2 statements. Then look in the lines above these statements for another statement that is missing the semicolon.
It’s likely that if this mistake exist once in this file, it exists elsewhere in the file as well.
As a test, I added your code to my single.php page (without semicolon); it worked fine. But it was the last line of code on the page. When I moved this line of code above another php statement though, the code failed.
When I added the semicolon, everything worked again. It is just a quick test but it did prove the lack of the semicolons will cause problems.
Forum: Fixing WordPress
In reply to: Index page shows no postsWent to your site to see what was up and found this:
…and no thanks to the horrible support at WordPress…
Gotta tell ya, doesn’t give me a warm and fuzzy. If you’ll do what Ipstenu asked above. We’ll try to help.
Forum: Fixing WordPress
In reply to: WordPress 2.7 Emptying Global Variables Before FooterAs far as I know, the global assignment keyword can only be used within a function. Please correct me if I am wrong.
Forum: Fixing WordPress
In reply to: Getting a Parse Error, not sure whyNeed to see the code on line 544 (also, code directly above it). Can you paste it here?