Jump to content

Method IPS\DateTime Critical error


Recommended Posts

I have done a fresh install with in my environment which is running PHP7, nginx, mariadb, Alpine Linux.  Same issue occurred with 4.1.11.

Guest users gets the following error when accessing the clean forum (i.e. brand new):
Error in UI:

[[Template forums/front/forums/topicRow is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] 

Log in as admin and instead of the above error in the UI I get a 500 error.

Admin Logs via AdminCP shows nothing.  But the support tools tell me to run the following:

UPDATE `core_streams` SET `position`=0 WHERE `position` IS NULL;
ALTER TABLE `core_streams` CHANGE COLUMN `position` `position` INT (10) NOT NULL DEFAULT 0 COMMENT 'The position in the list';
UPDATE `core_log` SET `time`=0 WHERE `time` IS NULL;
ALTER TABLE `core_log` CHANGE COLUMN `time` `time` INT (10) NOT NULL DEFAULT 0 COMMENT 'Unix timestamp of log'; 

The above does not update anything.

Going directly to the database log table i get see the following error:

ErrorException: Method IPS\DateTime::__toString() must return a string value (4096)
#0 [internal function]: IPS\IPS::errorHandler(4096, 'Method IPS\\Date...', '/var/lib/nginx/...', 1681, Array)
#1 /var/lib/nginx/ips4/system/Lang/Lang.php(1681): trim(Object(IPS\DateTime))
#2 [internal function]: IPS\_Lang->IPS\{closure}(Object(IPS\DateTime))
#3 /var/lib/nginx/ips4/system/Lang/Lang.php(1685): array_map(Object(Closure), Array)
#4 /var/lib/nginx/ips4/system/Lang/Lang.php(1445): IPS\_Lang->replaceWords('\n<!DOCTYPE html...')
#5 /var/lib/nginx/ips4/system/Output/Output.php(648): IPS\_Lang->parseOutputForDisplay('\n<!DOCTYPE html...')
#6 /var/lib/nginx/ips4/system/Dispatcher/Dispatcher.php(149): IPS\_Output->sendOutput('\n<!DOCTYPE html...', 200, 'text/html', Array)
#7 /var/lib/nginx/ips4/system/Dispatcher/Standard.php(101): IPS\_Dispatcher->finish()
#8 /var/lib/nginx/ips4/system/Dispatcher/Front.php(499): IPS\Dispatcher\_Standard->finish()
#9 /var/lib/nginx/ips4/init.php(434) : eval()'d code(57): IPS\Dispatcher\_Front->finish()
#10 /var/lib/nginx/ips4/system/Dispatcher/Dispatcher.php(131): IPS\Dispatcher\chat_hook_tabNewWindow->finish()
#11 /var/lib/nginx/ips4/index.php(13): IPS\_Dispatcher->run()
#12 {main} 

Anyone else get this? Might be similar to 429955-upgrade-ips-theme-error/

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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