Page 1 of 1
php site moved from 8 yr old server to new one. problems...
Posted: Sat Sep 13, 2014 7:38 pm
by Jackie1
It's mostly working , but on one of cart pages I get an error message on line 17 of a file called simlib.php.
When we edit the file and the error still remains. Even if we delete it. It makes no sense.
Re: php site moved from 8 yr old server to new one. problems
Posted: Sat Sep 13, 2014 8:58 pm
by requinix
So... how about telling us what the error is and posting your code?
Re: php site moved from 8 yr old server to new one. problems
Posted: Sat Sep 13, 2014 9:13 pm
by Jackie1
Whoops:
Fatal error: Call to undefined function mhash() in /storage01/newhome/templates/simlib.php on line 17
But username on new server isn't called burmani, but it wants to point there no matter what we do.
Re: php site moved from 8 yr old server to new one. problems
Posted: Sat Sep 13, 2014 10:12 pm
by requinix
Can't help you with the username thing, but it seems like that's just what it's supposed to be. Doubt you can do much about it either.
mhash is
a function in the mhash PHP extension. Seems it's not installed on your new server. Port the code to use
mcrypt instead, which probably is available (though you should confirm that first, of course).
Re: php site moved from 8 yr old server to new one. problems
Posted: Mon Sep 15, 2014 1:25 pm
by Jackie1
No, actually the new server has a new username and we can't get it to look for the new username. It's so strange. We changed to hash but error is same, it want to look for the old directories.
Re: php site moved from 8 yr old server to new one. problems
Posted: Mon Sep 15, 2014 1:38 pm
by requinix
The error has nothing to do with directories and everything to do with you trying to use a PHP extension that is not installed on your server. Since you can't install the extension, switch your code to mcrypt from mhash.
Re: php site moved from 8 yr old server to new one. problems
Posted: Mon Sep 15, 2014 1:58 pm
by Jackie1
mcrypt is already on the server. We've changed that file and converted it, and it gives same error. That username it keeps showing also doesn't exist anymore. We make the change, and error doesn't change. No one can figure this out.
Re: php site moved from 8 yr old server to new one. problems
Posted: Tue Sep 16, 2014 12:48 am
by requinix
If the error is still happening then you haven't changed the file and it's still trying to call mhash() somewhere in there.
Could there be some sort of web server caching in place? I've seen it happen with IIS. What if you delete the file and re-upload?
Re: php site moved from 8 yr old server to new one. problems
Posted: Tue Sep 16, 2014 1:01 pm
by Jackie1
Ok, thank you, there was one main file that had the old username from the last server still in it!!! I thought I looked through everything, but just happened to miss this one file! Thanks so much for chiming in and making me look again.