-
AuthorPosts
-
May 31, 2021 at 2:09 pm #1303187
Hi there,
we are using some content sliders on this page http://klimawandel-buch.dev10.econsor-programming.de/download-bereich/.
We have some slider templates we use and edit afterwards. The first time loading in a template from the saved ones in the backend layout builder, everything is working fine – the problem occurs when editing the same content slider the second time: admin-ajax returns error 500.
The logs show that there is an array instead of a string getting through:
PHP Fatal error: Uncaught TypeError: stripslashes(): Argument #1 ($string) must be of type string, array given in /html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-helper.class.php:570
&
PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-helper.class.php:575I’ve var_dumped “$content”, and it’s just the button as an array – I don’t know why that happens.
Can you kindly help me out here?
Thanks in advance.
- This topic was modified 3 years, 5 months ago by emilconsor.
June 3, 2021 at 3:20 pm #1303786Hi emilconsor,
We apologize for the delayed response.
Can you give us temporary admin access as well as FTP access?
Just post the credentials in private content.Best regards,
NikkoJune 4, 2021 at 12:42 pm #1304005Hi Nikko,
no problem.
June 4, 2021 at 3:09 pm #1304063Hi emilconsor,
Thanks for giving us admin and FTP access.
I tried to switch with the parent theme and it seems to work properly.
I then tried to suspect some files in your child theme that’s causing the issue and tried to comment out everything in functions.php which worked.
However, after removing the comments one by one until everything is uncommented and it seems to still work.
Can you try to check on your end if it’s working properly?Best regards,
NikkoJune 4, 2021 at 4:25 pm #1304099Hi Nikko,
its working now – but the parent theme is still active so maybe that is the reason why its working eventhough everything is uncommented.
I think I can narrow it down myself now, I thought it was an Enfold-Bug but if its because of a function in the functions.php, I will debug it myself. Thanks!
June 4, 2021 at 4:49 pm #1304107Hi emilconsor,
You’re welcome :)
I see, I thought I have already switched it to the child theme.Best regards,
NikkoJune 9, 2021 at 4:17 pm #1304929Hi Nikko,
I do not quite understand this – I’ve commented out the entire functions.php leaving only the style.css from the child theme.
If the child theme is activated, the error occurs.Am I understanding something wrong about how WordPress works and missing something else?
June 10, 2021 at 6:27 am #1304992Hi emilconsor,
Can you try to document your settings on the child theme compared to the parent theme? try to tweak the settings one by one to know which one is causing the issue.
If this still does not work, export the settings from the child theme, then just recreate the child theme (basically similar in everything except for the name) then import the settings to the new child theme. It may seem like a weird thing but I have fixed some issues doing this step when nothing seems to work and it was not even an enfold theme.Best regards,
NikkoJune 17, 2021 at 4:46 pm #1306221Hi Nikko,
sorry for not responding anymore.
You helped me a lot! It was a child theme setting under “Custom Elements”.
If the “Custom Elements Management” is set to “editors and admins”, the slider will not work in the backend.I will look into it if the option is needed at all.
Do you know why it’s crashing when the option is not deactivated?Best regards
- This reply was modified 3 years, 5 months ago by emilconsor. Reason: typo
June 18, 2021 at 4:44 am #1306269Hi emilconsor,
No worries, we’re just happy that we could help :)
Also, thanks for reporting this, I’m not really sure what triggers the issue but we’ll be reporting this to our devs once we can reproduce the problem.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.