Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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:575

    I’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, 6 months ago by emilconsor.
    #1303786

    Hi 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,
    Nikko

    #1304005

    Hi Nikko,

    no problem.

    #1304063

    Hi 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,
    Nikko

    #1304099

    Hi 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!

    #1304107

    Hi emilconsor,

    You’re welcome :)
    I see, I thought I have already switched it to the child theme.

    Best regards,
    Nikko

    #1304929

    Hi 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?

    #1304992

    Hi 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,
    Nikko

    #1306221

    Hi 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, 6 months ago by emilconsor. Reason: typo
    #1306269

    Hi 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.