v1.6-v1.7 Prestashop 500 Server Error -- Help me to fix it

Noumankhan

Member
XNullUser
Joined
Jun 6, 2022
Messages
26
Reaction score
44
Points
13
NullCash
175
Hello, I am facing this error on the front page. Can someone help me to fix it.


Whoops, looks like something went wrong.​


(1/1) ContextErrorException​

Notice: Undefined property: Gamiphy::$SDK_URL
in gamiphy.php line 152
at Gamiphy->initializeConfigValues()in gamiphy.php line 103
at Gamiphy->__construct()
at ReflectionClass->newInstance()in Container.php line 123
at Container->makeInstanceFromClassName()in Container.php line 153
at Container->doMake()in Container.php line 166
at Container->make()in ServiceLocator.php line 65
at ServiceLocator::get()in Module.php line 1191
at ModuleCore::coreLoadModule()in Module.php line 1170
at ModuleCore::getInstanceByName()in Hook.php line 921
at HookCore::exec()in FrontController.php line 598
at FrontControllerCore->initContent()in IndexController.php line 37
at IndexControllerCore->initContent()in Controller.php line 306
at ControllerCore->run()in Dispatcher.php line 518
at DispatcherCore->dispatch()in index.php line 28
 

dabliop

Well-known member
Diamond
Elite
Joined
Mar 31, 2019
Messages
660
Reaction score
346
Points
63
NullCash
742
Hello, I am facing this error on the front page. Can someone help me to fix it.


Whoops, looks like something went wrong.​


(1/1) ContextErrorException​

Notice: Undefined property: Gamiphy::$SDK_URL
in gamiphy.php line 152
at Gamiphy->initializeConfigValues()in gamiphy.php line 103
at Gamiphy->__construct()
at ReflectionClass->newInstance()in Container.php line 123
at Container->makeInstanceFromClassName()in Container.php line 153
at Container->doMake()in Container.php line 166
at Container->make()in ServiceLocator.php line 65
at ServiceLocator::get()in Module.php line 1191
at ModuleCore::coreLoadModule()in Module.php line 1170
at ModuleCore::getInstanceByName()in Hook.php line 921
at HookCore::exec()in FrontController.php line 598
at FrontControllerCore->initContent()in IndexController.php line 37
at IndexControllerCore->initContent()in Controller.php line 306
at ControllerCore->run()in Dispatcher.php line 518
at DispatcherCore->dispatch()in index.php line 28

Hello,

This is probably PS version incompatibility.
In this case, just access your_ps/modules folder and rename the corresponding module folder (Gamify to Gamyfy_delete, for example).
This will get you out of the 500 error.
 

d-shilko

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Joined
Jun 10, 2021
Messages
2,542
Reaction score
1,535
Points
113
NullCash
4,194
Hello, I am facing this error on the front page. Can someone help me to fix it.


Whoops, looks like something went wrong.​


(1/1) ContextErrorException​

Notice: Undefined property: Gamiphy::$SDK_URL
in gamiphy.php line 152
at Gamiphy->initializeConfigValues()in gamiphy.php line 103
at Gamiphy->__construct()
at ReflectionClass->newInstance()in Container.php line 123
at Container->makeInstanceFromClassName()in Container.php line 153
at Container->doMake()in Container.php line 166
at Container->make()in ServiceLocator.php line 65
at ServiceLocator::get()in Module.php line 1191
at ModuleCore::coreLoadModule()in Module.php line 1170
at ModuleCore::getInstanceByName()in Hook.php line 921
at HookCore::exec()in FrontController.php line 598
at FrontControllerCore->initContent()in IndexController.php line 37
at IndexControllerCore->initContent()in Controller.php line 306
at ControllerCore->run()in Dispatcher.php line 518
at DispatcherCore->dispatch()in index.php line 28
Easy. You use the module Gamiphy for the referral program.
This line Gamiphy::$SDK_URL means There is the variable $SDK_URL and this variable should have a value corresponding to the name of the static method in the class! As I can guesses $SDK_URL getting value from URL. And this Url is not available!
 

rony

Member
XNullUser
Joined
Jun 25, 2022
Messages
50
Reaction score
7
Points
8
NullCash
7
If you are not a coder, you can make several simple steps that help in 90% of cases (if they won't help - you would better ask a developer to take a look):
1) Switch PHP to another version (try 5.6, 7.0, 7.1, 7.3)
2) Clear Prestashop Smarty cache, and delete folder /var/cache/prod and /var/cache/dev (for the last action you need to connect via FTP)
3) Disable the Gamiphy module or if the backoffice is broken - connect via FTP and temporarily rename the module folder (find it in the modules directory that is in the root directory of the website), so your shop will work again until you find a developer who will fix this.
 

sQsmaX

New member
XNullUser
Joined
Jul 13, 2022
Messages
5
Reaction score
0
Points
1
NullCash
8
It is a notice, just turn off the debug mode.
 
Top