Jump to content

Errors In Server Transfer


vchosting

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.