Jump to content

Featured Replies

Posted

I am in the process of moving to a newer server, but I am getting a 500 page error due to redis being enabled.

My host is handling the migration but I have no idea how to resolve this issue, I had a old contraints.php file saved with Redis turned off but switching file names around has no effect. I'm a little fish in a massive pool and I have no clue.

Turn off Redis usage on the source site, via the ACP and make the provided changes to the constants.php; move database and content to the new server.

Are you certain it's Redis? What is the error you are seeing?

If you've completely removed or renamed constants.php, then it should no longer try and connect to Redis.

  • Author

@Ryan Ashbrook

This is the Redis error, I think I need to try to connect with FTP.

Quote

Backend fatal error: PHP Fatal error:  Uncaught BadMethodCallException in /home/prideofn/public_html/system/Redis/Redis.php:120\nStack trace:\n#0 /home/prideofn/public_html/system/Data/Store/Redis.php(50): IPS\\_Redis->connection('write')\n#1 /home/prideofn/public_html/system/Data/Store.php(42): IPS\\Data\\Store\\_Redis->__construct(Array)\n#2 /home/prideofn/public_html/system/Application/Application.php(190): IPS\\Data\\_Store::i()\n#3 /home/prideofn/public_html/system/Application/Application.php(161): IPS\\_Application::getStore()\n#4 /home/prideofn/public_html/system/Application/Application.php(228): IPS\\_Application::applications()\n#5 /home/prideofn/public_html/init.php(893) : eval()'d code(61): IPS\\_Application::appIsEnabled('linkedaccounts')\n#6 /home/prideofn/public_html/system/Dispatcher/Standard.php(314): IPS\\linkedaccounts_hook_la_getAccounts::loggedIn()\n#7 [internal function]: IPS\\Dispatcher\\_Standard->__destruct()\n#8 {main}\n  thrown in /home/prideofn/public_html/system/Redis/Redis.php on line 120\n, referer: https://prideofnottingham.co.uk/

This is another error thrown for another site, it only shows via the ACP which logs in as a guest without a login box ever coming up.

Quote

ErrorException: count(): Parameter must be an array or an object that implements Countable (2)
#0 [internal function]: IPS\IPS::errorHandler(2, 'count(): Parame...', '/home/poetryar/...', 1054, Array)
#1 /home/poetryar/public_html/system/Http/Url.php(1054): count('admin')
#2 /home/poetryar/public_html/init.php(434) : eval()'d code(95): IPS\Http\_Url->examineFurl(Array, 'admin/', Array, NULL)
#3 /home/poetryar/public_html/init.php(434) : eval()'d code(21): IPS\Http\cms_hook_Url->getFriendlyUrlData()
#4 /home/poetryar/public_html/system/Login/Login.php(346): IPS\Helpers\hook26->values()
#5 /home/poetryar/public_html/applications/core/modules/admin/system/login.php(52): IPS\_Login->authenticate()
#6 /home/poetryar/public_html/system/Dispatcher/Controller.php(96): IPS\core\modules\admin\system\_login->manage()
#7 /home/poetryar/public_html/system/Dispatcher/Dispatcher.php(129): IPS\Dispatcher\_Controller->execute()
#8 /home/poetryar/public_html/admin/index.php(13): IPS\_Dispatcher->run()
#9 {main}

 

That last error is the result of a custom plugin it looks like. You could try renaming /plugins/hooks.php temporarily to see if this allows you access to the AdminCP.

  • Author

This is driving me mad, I don't know how you good folks manage to do it for a living (even with your level of knowledge).

I managed to disabled all the plugins, then boom a new error. lol

Quote

ErrorException: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? (2)
#0 /home/poetryar/public_html/system/Output/Javascript/Javascript.php(1057): IPS\IPS::errorHandler(2, '"continue" targ...', '/home/poetryar/...', 227, Array)
#1 /home/poetryar/public_html/system/Output/Javascript/Javascript.php(1057): require_once()
#2 /home/poetryar/public_html/system/Output/Javascript/Javascript.php(935): IPS\Output\_Javascript::_minify('//     Undersco...')
#3 /home/poetryar/public_html/system/Output/Javascript/Javascript.php(783): IPS\Output\_Javascript::_writeJavascriptFromResultset(Array, 'library.js', 'global', 'root')
#4 /home/poetryar/public_html/system/Output/Output.php(471): IPS\Output\_Javascript::compile('global', 'root', 'library.js')
#5 /home/poetryar/public_html/system/Output/Output.php(245): IPS\_Output::_getJavascriptFileObject('global', 'root', 'library.js')
#6 /home/poetryar/public_html/system/Dispatcher/Standard.php(74): IPS\_Output->js('library.js')
#7 /home/poetryar/public_html/init.php(434) : eval()'d code(8): IPS\Dispatcher\_Standard::baseJs()
#8 /home/poetryar/public_html/system/Dispatcher/Admin.php(91): IPS\Dispatcher\featuredcontent_hook_includeJSandCSS::baseJs()
#9 /home/poetryar/public_html/system/Dispatcher/Dispatcher.php(86): IPS\Dispatcher\_Admin->init()
#10 /home/poetryar/public_html/admin/index.php(13): IPS\_Dispatcher::i()
#11 {main}

The first site is fine since disababling Redit.

Thank you so much for everyone's help so far. ❤

What version of PHP is running on the new server?
What version of IPS are you using?

Edited by Nathan Explosion

  • Author

v4.1.12.2 (very outdated).

The multiphp is set to 7.2 which I don't think is compatible. I'll have a look in putting the right PHP version in place so that it works. Thank you @Nathan Explosion

There is the information that is always helpful 😄

Yep, work back to an older version...I can't be 100% sure but I think 7.1 is the highest that you can use, as IPS 4.3 introduced support for PHP 7.2

Actually, you may need to go to PHP 7.0 as PHP 7.1 support came in fully with 4.1.18

 

  • Author

Thanks, I checked on the live set via cPanel to see what version it was running.

It's 5.6, will wait to mess around with this further until I can upgrade to the latest version. At least for now, it's ready. Thanks again!

Recently Browsing 0

  • No registered users viewing this page.