Jump to content

Can't login into backend form old website


kuba2
 Share

Recommended Posts

Hello

I have an old processwire website (8 years). Now the Hostprovider updated their PHP and I can't login into my admin backend.

Can I somehow update the processwire files on the server side?

Thanks for Your suggestions

Jakob

Bildschirm­foto 2025-05-27 um 07.16.41.png

Link to comment
Share on other sites

At first you should check the errorlog. To find it go with FTP to site/assets/logs/errors.txt

Normaly it is easy to update Processwire with simply upload the new wire-folder, index.php & .htaccess  to your server (it depends a bit on your previous PW-Version)

Here you find the Upgrade-Guide -> https://processwire.com/docs/start/install/upgrade/

  • Like 3
Link to comment
Share on other sites

That's the Error message....

2025-05-27 07:16:35    guest   https://jakubdegler.ch/processwire/login/  Error:     Uncaught Error: Call to undefined function ProcessWire\get_magic_quotes_gpc() in /home/jakubdeg/www/jakubdegler.ch/wire/core/WireInputData.php:81 Stack trace: #0 /home/jakubdeg/www/jakubdegler.ch/wire/core/WireInput.php(124): ProcessWire\WireInputData->__construct(Array) #1 /home/jakubdeg/www/jakubdegler.ch/wire/modules/Inputfield/InputfieldSelector/InputfieldSelector.module(252): ProcessWire\WireInput->get('name') #2 /home/jakubdeg/www/jakubdegler.ch/wire/core/Modules.php(635): ProcessWire\InputfieldSelector->ready() #3 /home/jakubdeg/www/jakubdegler.ch/wire/core/Modules.php(736): ProcessWire\Modules->readyModule(Object(ProcessWire\InputfieldSelector)) #4 /home/jakubdeg/www/jakubdegler.ch/wire/core/ProcessWire.php(507): ProcessWire\Modules->triggerReady() #5 /home/jakubdeg/www/jakubdegler.ch/wire/core/Wire.php(380): ProcessWire\ProcessWire->___ready() #6 /home/jakubdeg/www/jakubdegler.ch/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___ready', Array) #7 /home/jakubdeg/www/jakubdegler.ch/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessWire), 'ready', Array) #8 /home/jakubdeg/www/jakubdegler.ch/wire/core/ProcessWire.php(587): ProcessWire\Wire->__call('ready', Array) #9 /home/jakubdeg/www/jakubdegler.ch/wire/core/ProcessWire.php(477): ProcessWire\ProcessWire->__call('ready', Array) #10 /home/jakubdeg/www/jakubdegler.ch/wire/modules/Process/ProcessPageView.module(245): ProcessWire\ProcessWire->setStatus(4) #11 /home/jakubdeg/www/jakubdegler.ch/wire/core/Wire.php(380): ProcessWire\ProcessPageView->___ready() #12 /home/jakubdeg/www/jakubdegler.ch/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___ready', Array) #13 /home/jakubdeg/www/jakubdegler.ch/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'ready', Array) #14 /home/jakubdeg/www/jakubdegler.ch/wire/modules/Process/ProcessPageView.module(170): ProcessWire\Wire->__call('ready', Array) #15 /home/jakubdeg/www/jakubdegler.ch/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute(true) #16 /home/jakubdeg/www/jakubdegler.ch/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___execute', Array) #17 /home/jakubdeg/www/jakubdegler.ch/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #18 /home/jakubdeg/www/jakubdegler.ch/index.php(55): ProcessWire\Wire->__call('execute', Array) #19 {main}   thrown (line 81 of /home/jakubdeg/www/jakubdegler.ch/wire/core/WireInputData.php)

Link to comment
Share on other sites

Hi All. Sorry to jump in here but I'm having a very similar problem to Kuba. 

I had an old site that was using older PHP that was no longer supported by my previous host. I've now decided to move it to anothe host that does support it but it's been a couple years and I can't log into the backend and it won't load with the same error message that Kuba has.

I've followed the suggestions and installed the latest wire folder, index.php & .htaccess files.

The error coming up is:

2025-06-02 22:25:33    ?   http://monarchandco.com/  Fatal Error:  Uncaught Error: Class "WireData" not found in /home/monajywn/public_html/site/modules/MarkupSitemapXML/MarkupSitemapXML.module:3 Stack trace: #0 /home/monajywn/public_html/wire/core/ModulesFiles.php(328): include_once() #1 /home/monajywn/public_html/wire/core/ModulesLoader.php(595): ProcessWire\ModulesFiles->includeModuleFile() #2 /home/monajywn/public_html/wire/core/ModulesLoader.php(414): ProcessWire\ModulesLoader->loadModule() #3 /home/monajywn/public_html/wire/core/Modules.php(329): ProcessWire\ModulesLoader->loadPath() #4 /home/monajywn/public_html/wire/core/ProcessWire.php(558): ProcessWire\Modules->init() #5 /home/monajywn/public_html/wire/core/ProcessWire.php(316): ProcessWire\ProcessWire->load() #6 /home/monajywn/public_html/index.php(52): ProcessWire\ProcessWire->__construct() #7 {main}   thrown (line 3 of /home/monajywn/public_html/site/modules/MarkupSitemapXML/MarkupSitemapXML.module)

