Jump to content


cant log in any more - function deprecated in php 5


7 replies to this topic

#1 vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 10 February 2010 - 09:35 AM

Hi guys,

My hoster (one.com) recently upgraded to the latest php release.
Since this I cannot seem to log into my etomite manager anymore.
I think I isntalled version 0.6.x but I'm not entirely sure (I cannot check since I cannot log in...)
I can see the mogin screen, after login in, I just get an error message:

Quote

Deprecated: Assigning the return value of new by reference is deprecated in /folderfolderfolder/manager/includes/browsercheck.inc.php on line 15

anyone else seen this?
How can I solve this?

Edited by vampke2, 10 February 2010 - 09:35 AM.


#2 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 10 February 2010 - 10:54 AM

View Postvampke2, on 10 February 2010 - 09:35 AM, said:

Hi guys,

My hoster (one.com) recently upgraded to the latest php release.
Since this I cannot seem to log into my etomite manager anymore.
I think I isntalled version 0.6.x but I'm not entirely sure (I cannot check since I cannot log in...)
I can see the mogin screen, after login in, I just get an error message:



anyone else seen this?
How can I solve this?
You have to remove the & (value by reference which is not allowed on objects in php5) before the variable on line 15.

change
$client =& new phpSniff($GET_VARS['UA'],$sniffer_settings);
to
$client = new phpSniff($GET_VARS['UA'],$sniffer_settings);


This and several other php 5 bugs are listed in a topic somewhere in this forum but I couldn't find it.

#3 vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 10 February 2010 - 12:06 PM

View PostCris D., on 10 February 2010 - 10:54 AM, said:

You have to remove the & (value by reference which is not allowed on objects in php5) before the variable on line 15.

change
$client =& new phpSniff($GET_VARS['UA'],$sniffer_settings);
to
$client = new phpSniff($GET_VARS['UA'],$sniffer_settings);


This and several other php 5 bugs are listed in a topic somewhere in this forum but I couldn't find it.

thanks Chris, this allowed me to log in.
I noticed I'm still at eto 0.6.1.3 Does the latest release also has this problem?

#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,505 posts
  • Gender:Male

Posted 10 February 2010 - 03:56 PM

I have been trying to get v1.2 completed and released as it will resolve all PHP deprecation issues... It would be done already if I hadn't accidentally deleted my dev copy from my WAMP server which has all of the newest software packages...

#5 vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 10 February 2010 - 08:52 PM

ouch, that had to hurt!
what else will be new?
Multilanguage support is a feature that is high on my wishlist (in case you would care...)

#6 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,505 posts
  • Gender:Male

Posted 11 February 2010 - 12:19 AM

View Postvampke2, on 10 February 2010 - 08:52 PM, said:

ouch, that had to hurt!
what else will be new?
Multilanguage support is a feature that is high on my wishlist (in case you would care...)

Yeah, it hurt, but not too bad... Not unless I've forgotten some of what I've fixed...

Being as this will only be a patch release it won't include any major features, just, well, bug fixes... Oh, yeah, and full recursive parsing...

#7 vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 11 February 2010 - 09:21 AM

View PostRalph, on 11 February 2010 - 12:19 AM, said:

Yeah, it hurt, but not too bad... Not unless I've forgotten some of what I've fixed...

Being as this will only be a patch release it won't include any major features, just, well, bug fixes... Oh, yeah, and full recursive parsing...

"So Ralph!
How about that multilanguage support!"
/breezy_tone
;)
Seriously: I remember a rather old post somewhere around here where you announced that this would be available in the "near future".
Any news on this?
I still haven't found a proper solution for multilanguage sites using etomite.
I noticed that this question has been asked many times but is always answered with "this question has been asked many times, please search the forum". I did but this was the only answer I came up with!

The best way I think is to have multiple installations in different directories. This however will not allow a direct link to the translated page, since the pagename may differ in a different language.

From an SEO point of view the solution with "en_page.html" and "fr_page.html" does not seem the best and does not allow different pagenames for different languages. Ideally, the url would be like site.tld/en/my_page.html and site.tld/fr/ma_page.html.
Possibly this could be achieved using .htaccess magic

I would love to hear other/specialist opinions on the matter.

#8 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,505 posts
  • Gender:Male

Posted 11 February 2010 - 02:10 PM

Multi-Language won't be incorporated into the Prelude code base as v1.2 is pretty much the end of the road as far as my maintaining it as it's getting pretty old by todays standards, with PHP 5.3.x compatibility as a prime example... Aside from that it is also distracts me from working on the new code base which I have restarted from scratch several times already... To be honest, maintenance was suppose to have ended back at v1.0, but I'm a glutton for punishment...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users