MusikMachineMan Posted January 6, 2024 Share Posted January 6, 2024 (edited) Hello everyone, While my website ps 1.7.8.8 was working fine i was facing few problems with my host ovh so i decided to move with o2switch which have great reviews here in France i just made the switch expecting it would work well and.... unfortunately once switch done i have a blank page !! while debug mode is activated i get this : Fatal error: Uncaught Error: Class 'SmartyResourceModule' not found in /home/..../config/smartyadmin.config.inc.php:51 Stack trace: #0 /home/..../config/smarty.config.inc.php(57): require_once() #1 /home/fahu7065/..../config/config.inc.php(253): require_once('/home/fahu7065/...') #2 /home/.../admin/index.php(40): require('/home/fahu7065/...') #3 {main} thrown in /home/fahu7065/..../config/smartyadmin.config.inc.php on line 51 I made searches and nowhere i could find anything talking about SmartyResourceModule. i guess this is a cache problem but i can't understand what's happening. And how to solve it. I tried in deleting the files in dev and prod folders under var/cache but nothing changes... Of course, display was working well before switch. Does anybody would have an idea on how to make it work fine again ? many thanks in advance Edited January 6, 2024 by MusikMachineMan (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted January 6, 2024 Share Posted January 6, 2024 Did you empty the cache (delete the /var/cache directory)? Link to comment Share on other sites More sharing options...
MusikMachineMan Posted January 6, 2024 Author Share Posted January 6, 2024 (edited) 4 minutes ago, musicmaster said: Did you empty the cache (delete the /var/cache directory)? thanks Musicmaster Yes i did, for prod and dev... Edited January 6, 2024 by MusikMachineMan (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted January 6, 2024 Share Posted January 6, 2024 1 hour ago, MusikMachineMan said: Yes i did, for prod and dev... All or did you leave the index.php files in it? A part from var/cache there could be anaother cache with a bunch of subfolders, leave the index.php if they are in those folders. Link to comment Share on other sites More sharing options...
MusikMachineMan Posted January 6, 2024 Author Share Posted January 6, 2024 i found the solution, when i made the ftp backup, i did not pay attention that this file SmartyResourceModule.php under /classes/smarty was existing but 0 ko, it must have bugged during transfer. so i transfered it again and then deleted cache files and it works fine back ! thanks for your help dear Link to comment Share on other sites More sharing options...
MusikMachineMan Posted January 6, 2024 Author Share Posted January 6, 2024 But now, i have another problem in backoffice !! While updating the status of an order i get this : Whoops, looks like something went wrong. (2/2) MethodNotAllowedHttpException No route found for "GET /sell/orders/8559/status": Method Not Allowed (Allow: POST) in RouterListener.php line 141 at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in WrappedListener.php line 115 at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in EventDispatcher.php line 214 at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))in EventDispatcher.php line 44 at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in TraceableEventDispatcher.php line 143 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127 at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 82 (1/2) MethodNotAllowedException in appDevDebugProjectContainerUrlMatcher.php line 7876 at appDevDebugProjectContainerUrlMatcher->match('/sell/orders/8559/status')in UrlMatcher.php line 93 at UrlMatcher->matchRequest(object(Request))in Router.php line 262 at Router->matchRequest(object(Request))in RouterListener.php line 113 at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in WrappedListener.php line 115 at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in EventDispatcher.php line 214 at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))in EventDispatcher.php line 44 at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in TraceableEventDispatcher.php line 143 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127 at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 82 I have no idea of the problem coming from !! Link to comment Share on other sites More sharing options...
Nickz Posted January 6, 2024 Share Posted January 6, 2024 1 hour ago, MusikMachineMan said: I have no idea of the problem coming from !! Have a look here https://stackoverflow.com/questions/57006647/how-to-fix-the-get-method-is-not-supported-for-this-route-supported-methods-p Link to comment Share on other sites More sharing options...
musicmaster Posted January 6, 2024 Share Posted January 6, 2024 13 minutes ago, MusikMachineMan said: i found the solution, when i made the ftp backup, i did not pay attention that this file SmartyResourceModule.php under /classes/smarty was existing but 0 ko, it must have bugged during transfer. so i transfered it again and then deleted cache files and it works fine back ! thanks for your help dear If there was one file missing there could be more. Consider copying some directories from a fresh install of the same PS version. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now