I developed a website at local by Zend Framework 2.3.1, but when I upload it on production (PHP 5.3.3) it displayed blank page.
An elder developer debugged and said that maybe error occurred because of ZF version. He has a website on that server which is developed by Zend Framework 2.2.5 and it runs OK.
I copied all ZF 2.2.5 library into my website, but I received these error:
Strict Standards: Declaration of Application\View\Helper\Custommenu::renderNormalMenu() should be compatible with Zend\View\Helper\Navigation\Menu::renderNormalMenu(Zend\Navigation\AbstractContainer $container, $ulClass, $indent, $minDepth, $maxDepth, $onlyActive, $escapeLabels, $addClassToListItem) in D:\WebTool\module\Application\src\Application\view\Helper\Custommenu.php on line 16
Warning: Missing argument 9 for Application\View\Helper\Custommenu::renderNormalMenu(), called in D:\WebTool\library\Zend\View\Helper\Navigation\Menu.php on line 219 and defined in D:\WebTool\module\Application\src\Application\view\Helper\Custommenu.php on line 85
Fatal error: Zend\Navigation\Exception\BadMethodCallException: Bad method call: Unknown method Zend\Navigation\Page\Mvc::getTextDomain in D:\WebTool\library\Zend\View\Helper\Navigation\AbstractHelper.php on line 169
Is there any solution to solved this problems?
Related
I have installed knowband marketplace module on prestashop 1.7 but its not working properly. I am unable to add seller from front as well as back office. When I click on any module button I am getting below mentioned error :-
Undefined Index :- id_kb_mp_seller
Logs :-
WARNING
12:10:26
translation Translation not found.
CRITICAL
12:10:26
php Uncaught Notice: Undefined index: id_kb_mp_seller
INFO
12:10:26
php User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector".
CRITICAL
12:10:26
request Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined index: id_kb_mp_seller" at /home/u785114660/domains/onebazaar.in/public_html/src/Adapter/Routing/LegacyHelperLinkBuilder.php line 74
WARNING
12:10:26
translation Translation not found.
DEBUG
12:10:26
php Warning: filemtime(): stat failed for /home/u785114660/domains/onebazaar.in/public_html/modules/kbmarketplace/views/js/admin/kb-marketplace-customer.js
INFO
12:10:26
php User Deprecated: AdminMarketing is a deprecated tab since version 1.7.0 and "Default" will be removed in 1.7.1.. Upgrade module using the docs: http://build.prestashop.com/news/how-we-reorganized-main-menu-prestashop-1.7/.
DEBUG
12:10:26
php Warning: filemtime(): stat failed for /home/u785114660/domains/onebazaar.in/public_html/1fknrvtft56ugkia/themes/default/css/theme.css
Please help me out to resolve this issue.
Thanks.
It seems that the module uses some deprecated methods.
The main reason for this may be that the version of the module is not compatible with the PrestaShop version.
Ask the module developers for the new version of the module, or try the module with an older version of PrestaShop.
I have recently installed laravel through softaculous in CPanel. After the installation, when I tried to open the website, it shows 500 Internal Server Error. Actually, I am a beginner in Laravel. The following errors I got from error_log.
[08-Aug-2020 12:56:03 UTC] PHP Fatal error: Declaration of Carbon\Translator::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /home/hugar/public_html/jityo.com/vendor/nesbot/carbon/src/Carbon/Translator.php on line 18
[08-Aug-2020 12:56:03 UTC] PHP Fatal error: Uncaught ErrorException: Declaration of Illuminate\Http\Response::setContent($content) should be compatible with Symfony\Component\HttpFoundation\Response::setContent(?string $content) in /home/hugar/public_html/jityo.com/vendor/laravel/framework/src/Illuminate/Http/Response.php:14
Every assistance will be appreciated!.
Check the server php version and the php version in composer.json file of laravel framework, if it's not a match then you have to change the server php version and it will work like a charm. this happened with me as well.
The php version(7.1) on the server was lesser than php version in composer.json(7.2).
The problem fixed by upgrading the php version(7.4) on the server.
I have an application running in my localhost developed in codeigniter. I uploaded to server but the application doesn't run. All credentials have been changed to match the server settings. I have viewed this answers but seem irrelevant to my situation as it is running in localhost: Error message Strict standards: Non-static method should not be called statically in php and Codeigniter Model Fatal error: Using $this when not in object context
The error I'm getting is here:
A PHP Error was encountered
Severity: 8192
Message: Non-static method login::index() should not be called statically
Filename: MX/Controller.php
Line Number: 169
Fatal error: Uncaught Error: Using $this when not in object context in
/var/www/html/stallion/application/modules/admin/controllers/login.php:13
Stack trace: #0
/var/www/html/stallion/application/third_party/MX/Controller.php(169): login::index() #1
/var/www/html/stallion/system/core/CodeIgniter.php(326):
MX_Controller->_remap('index', Array)
#2 /var/www/html/stallion/index.php(203):
require_once('/var/www/html/s...') #3 {main} thrown in
/var/www/html/stallion/application/modules/admin/controllers/login.php on line 13
Thanks.
I'm running this on Ubuntu 14.0 php version 7.0 so I can't understand why it's working in my localhost and on the server I get this error!
I reckon it's a php issue because I just uploaded to a different server and it works fine. Same OS but different php versions
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
I got a error when I try create a project using the zend framework command line:
[user ~] /home/user/public_html $ zf create project openstart
PHP Catchable fatal error: Argument 1 passed to Zend_Tool_Framework_Client_Console_ArgumentParser::setArguments() must be an array, null given, called in /home/user/downloads/ZendFramework-1.10.5/library/Zend/Tool/Framework/Client/Console.php on line 194 and defined in /home/user/downloads/ZendFramework-1.10.5/library/Zend/Tool/Framework/Client/Console/ArgumentParser.php on line 79
Catchable fatal error: Argument 1 passed to Zend_Tool_Framework_Client_Console_ArgumentParser::setArguments() must be an array, null given, called in /home/user/downloads/ZendFramework-1.10.5/library/Zend/Tool/Framework/Client/Console.php on line 194 and defined in /home/user/downloads/ZendFramework-1.10.5/library/Zend/Tool/Framework/Client/Console/ArgumentParser.php on line 79
zf is a symlink to /home/user/downloads/ZendFramework-1.10.5/bin/zf.sh
Any ideas?
Try a newer version of Zend Framework if possible, they are at 1.11.10 now and I think a number of zend tool issues have been resolved since then.
If I run your command on the newest version I get no errors and the project is created.