Any input or pointers would be greatly appreciated. Thanks

Link to comment
Share on other sites

Hi @JNB and welcome to the forum,

33 minutes ago, JNB said:

Fatal Error:  Uncaught Error: Class "WireData" not found in /home/monajywn/public_html/site/modules/MarkupSitemapXML/MarkupSitemapXML.module:3

This means that the error occurs in the file MarkupSitemapXML.module on line 3. From what I see here (not sure if that's the correct link but it's likely the same 3 lines on top) it's likely an issue with Namespaces. Maybe your old site was PW 2.x which didn't use namespaces at all, as far as I know?

Not sure how exactly to solve that, but what you can try is first to delete the folder /site/assets/cache (or rename it to be able to restore it if you don't have backups, which you should 😉 ). ProcessWire might maybe apply some magic with the filecompiler to add namespaces and use that instead of your original module code. Not sure why it wouldn't do that already, but who knows...

Next you can try to remove the folder /site/modules/MarkupSitemapXML or rename it to .MarkupSitemapXML

This should tell ProcessWire not to load the module and it should hopefully boot up. If you get another error check the error message carefully and apply the same steps. Or others, depending on the error message 😄 

Good luck!

Link to comment
Share on other sites

@bernhard thank you for your input and suggestions, and for welcoming me to this forum 😊.

Per your suggestions, I got rid of the /site/assets/cache folder (I do have backups of everything so all good there 😉). 

I renamed the /site/modules/MarkupSitemapXML to .MarkupSitemapXML.

This is my current error message. Do you think I can fix this with my limited abilities?

2025-06-03 21:30:02    ?   http://monarchandco.com/  Fatal Error:  Uncaught Error: Class "Process" not found in /home/monajywn/public_html/site/modules/ProcessRedirects/ProcessRedirects.module:3 Stack trace: #0 /home/monajywn/public_html/wire/core/ModulesFiles.php(328): include_once() #1 /home/monajywn/public_html/wire/core/ModulesLoader.php(595): ProcessWire\ModulesFiles->includeModuleFile() #2 /home/monajywn/public_html/wire/core/ModulesLoader.php(414): ProcessWire\ModulesLoader->loadModule() #3 /home/monajywn/public_html/wire/core/Modules.php(329): ProcessWire\ModulesLoader->loadPath() #4 /home/monajywn/public_html/wire/core/ProcessWire.php(558): ProcessWire\Modules->init() #5 /home/monajywn/public_html/wire/core/ProcessWire.php(316): ProcessWire\ProcessWire->load() #6 /home/monajywn/public_html/index.php(52): ProcessWire\ProcessWire->__construct() #7 {main}   thrown (line 3 of /home/monajywn/public_html/site/modules/ProcessRedirects/ProcessRedirects.module)

Link to comment
Share on other sites

When I try log into the backend I get this error message🙃:

2025-06-03 21:50:03    ?   http://monarchandco.com/process-admin/  Fatal Error:  Uncaught Error: Class "Process" not found in /home/monajywn/public_html/site/modules/ProcessRedirects/ProcessRedirects.module:3 Stack trace: #0 /home/monajywn/public_html/wire/core/ModulesFiles.php(328): include_once() #1 /home/monajywn/public_html/wire/core/ModulesLoader.php(595): ProcessWire\ModulesFiles->includeModuleFile() #2 /home/monajywn/public_html/wire/core/ModulesLoader.php(414): ProcessWire\ModulesLoader->loadModule() #3 /home/monajywn/public_html/wire/core/Modules.php(329): ProcessWire\ModulesLoader->loadPath() #4 /home/monajywn/public_html/wire/core/ProcessWire.php(558): ProcessWire\Modules->init() #5 /home/monajywn/public_html/wire/core/ProcessWire.php(316): ProcessWire\ProcessWire->load() #6 /home/monajywn/public_html/index.php(52): ProcessWire\ProcessWire->__construct() #7 {main}   thrown (line 3 of /home/monajywn/public_html/site/modules/ProcessRedirects/ProcessRedirects.module)

Link to comment
Share on other sites

@JNB the reason for this error is the same as with the other module that you disabled (by adding a dot to the folder name): Namespaces.

Please check out this blog post that explains how to best upgrade a PW 2.x site to 3.x: https://processwire.com/blog/posts/pw-3.0.32/

Maybe anyone else has more experience with this topic. I don't really have 🙂 So maybe it would be best to restore the backup, then upgrade to 2.8 and then upgrade to 3.x ?!

Link to comment
Share on other sites

@bernhard thank you for trying to help.

I've had a look at the post you sent through but it doesn't quite enable the move to 2.8 (I see my version is built on 2x). What is explained makes perfect sense with the Namespaces introduced however it doesn't explain how to revert to 2.8 ... there don't seem to be the files and directories available and I can't find them on this site.

If anyone wants to have a crack at getting my site up and running again I'm happy to discuss funding their time. 

Thanks

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...