Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 6, 20222 yr When php 8 or 8.1 is activated the front of the site shows only a white page and sometimes shows error 500. I have to revert back to php 7.4 for it to work. all plugin and apps are off. Can you check error logs to see what's the issue? Reoccurring system log entries may be indicative of a problem that should be addressed. A summary of the top reoccurring recent log entries are shown below. Review the system log for further details. Message Count Error: Undefined constant "IPS\Theme\large" in /home/customer/www/MY-SITE.com/public_html/system/Theme/Theme.php(885) : eval()'d code:18593 Stack trace: #0 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->userPhoto(Object(IPS\Member)) #1 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(286): IPS\Theme\_SandboxedTemplate->__call('userPhoto', Array) #2 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(961): IPS\Theme\class_cms_database_Supergrid_Frontpage1->entry(Object(IPS\cms\Records1), Object(IPS\cms\Databases)) #3 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/database/index.php(142): IPS\Theme\class_cms_database_MY-SITE_Frontpage_Featured->index(Object(IPS\cms\Databases), Object(IPS\Patterns\ActiveRecordIterator), Object(IPS\Http\Url\Friendly), Array) #4 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/database/index.php(51): IPS\cms\modules\front\database\_index->view() #5 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\database\_index->manage() #6 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Databases/Dispatcher.php(327): IPS\Dispatcher\_Controller->execute() #7 /home/customer/www/MY-SITE.com/public_html/applications/cms/widgets/Database.php(128): IPS\cms\Databases\_Dispatcher->run() #8 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Pages/Page.php(1289): IPS\cms\widgets\_Database->render() #9 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Pages/Page.php(2269): IPS\cms\Pages\_Page->getWidgets() #10 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(116): IPS\cms\Pages\_Page->output() #11 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view() #12 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\pages\_page->manage() #13 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute() #14 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Dispatcher.php(153): IPS\cms\modules\front\pages\_page->execute() #15 /home/customer/www/MY-SITE.com/public_html/index.php(13): IPS\_Dispatcher->run() #16 {main} Error: Undefined constant "IPS\Theme\large" in /home/customer/www/MY-SITE.com/public_html/system/Theme/Theme.php(885) : eval()'d code:19391 Stack trace: #0 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->userPhoto(Object(IPS\Member), 'mini') #1 /home/customer/www/MY-SITE.com/public_html/system/Theme/Theme.php(885) : eval()'d code(3899): IPS\Theme\_SandboxedTemplate->__call('userPhoto', Array) #2 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_widgets->stats(Array, 'horizontal') #3 /home/customer/www/MY-SITE.com/public_html/system/Widget/Widget.php(234): IPS\Theme\_SandboxedTemplate->__call('stats', Array) #4 /home/customer/www/MY-SITE.com/public_html/applications/core/widgets/stats.php(118): IPS\_Widget->output(Array) #5 /home/customer/www/MY-SITE.com/public_html/system/Widget/Widget.php(833): IPS\core\widgets\_stats->render() #6 /home/customer/www/MY-SITE.com/public_html/system/Widget/Widget.php(888): IPS\_Widget->_render() #7 /home/customer/www/MY-SITE.com/public_html/system/Theme/Theme.php(885) : eval()'d code(171): IPS\_Widget->__toString() #8 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_cms_front_pages->widgetContainer('col1', Array, 'horizontal') #9 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(12): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #10 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Pages/Page.php(2269): IPS\Theme\class_cms_page_page_builder->single_column(Object(IPS\cms\Pages\Page), Array) #11 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(116): IPS\cms\Pages\_Page->output() #12 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view() #13 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\pages\_page->manage() #14 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute() #15 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Dispatcher.php(153): IPS\cms\modules\front\pages\_page->execute() #16 /home/customer/www/MY-SITE.com/public_html/index.php(13): IPS\_Dispatcher->run() #17 {main} BACKTRACE #0 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(Error), 'template_error') #1 /home/customer/www/MY-SITE.com/public_html/system/Theme/Theme.php(885) : eval()'d code(3899): IPS\Theme\_SandboxedTemplate->__call('userPhoto', Array) #2 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_widgets->stats(Array, 'horizontal') #3 /home/customer/www/MY-SITE.com/public_html/system/Widget/Widget.php(234): IPS\Theme\_SandboxedTemplate->__call('stats', Array) #4 /home/customer/www/MY-SITE.com/public_html/applications/core/widgets/stats.php(118): IPS\_Widget->output(Array) #5 /home/customer/www/MY-SITE.com/public_html/system/Widget/Widget.php(833): IPS\core\widgets\_stats->render() #6 /home/customer/www/MY-SITE.com/public_html/system/Widget/Widget.php(888): IPS\_Widget->_render() #7 /home/customer/www/MY-SITE.com/public_html/system/Theme/Theme.php(885) : eval()'d code(171): IPS\_Widget->__toString() #8 /home/customer/www/MY-SITE.com/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_cms_front_pages->widgetContainer('col1', Array, 'horizontal') #9 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(12): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #10 /home/customer/www/MY-SITE.com/public_html/applications/cms/sources/Pages/Page.php(2269): IPS\Theme\class_cms_page_page_builder->single_column(Object(IPS\cms\Pages\Page), Array) #11 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(116): IPS\cms\Pages\_Page->output() #12 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view() #13 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\pages\_page->manage() #14 /home/customer/www/MY-SITE.com/public_html/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute() #15 /home/customer/www/MY-SITE.com/public_html/system/Dispatcher/Dispatcher.php(153): IPS\cms\modules\front\pages\_page->execute() #16 /home/customer/www/MY-SITE.com/public_html/index.php(13): IPS\_Dispatcher->run() #17 {main} Edited July 6, 20222 yr by beats23
July 6, 20222 yr Management Custom theme? I do recall a mod or theme recently that used 'large' without quotes and it was treated as a constant and silently ignored previous to PHP 8. The word 'large' is not used in that default template for the userPhoto.
July 6, 20222 yr Author 13 minutes ago, Matt said: Custom theme? I do recall a mod or theme recently that used 'large' without quotes and it was treated as a constant and silently ignored previous to PHP 8. The word 'large' is not used in that default template for the userPhoto. Hi, I checked userphoto template and is has the default codes with no "large" words. Can you tell where the "large" without quote is located ? {{if $member->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}} {{$memberURL = ( $warningRef ) ? $member->url()->setQueryString( 'wr', $warningRef ) : $member->url();}} <a href="{$memberURL}" rel="nofollow" {{if $hovercard}}data-ipsHover data-ipsHover-width="370" data-ipsHover-target="{$memberURL->setQueryString( 'do', 'hovercard' )}"{{endif}} class="ipsUserPhoto ipsUserPhoto_{$size}{{if $classes}} {$classes}{{endif}}" title="{lang="view_user_profile" sprintf="$member->name"}"> <img src='{$member->photo}' alt='{$member->name}' loading="lazy"> </a> {{else}} <span class='ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}'> <img src='{$member->photo}' alt='{$member->name}' loading="lazy"> </span> {{endif}}
July 6, 20222 yr I would suggest checking with the theme author first of all, as that does seem to have been included somewhere, which is what is causing the error
July 6, 20222 yr 35 minutes ago, beats23 said: Can you tell where the "large" without quote is located ? It's from the $size variable, is your core/widgets/stats template customised? We're not using the large profile picture there, but it's obviously being loaded on your end, so my guess is that the stats template was changed.
July 6, 20222 yr Author 45 minutes ago, Daniel F said: It's from the $size variable, is your core/widgets/stats template customised? We're not using the large profile picture there, but it's obviously being loaded on your end, so my guess is that the stats template was changed. My theme does not have an author. The theme author @Heosforo has not logged on since 2018. This is the only theme that fit for my my site and I'm hoping to get it working with php 8.1. The core/widgets/stats template is set as default not modified. Any more ideas where the issue might be? Thanks
July 6, 20222 yr Author 6 minutes ago, Daniel F said: Please update the login credentials we have on file and I’ll take a look 🙂 Hi, I've activate login credentials as admin and activate php 8.0 thanks
July 6, 20222 yr Author 2 minutes ago, Marc Stridgen said: Please disable your 2 factor authentication there. We can then take a look. Disabled.
July 6, 20222 yr Taking a look there, when all 3rd party items are disabled, things are running without any issue. Unfortunately this is related to one (or by the look of it more than one) or your 3rd party items
July 8, 20222 yr Author Yeah, some weird things are going on. When all plugins are deactivated by the support page, the issue is gone. If I activate then deactivate one plugin manually the issue comes back. (the issue is there when all plugins are deactivated manually, but no issue when the APC support page deactivates them) I knew this day would come but I was hoping it took a bit longer. I've been patching this mind theme for a long time now in order to keep it working. I paid a developer to convert all the things I like in the theme into a plugin so I can use the IPS default theme with my custom css and a plugin, and have the same looks as the theme without using the theme, but I never got around installing and configuring it. I'll now have to do it soon in order to have php 8.0 compatibility. Thanks for your help.
July 8, 20222 yr It would seem so, yes. I suspect what is happening there is it's a combination of things, which is why you arent seeing it when you disable manually. For example, it may be something is not being cleared in cache when a plugin is disabled.