install trouble Deprecated warning

arthurll / 2011-08-18 15:00:03   

Hi,
This not the first website I make with indexhibit.
The previous ones were with PHP 5.0

I just bought a new domain name to OVH in France to build a new site :
http://www.villasasaintlunaire.com/

But now i only can have a php 5.1

I really don't know why but i have deprecated warnings all over :

Deprecated: Function set_magic_quotes_runtime() is deprecated in /homez.466/villasas/www/ndxz-studio/defaults.php on line 16

Deprecated: Assigning the return value of new by reference is deprecated in /homez.466/villasas/www/ndxz-studio/common.php on line 73

Deprecated: Assigning the return value of new by reference is deprecated in /homez.466/villasas/www/ndxz-studio/common.php on line 93

and have no idea how to get rid of it.
I tried several things, but nothing worked.
Any idea please ?
I am kind of stuck....

arthurll / 2011-08-18 15:19:40   

I strickly have no idea what I did, just changed some little stuff here and there.
And it seems to be working now.
I might need further assistance.
Since then, thanks anyway.
cheers,

jeanremy / 2011-08-23 03:56:31   

Salut Arthurll
Comment as tu fais pour que cela fonctionne je suis chez ovh (et moi non plus ce n'est pas la première fois que je fais un site avec indexhibit) et j'ai le même problème...
Je leur ai déjà demandé de désactiver les "deprecation warning" mais ils me réponde qu'ils ne peuvent pas le faire. Je sais tout juste me connecter au dashboard et c'est tout, dés que je clic je reviens sur la page d'identification...
peux tu s'il te plait nous dire ce que tu as changé?

Hi Arthurll
How did you do to worked out?
I'm on OVH too (and for me as well that's not the first time I use indexhibit for my websites) and I have the same issues...
I already ask them to turn off their deprecation warning but they answer they can't.
I can just connect to indexhibit but when I want to clic or change something I go back to the ID page...
Can you PLEASE tell us what you've changed?

Or someone else?
(it will be too bad if there is no sollution yet for this)

jeanremy / 2011-08-23 13:38:49   

Can someone help me to fixe that?
I tried to ask my host to turn off their deprecation warning but they can't

pernin / 2011-08-23 13:53:18   

try this:
http://www.indexhibit.org/forum/thread/8806/

jeanremy / 2011-08-23 15:19:30   

hi!
thanx, I 've already seen this thread but at the time it meant nothing, now it's clearer...
I 've just finished to replace the right codes for php5.3 found in this thread: http://www.indexhibit.org/forum/thread/8835/.

  1. first I replaced in the ndxz-studiodefault.php file:
  2. set_magic_quotes_runtime(0);
  3. by this:
  4. ini_set('magic_quotes_runtime', 0);

then I replaced the "regi()" function by the "preg_match()" one using "/" and the "i" modifier in the ndxz-studiolibrouter.php file like that:

  1. Before:
  2. if ((!eregi("^_",$module)) && (!eregi("^CVS$",$module)) && (!eregi(".php$",$module)) && (!eregi(".html$",$module)) && (!eregi(".DS_Store",$module)) && (!eregi(".",$module)))
  3. After:
  4. if ((!preg_match("/^_/i",$module)) && (!preg_match("/^CVS$/i",$module)) && (!preg_match("/.php$/i",$module)) && (!preg_match("/.html$/i",$module)) && (!preg_match("/.DS_Store/i",$module)) && (!preg_match("/./i",$module)))

Then I succed to save a new password etc. on the indexhibit dashboard but I've got the following again:
"Deprecated: Function eregi() is deprecated in /homez.466/erikstru/www/ndxz-studio/lib/template.php on line 322"

so I replaced the code with the same method I used for router.php

That's ok for those functions, their deprecated warning doesn't appaer anymore

Right now I'm dealing with this deprecated message:
"Assigning the return value of new by reference is deprecated"
I realy don't know what to change to PLEASE the php 5.3 ;-)

Could you please help me to fix it Permin?

jeanremy / 2011-08-23 15:26:40   

the website: www.erikstruyfpalacios.com

pernin / 2011-08-23 15:49:12   

you are rewriting indexhibit ;) that's a lot more than I can handle...

how about just taking away the warnings? the first post in the thread I mentioned should work, and won't affect indexhibit:

I made the warnings disappear by adding this line to defaults.php:

ini_set('error_reporting', 4096);

jeanremy / 2011-08-23 16:31:46   

hehe you're right I should'nt do that ;-) I don't even know if it will cause some other damages or not.

All right! I add the "ini_set" line to default.php and everything's fine.
If I get some trouble I will simply return to the previous version I kept.

Thank you very much permin!

This thread has been closed, thank you.