Jump to content

Recommended Posts

Posted
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

Posted

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...

Posted

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)

Posted

for me it's a new engine, I saw him for the first time :)
version PHP is correct . But I do not see .htaccess 

 You can tell how to please? :)

Posted

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.

Posted

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

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
  • Recently Browsing   0 members

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