SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

J 1.5: repeated server error warnings session.php

5 years 11 months ago #120920 by allfive
My server error logs are getting huge over the past four days with the same error:

[Wed Jan 06 14:54:56 2016] [warn] [client 207.46.13.56] mod_fcgid: stderr: PHP Notice: Only variable references should be returned by reference in (mysite)/httpdocs/libraries/joomla/session/session.php on line 343


What do I need to do to correct this?

My Site

(I know I need to upgrade. This week's task.)

Please Log in to join the conversation.

5 years 11 months ago #120931 by Nick
Hi Don,

You can delete the error log and it will be recreated at the next error.

By the way, the message is simply a notice rather than a fatal error. It shouldn't be affecting your site negatively.

Also, someone might be trying to hack your site. Please give www.ostraining.com/blog/joomla/hotfixes/ a read.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 11 months ago #120932 by Valentin
Hi Allfive,

Probably you need to apply a recent security patch as this tutorial explains: www.ostraining.com/blog/joomla/security-joomla-3-4-7/

Check "Joomla 2.5 and 1.5 security patches" and "Backwards compatiblity for extensions" sections.

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 11 months ago #120958 by allfive
Thanks for the hotfix link, Nick. I had previously applied both security patch fixes announced in December. So I reapplied the fix you linked to again. :)

Valentin,

Yes, I'm on an old version of PHP. I can change that but don't know how to change this incompatibility issue, if it should arise:

The update may effect your extension(s) if you are using $_SESSION to read or write data shared with the Joomla core or other extensions.

Extensions using $_SESSION should be adjusted to use JSession instead of $_SESSION directly.


Thanks!

Please Log in to join the conversation.

5 years 10 months ago #120961 by Nick
Hi Don,

Great!

As to the compatibility issue, I'm not sure it will be applicable in your case. I'd recommend focusing your energy on migrating to Joomla 3 instead.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 10 months ago #120965 by allfive
Nick, Valentin, forgot to mention the site is up, as it must have been for you. I got locked out by Admin Tools when I first posted, and the lockout showed the 500 error instead of an Admin Tools lockout message.

Since doing the session.php fix, again, as you suggested, I'm getting a few new errors but not the many session errors.

From an IP that claims to be Yahoo Japan:

[Wed Jan 06 18:00:17 2016] [warn] [client 183.79.223.20] mod_fcgid: stderr: PHP Notice: Undefined offset: 1 in /var/www/vhosts/artists-bill-of-rights.org/httpdocs/components/com_content/models/category.php on line 129
[Wed Jan 06 18:00:17 2016] [warn] [client 183.79.223.20] mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/vhosts/artists-bill-of-rights.org/httpdocs/components/com_content/models/category.php on line 164
[Wed Jan 06 18:01:25 2016] [warn] [client 183.79.223.20] mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$title in /var/www/vhosts/artists-bill-of-rights.org/httpdocs/components/com_sef/sef_incl.php on line 0


This looks like a hack from the USSR?

[Wed Jan 06 18:06:48 2016] [error] [client 37.194.194.193] client denied by server configuration: /var/www/vhosts/artists-bill-of-rights.org/httpdocs/license.php


But this apparently is a Google bot:

[Wed Jan 06 18:11:04 2016] [warn] [client 66.249.66.102] mod_fcgid: stderr: PHP Notice: Uninitialized string offset: 0 in /var/www/vhosts/artists-bill-of-rights.org/httpdocs/components/com_sef/sef_incl.php on line 0


When I access the front end, I get what I think are old errors that I haven't been able to eliminate:

[Wed Jan 06 18:41:29 2016] [error] [client 69.64.216.96] File does not exist: /var/www/vhosts/artists-bill-of-rights.org/httpdocs/media/system/js/mootools-more.js, referer: artists-bill-of-rights.org/
[Wed Jan 06 18:41:30 2016] [error] [client 69.64.216.96] File does not exist: /var/www/vhosts/artists-bill-of-rights.org/httpdocs/media/system/js/mootools-more.js, referer: artists-bill-of-rights.org/


At least the session.php errors are gone!

Now to figure how to discover which extensions us $_SESSION and how to change to them to JSession.

Or maybe just get to work on upgrading and hope it all holds together for a few more days. :)

Please Log in to join the conversation.

5 years 10 months ago #120966 by allfive
Whoops. Saw your reply after I posted.

So I'll need to change the PHP version for my domain so I can begin migrating. You don't think this will break the 1.5 site, if I understand you correctly.

:)

Please Log in to join the conversation.

5 years 10 months ago #120969 by Nick
Since you'd be running both versions, I'd recommend the latest PHP 5.3 version or PHP 5.4. Once you've made the move to Joomla 3, you can upgrade it to PHP 5.4 or higher.

Hope this helps! Let us know if you have any questions and we'll be glad to answer.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!