I am trying to:
View the pages: hidden link (as a guest user) hidden link (as a logged in user)
I expected to see:
The search results on the right, analogue to the pages: hidden link (as a guest user) hidden link (as a logged in user)
Instead, I got:
The search results are not showing and the page is all screwed up. The Page is also displaying "There has been a critical error on this website." There were no changes on this page for several weeks.
If it were something general, I would expect both the find-a-job and find-a-nanny pages to be screwed up, but it's just the nanny pages.
I thought perhaps it may be due to some foreign character or something in one of the recent nanny or nanny-ad posts, but can't see anything unusual. I also thought it may be cache related, but even after clearing WP Rocket cache and deactivating the plugin, the problem persists.
Please help urgently to narrow down the issue, as this is our production environment and these are the pages which our paying users use to find Nannies.
I'm attaching you the debug.log file for clues via WeTransfer, the zip file also includes a test family user's credentials, which also work on hidden link for testing/comparison purposes: hidden link
The same pages work fine on dev.native-nanny.de and to the best of my knowledge worked fine until today on production site (see screenshot)
The issue was with the code snippet added to "Custom Code" section namely "func-custom-field-shorten-string" where the custom shortcode added as given under:
Thanks for that quick fix - it appears to be working again! The two code snippets you just posted seem identical. However, just to confirm, it looks like you only changed line 6, right?
From:
'length' => '',
To:
'length' => null,
So I understand it to mean "if the field is NULL or an empty string" then do something, correct?
It's so strange that we have never faced the error before to be honest, I'm sure we could find cases where that field was empty. 🙂