I bought a website some time ago and it came with free hosting for 2 years. I want to move it to my own hosting just in-case anything ever happened with the current host. But I am running into troubles. I have a backup of database, site files, and I believe any config files have been edited correctly. I unfortunately do not have the original untouched script of gamesitescript 4. The seller is not responding to emails anymore. Im a afraid one day it just wont work anymore. The site is on its domain and working, and I want to move to the new hosting but didn't want the site to be down, while I tested the install. I have it setup on a different domain just to make sure it works first before I point the domain at it. But I am getting weird sql errors. Not sure what to do. DO you think I am having these issues with testing the site on a dif domain? Maybe is to do with a licensing policy? Meaning the site will only work on the domain chosen when script was originally purchased and setup. ? If anyone has any ideas please let me know. Thanks so much
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/user/public_html/sitename.com/cfg.php on line 96 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/user/public_html/sitename.com/plugins/functions.php on line 56
That one is easy. The database handler for gamesitescript 4 is using mysql_ commands to access the database. mysql_ has been phased out as it is insecure and more up to date systems use PDO or mysqli_. The server that the site is currently on is running a version of PHP that is <5.5 Your server is more up to date. that's good news and bad news. On the plus side the site will still run and you can hide the errors. Just don't upgrade your server or it may stop running altogether. You've bought some time... the license you have may allow for upgrades - if you can find the original provider. the site may use a good database handler and you may be able to simply upload the new one, change the file pointer in the config or dbconfig file and you're done. On the minus side the script may not use a database handler at all and the mysql_ calls are scattered through the script. If that's the case then you may be better off cutting your losses and finding an alternative script and starting over. after moving to your new hosting the server may be upgraded without notification and one day it will simply stop. I guarantee that it'll be at the most inconvenient moment
not sure how to proceed with your fix. And at the same time I was thinking of using another website script instead of this outdated one. I do not need the hassles of site going down randomly if my hosting upgrades my server on me. What if I wanted to use say wordpress, instead of the current one. What would happen with the links that are all indexed in search engines that lead to the site now? I don't want to loose the traffic I get right now.. It has taken a lot to get where I am.. Any Thoughts?
There are plugins to catch requests and pass them to the appropriate new page. I haven't used any but have a look on wordpress.org
Really... Wow that sounds like it may work for changing the site over to a new script... I tried commenting out the errors.. It cleared them away.. But the games disappeared from main page and categories.. I guess it commented them out as well.. What now?
check out http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting basically chuck it at the top of the index.php script and choose the setting which will hide the errors
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include("file_with_errors.php"); ?> I just popped that to the top of index.php and changed from 1 to 0 and poof it works. I am so very thankful
I guess I spoke to soon... I can't get into admin part of the site.. Doesn't accept my credentials.. What now... It doesn't say wrong password.. Just goes to internal server error...
Well I edited the htaccess file to reflect correct domain info and now it doesn't go to internal error anymore but does not accept my credentials... What to do.. Maybe in the SQL database settings I can make new logins?
Maybe I'd create a new normal user and then look at the database and change the new one's user privs to match your old login That or you've just discovered where they've locked it down to the domain.
Yeah good plan.. Hope the lock down is not correct though.. I guess will be fine though... As I am planning to point the actual domain here on my host. How to create a new user in phpmyadmin... Let's give this a try.
nope... no go... when I login it says you are now logged in but just brings me to the login screen again.. with both user names admin and new one. what is goin on.. seems maybe a htaccess issue, redirecting back to the wrong page?
Maybe, hard to say without digging about. maybe setting cookies based on the registered domain and not the one you are using?
hmmm, I guess I will do a search of the script files to see if I have maybe missed replacing a domain name somewhere. I will try that.. then post my results. But I am going to bed now.. Will try again tomorrow.. Thanks for the help