vchosting Posted January 12, 2013 Share Posted January 12, 2013 Hi New to the forum as a member but have used the site for quite some time. Ok so I'm stuck. This is the site on its current server www.police-information.co.uk When we transfer it to the new server we get a constant list of errors. Temp domain www.vc-hosting.net Can anyone help with what might be causing this? Thanks Quote Link to comment Share on other sites More sharing options...
requinix Posted January 12, 2013 Share Posted January 12, 2013 Kinda depends on those errors... If you've been upgraded from 4.x to 5.x then you might see some strict warnings - they're generally easy to fix. From 5.x to 5.3 or (gasp) 5.4 then you may see warnings about deprecated functions or settings. If the version didn't change much then it may be that the script always had errors but they were hidden from you. Quote Link to comment Share on other sites More sharing options...
haku Posted January 12, 2013 Share Posted January 12, 2013 Sites are built up of linked files and paths. Some of those have changed from your old server to your new server, so you'll have to go through and fix them. We can't really tell you how to do that because we don't have your system. But look at the errors, they give file names and line numbers where the issues are happening, and tell you what is happening (even though it may not be so clear exactly what they are telling you). Look at the files on those lines, then try to see if you can figure out what's happening. Quote Link to comment Share on other sites More sharing options...
vchosting Posted January 12, 2013 Author Share Posted January 12, 2013 Hi I should of perhaps mentioned I have added a php info file to each server. www.police-information.co.uk/phpinfo.php www.vc-hosting.net/phpinfo.php If I hide warnings nothing but the logo loads. Quote Link to comment Share on other sites More sharing options...
vchosting Posted January 12, 2013 Author Share Posted January 12, 2013 Hi Ok - The same error message appears throughout the site and the error is always along the lines of; Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in/home/policein/public_html/includes/popup_ad.html on line 5 If I look at the code for this file <?php $uri = $_SERVER['REQUEST_URI']; $q = "SELECT cms_area7 FROM pages WHERE uri = '$uri'"; $r = mysql_query($q); $row = mysql_fetch_array($r); $c = $row['cms_area7']; $q = "SELECT content FROM content WHERE content_id = '$c'"; $r = mysql_query($q); $row = mysql_fetch_array($r); echo $row['content']; ?> All the errors relate to the exact same line of code that is present throughout all the files which is this one $row = mysql_fetch_array($r); Any ideas how to resolve this please? Thanks Quote Link to comment Share on other sites More sharing options...
vchosting Posted January 12, 2013 Author Share Posted January 12, 2013 Its ok - I have resolved this thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.