Jump to content

Fatal error: Uncaught Error: Class 'SmartyResourceModule' not found


Recommended Posts

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 by MusikMachineMan (see edit history)
Link to comment
Share on other sites

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

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

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

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...