Error HELP- Can't use a blog page


Author Message
Bill

Posted: 2/12/2009
Quote message 

In wordpress when I change the posts page to be a static page I get this error when I visit the page:

PHP Fatal error: Only variables can be passed by reference in D:\Program Files\Ensim\WEBppliance\SiteData\Domains\doverma.org\ROOT\Inetpub\wwwroot\wordpress\wp-includes\query.php on line 2548

It doesn't happen if I use a template not made with artisteer. Any ideas how to fix that anyone?
 
Dan E.

Posted: 2/12/2009
Quote message 

Hi can you tell us what version of Wordpress you are using and what version of PHP is installed?

Looks like you are on a Windows Server also. In a perfect World, you really want to be on a Linux / Unix server for this stuff.
 
Bill

Posted: 2/13/2009
Quote message 

Quote Dan E.:

Hi can you tell us what version of Wordpress you are using and what version of PHP is installed?

Looks like you are on a Windows Server also. In a perfect World, you really want to be on a Linux / Unix server for this stuff.


Yeah, windows server. Not my decision. Its 2.7 and php is 4.2.3
 
Dan E.

Posted: 2/13/2009
Quote message 

Quote Bill:

Yeah, windows server. Not my decision. Its 2.7 and php is 4.2.3

Most likely its PHP 4.2.3 thats the problem. That is a very old version.

Can you revert back to the default Wordpress theme and see if the error is still happening. This will rule out whether or not its a problem with Artisteer.

 
Dan E.

Posted: 2/13/2009
Quote message 

Oh I just realized you said above the problem does not occur with a non Artisteer theme.
 
Bill

Posted: 2/13/2009
Quote message 

Quote Dan E.:

Oh I just realized you said above the problem does not occur with a non Artisteer theme.


I actually still get an error, its just a different error if I switch themes.
 
Bill

Posted: 2/13/2009
Quote message 

Quote Dan E.:

Oh I just realized you said above the problem does not occur with a non Artisteer theme.


No error at all under Default wordpress theme. Just Artisteer. That other Error I just said in the above post was something unrelated.

 
Dan E.

Posted: 2/13/2009
Quote message 

If there is any way you can have yout theme tried on a Linux server running PHP 5.x. That would be the final true test to see where the problem is. I'd be happy to pop it on my test server if you like.
 
Bill

Posted: 2/13/2009
Quote message 

Quote Dan E.:

If there is any way you can have yout theme tried on a Linux server running PHP 5.x. That would be the final true test to see where the problem is. I'd be happy to pop it on my test server if you like.


Hi, thanks. I have found the answer to the problem by posting on a php forum. If anyone else runs into this problem the answer is:

OK simple answer
Replace the single line that says

$this->queried_object = & get_page(get_option('page_for_posts'));

with the two lines

1. $tmpPageVariable = get_option('page_for_posts');
2. $this->queried_object = & get_page($tmpPageVariable);

Thanks for looking and trying to help.

 
Dan E.

Posted: 2/13/2009
Quote message 

Hey Bill what forum did you find the answer on, I'm always looking for resources like that.
 
Bill

Posted: 2/13/2009
Quote message 

http://forums.devnetwork.net/index.php