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
Related
Using laravel v8.7*
Using apache server and used deployer to deploy the Laravel application on the server.
Having issues once deployed to a server.
I get the following error:
PHP Fatal error: Uncaught Error: Call to undefined method Illuminate\Support\Collection::getArrayableItems() in /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:31\n
Stack trace:\n
#0 /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Illuminate\Support\Collection->__construct(Array)\n#1 /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Support/Traits/ReflectsClosures.php(49): collect(Array)\n
#2 /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/ReportableHandler.php(62): Illuminate\Foundation\Exceptions\ReportableHandler->firstClosureParameterTypes(Object(Closure))\n
#3 /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(234): Illuminate\Foundation\Exceptions\ReportableHandler->handles(Object(Symfony\Component\ErrorHandler\Error\FatalError))\n
#4 /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Foundati in /var/www/html/releases/2/vendor/laravel/framework/src/Illuminate/Collections/Collection.php on line 31
Used the following instructions to deploy Note: using apache server over ngnix as apache is currently running other applications on the server.
Have you checked if the PHP version on the droplet is the same as the PHP version you have been using locally? This looks like an error that will occur if you change versions between PHP / Laravel.
I have downloaded the shopware from staging server and integrated there code and DB but when run the backend URL get below error with shopware version 4.3.0
Fatal error: Uncaught TypeError: Argument 1 passed to Shopware_Plugins_Core_HttpCache_Bootstrap::onPreDispatch() must be an instance of Enlight_Controller_EventArgs, instance of Enlight_Controller_ActionEventArgs given, called in /home/verve/projects/shop/engine/Library/Enlight/Event/Handler/Plugin.php on line 149 and defined in /home/verve/projects/shop/engine/Shopware/Plugins/Default/Core/HttpCache/Bootstrap.php:323 Stack trace: #0 /home/verve/projects/shop/engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware_Plugins_Core_HttpCache_Bootstrap->onPreDispatch(Object(Enlight_Controller_ActionEventArgs)) #1 /home/verve/projects/shop/engine/Library/Enlight/Event/EventManager.php(211): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Controller_ActionEventArgs)) #2 /home/verve/projects/shop/engine/Library/Enlight/Controller/Action.php(137): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs)) #3 /home/verve/projects/shop/engine/Library/Enlight/Controller/Dispatcher/ in /home/verve/projects/shop/engine/Shopware/Plugins/Default/Core/HttpCache/Bootstrap.php on line 323
503 Service Unavailable
I am trying to install opensourcepos from https://github.com/jekkos/opensourcepos
But I am getting this error:
Fatal error: Can't use method return value in write context in D:\Xampp\htdocs\opensourcepos\application\helpers\locale_helper.php on line 67
A PHP Error was encountered
Severity: Compile Error
Message: Can't use method return value in write context
Filename: helpers/locale_helper.php
Line Number: 67
Backtrace:
I followed instructions, this is a brand new install, I'm at a loss...
I'm on WIndows 7, using Localhost with Xampp
The line 67 is question is this one:
if (empty($config->item('thousands_separator')))
When I comment it out, the site loads, but it doesn't work
check readme txt
You are getting following error Message: Can't use method return value in write context saying that you are probably using PHP7 which is not completely supported yet. Check your hosting configuration to verify whether you have a supported PHP version installed
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?
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