I've been asked to move someone's blog from a Linux server to a Windows 2008 box. I used Xampp on the new box. When I try to access the blog I get the following errors:
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-settings.php on line 472
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-settings.php on line 487
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-settings.php on line 494
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-settings.php on line 530
Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 594
Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 594
Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 594
Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 594
Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 611
Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 705
Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 705
Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 705
Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 705
Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\classes.php on line 728
Strict Standards: Redefining already defined constructor for class wpdb in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\wp-db.php on line 306
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\cache.php on line 103
Strict Standards: Redefining already defined constructor for class WP_Object_Cache in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\cache.php on line 425
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\query.php on line 21
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\theme.php on line 623
Strict Standards: Redefining already defined constructor for class WP_Dependencies in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\class.wp-dependencies.php on line 15
Warning: Creating default object from empty value in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\update.php on line 39
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\class.wp-dependencies.php:15) in C:\xampp\htdocs\newblogBlog\httpdocs\wp-includes\pluggable.php on line 770
Any ideas?
I think your php.ini in your linux server was desactivating errors reporting.
For the strict standards you can hide them by removing E_STRICT from the option error_reporting in you php.ini file (but it may be better to fix them).
for the rest of the issues I do recommand you to fix them, especialy the warnings.
Also check that the PHP version in linux is the same as in windows, migrating from a version to another may result in issues like this.
check the used php-version on the server and on the xammp-box. You can do this with creating a single file that contains the single line
<?php phpinfo(); ?>
This gives you the used versions. If you can use the same versions on old and new system you can get less warnings, perhaps...
And if there are still the warnings, you can filter them out with the right entries in the php.ini.
it is recommended for a productive system to not display errors, someone could use the information to hack your system... you can change the detail level of displaying errors as mentioned by Yazmat, or turn off the displaying of errors in php.ini like this:
display_errors = 0
Related
I recently updated PHP version of my PHPlinkdirectory to latest version, but after updating it I started getting following error. I instantly changed the new version to the old but the error still exits.
The PHP is running on version 5.4.
Strict Standards: Only variables should be assigned by reference in /home/domain/public_html/init.php on line 275
Strict Standards: Non-static method SmartyPaginate::connect() should not be called statically in /home/domain/public_html/index.php on line 688
Strict Standards: Non-static method SmartyPaginate::getTotal() should not be called statically in /home/domain/public_html/libs/smarty/SmartyPaginate.class.php on line 51
Strict Standards: Non-static method SmartyPaginate::getUrlVar() should not be called statically in /home/domain/public_html/libs/smarty/SmartyPaginate.class.php on line 52
Strict Standards: Non-static method SmartyPaginate::disconnect() should not be called statically in /home/domain/public_html/index.php on line 693
Strict Standards: Non-static method SmartyPaginate::reset() should not be called statically in /home/domain/public_html/index.php on line 694
Strict Standards: Non-static method SmartyPaginate::setPrevText() should not be called statically in /home/domain/public_html/index.php on line 696
Strict Standards: Non-static method SmartyPaginate::setNextText() should not be called statically in /home/domain/public_html/index.php on line 697
I think it is not about PHP version. You are calling a normal function like it is static but it is not.
You can try to way in here:
public static function connect() {
}
or you can call function like this:
$paginate = new SmartyPaginate;
$paginate->connect();
$paginate->getTotal();
I'm trying install to my vmware freebsd, i did install msqli, php, apache all lastest version and when i tried to install ojs im gettings this errors, please help thanks.
Function create_function() is deprecated in in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/install/form/InstallForm.inc.php on line 92
Deprecated: Non-static method Application::getName() should not be called statically in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/install/form/InstallForm.inc.php on line 146
Deprecated: Non-static method Application::getName() should not be called statically in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/install/form/InstallForm.inc.php on line 148
Deprecated: Non-static method Application::getName() should not be called statically in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/install/form/InstallForm.inc.php on line 150
Deprecated: Non-static method VersionCheck::getCurrentCodeVersion() should not be called statically in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/install/form/MaintenanceForm.inc.php on line 37
Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/form/Form.inc.php on line 369
Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/classes/core/PKPRequest.inc.php on line 592
Deprecated: Function create_function() is deprecated in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 269
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 559
Deprecated: Function create_function() is deprecated in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 269
Deprecated: Function create_function() is deprecated in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 269
Deprecated: Function create_function() is deprecated in /usr/local/www/apache24/data/ojs-3.1.0-1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 269
OJS currently (as of OJS 3.1.0-1) relies on the create_function function, but that dependency is not major and will be removed before the function is no longer available in PHP.
I recommend disabling deprecation warnings and keeping your OJS up to date.
OK, i installed ojs but after the installation im getting the blank page when im opening the logs, im getting this error;
Recoverable fatal error: ini_set(): Cannot set 'user' save handler by ini_set() or session_module_name() in /usr/local/www/apache24/data/lib/pkp/classes/session/SessionManager.inc.php on line 36
Any recommend would be nice for me guys.
I'm using xampp 1.8.1 on windows xp home edition and TS,VC9 and my php version is 5.4.7.
I did all thing even add php_http.dll in extension and add extension in php.ini but I could not use httprequest class
errors:
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\pear\HTTP\Request.php on line 412
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\pear\HTTP\Request.php on line 736
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\pear\HTTP\Request.php on line 749
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\pear\HTTP\Request.php on line 794
Strict Standards: Redefining already defined constructor for class Net_URL in C:\xampp\php\pear\Net\URL.php on line 124
Fatal error: Class 'HttpRequest' not found in C:\xampp\htdocs\crawl\index.php on line 4
This question already has an answer here:
PHP CRYPT_BLOWFISH Error?
(1 answer)
Closed 9 years ago.
My PHP Crypt_Blowfish class initiation is throwing following error:
Error:
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish/MCrypt.php on line 155 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish.php on line 199 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/Crypt/Blowfish.php on line 142
Simple Code:
<?php
include_once('/usr/share/pear/Crypt/Blowfish.php');
$cipher = new Crypt_Blowfish("_mysalt_");
?>
Is it because of include ? But when i disabled the include, again it is giving:
Error:
Fatal error: Class 'Crypt_Blowfish' not found in /var/www/html
So what is seriously wrong please?
Now i'm confusing, HOW TO USE Crypt_Blowfish Class please? (Am i initiating it properly OR is there any other standard way to use/initiate it?)
Or, what is the requirement to use that class? (I have run this two installation on my RHEL. yum install php-pear-Crypt-Blowfish and yum install perl-Crypt-Blowfish. And Apache Restarted. Am i still missing something?)
Please help!
Strict standards warnings are no errors. You can remove them from your error_reporting setting easily:
error_reporting(error_reporting() & ~E_STRICT);
I'm getting below errors from my local WAMP environment
Unknown error: Non-static method SJB_System::shutdownFunction() should not be called statically in C:\wamp\www\engjobs\system\core\System.php on line 161
Unknown error: Declaration of GoogleSocialPlugin::ifUserIsRegistered() should be compatible with SJB_SocialPlugin::ifUserIsRegistered($network, $profileSocialID = NULL) in C:\wamp\www\engjobs\system\plugins\google_integration_plugin\google_integration_plugin.php on line 9
Unknown error: Non-static method GoogleSocialPlugin::getNetwork() should not be called statically in C:\wamp\www\engjobs\system\plugins\google_integration_plugin\index.php on line 7
Unknown error: Non-static method SJB_SocialPlugin::getNetwork() should not be called statically in C:\wamp\www\engjobs\system\plugins\google_integration_plugin\index.php on line 7
Unknown error: Declaration of SJB_TwitterDetails::getDetails() should be compatible with SJB_ObjectDetails::getDetails() in C:\wamp\www\engjobs\system\plugins\twitter_integration_plugin\Twitter\TwitterDetails.php on line 156
I wasn't getting this from production server but with WAMP I'm getting this.
It's PHP, custom framework called Smart Job Board which is built on top of Zend framework