Search.php problem
-
Hello, I encountered an error:
Warning: Trying to access array offset on value of type bool in ftp/themes/lay/search/search.php on line 71
every time when I want to create new page or new project. Sometimes it shows on front page but It can be hidden when I reload admin page.
Error refers to this line:
$sizes[$size] = $attachment[0];I have replaced folder "search" from the installation but nothing changed.
Do you may have any solution?
-
Dear @Stanczyk
Are you able to do a fresh re-install making sure:
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 you need a fresh version of Lay Theme please email your License Key with a link to this thread to: lostfiles@laytheme.com
Talk soon and best wishes 🌝
Richard
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