Jump to content

site does not work after moving to a new hosting


ksani4
 Share

Recommended Posts

help, please understand. after transfer to another hosting site does not work. shows a blank page. after turning debug mode shows 

Notice: Undefined variable: image in / home / ... / .... / Docs / site / templates / base.inc on line 155 

contents of the line 155: if ($ image) $ class. = "box-thumb"; 

Fatal error: Call to undefined function filter_var () in / home /.. / ... / Docs / wire / core / Sanitizer.php on line 317 

contents of the line 317: $value = filter_var($value, FILTER_SANITIZE_URL); 

PHP5.3

MySQL: 5.1.16-beta

Link to comment
Share on other sites

Have you tried installing ProcessWire on that new host? Just to make sure all requirements are met. Then often these problems occur on file transfer - some files get lost, others lose some data and permissions have gone wrong etc...

Link to comment
Share on other sites

Are you sure, that the PHP version on the new host is 5.3?

The filter_var function should be a regular feature since PHP 5.2.

Maybe there are different PHP versions configured for different domains/folders? (like you can do with .htaccess on some hosts)

Link to comment
Share on other sites

Have you tried installing ProcessWire on that new host? Just to make sure all requirements are met. Then often these problems occur on file transfer - some files get lost, others lose some data and permissions have gone wrong etc...

established ProcessWire  on that new host. hosting meets.

Link to comment
Share on other sites

Maybe edit your index.php and add these lines:

echo 'Current PHP version: ' . phpversion();
echo '<br>';
if (function_exists('filter_var')) {
    echo "filter_var is available.";
} else {
    echo "filter_var is not available";
}

exit();

And tell us what you get when loading the site.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...