Jump to content

Cannot view front end when php 8 and 8.1 is activated, Help!!


beats23

Recommended Posts

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 by beats23
Link to comment
Share on other sites

  • 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.

Link to comment
Share on other sites

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}}

Could contain: Text, Menu, File

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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