Critical Error with thumbnail.php
-
Hello,
I have an issue with one of my websites. After updating laytheme and all plugins to the most recent version a page that before worked perfectly fine is completely unaccessible and shows a critical error. I used only two thumbnails on it and they seem to be responsible for the error since after activating wp-debug the debug.log shows the following errors.Site: https://janine-boeckelmann.com/exhibitions/
debug.log:
[08-Nov-2021 17:26:39 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php:208 Stack trace: #0 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php(208): implode(Array, ',') #1 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/el.php(103): LayThumbnail->getMarkup() #2 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(570): LayEl->__construct(Array, false) #3 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(213): Lay_Layout::getRowColElMarkup(Array) #4 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(38): Lay_Layout::getLayout(229, 'page') #5 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/page.php(24): Lay_Layout::getLayoutInit() #6 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-includes/template-loader.php(106): include('/customers/6/f/...') #7 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-blog-header.php(19): require_once('/customers/6/f/...') #8 /customers/6/f/c/janine-boeckelmann.com/httpd.www/index.php(17): require('/customers/6/f/...') #9 {main} thrown in /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php on line 208 [08-Nov-2021 17:26:41 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php:208 Stack trace: #0 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php(208): implode(Array, ',') #1 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/el.php(103): LayThumbnail->getMarkup() #2 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(570): LayEl->__construct(Array, false) #3 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(213): Lay_Layout::getRowColElMarkup(Array) #4 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(38): Lay_Layout::getLayout(229, 'page') #5 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/page.php(24): Lay_Layout::getLayoutInit() #6 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-includes/template-loader.php(106): include('/customers/6/f/...') #7 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-blog-header.php(19): require_once('/customers/6/f/...') #8 /customers/6/f/c/janine-boeckelmann.com/httpd.www/index.php(17): require('/customers/6/f/...') #9 {main} thrown in /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php on line 208 [08-Nov-2021 17:26:41 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php:208 Stack trace: #0 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php(208): implode(Array, ',') #1 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/el.php(103): LayThumbnail->getMarkup() #2 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(570): LayEl->__construct(Array, false) #3 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(213): Lay_Layout::getRowColElMarkup(Array) #4 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(38): Lay_Layout::getLayout(229, 'page') #5 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/page.php(24): Lay_Layout::getLayoutInit() #6 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-includes/template-loader.php(106): include('/customers/6/f/...') #7 /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-blog-header.php(19): require_once('/customers/6/f/...') #8 /customers/6/f/c/janine-boeckelmann.com/httpd.www/index.php(17): require('/customers/6/f/...') #9 {main} thrown in /customers/6/f/c/janine-boeckelmann.com/httpd.www/wp-content/themes/lay/frontend/assets/php/elements/elements/thumbnail.php on line 208
Hope you can help me with this issue.
Bests Jannik
-
Dear Jannik
@jannott
Please confirm the Following:
Wordpress, Lay Theme & Laytheme's Addons are all up to date ?
Any custom CSS or JS that may interfere is temporarily removed.
Any third-party plugins are de-activated to see if this resolves the issue.
If using a WordPress Cache plugin, disable it or clear your cache.
License key not activated - (in website blank situations or button not available)
If your WordPress Dashboard shows a warning "PHP Update requiredββ¨ Please update your PHP version in your webhost control panel.
Possibly your website is running PHP 8.0 this has been known in some cases to cause issue.β¨
e it is not functioning.
If the above is confirmed and you still experience issue:
Please send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?
Armin can then have a better look πβ
Best wishes Jannik & talk soon, have a wonderful day π
Richard
-
Dear Jannik
@jannott
Could you please do a test with another Theme (wordpress default 2020 theme) and see if your Website still experiences this critical error? If so you will need to contact your Webhost.
I will once again forward to Armin to be sure β
Best wishes Jannik π»
Richard
-
please update lay theme and this should be fixed π
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options β Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it