Bill
|
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.
|
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
|
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.
|
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.
|
Oh I just realized you said above the problem does not occur with a non Artisteer theme.
|
|
Bill
|
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
|
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.
|
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
|
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.
|
Hey Bill what forum did you find the answer on, I'm always looking for resources like that.
|
|
Bill
|
http://forums.devnetwork.net/index.php
|
|