• Resolved dabeecher

    (@dabeecher)


    Hi Team,

    I have just updated to the latest version and when I go into my repeater template I get a critical error

    Warning: fopen(/Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/uploads/alm_templates/default.php): Failed to open stream: No such file or directory in /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/plugins/ajax-load-more/admin/views/repeater-templates.php on line 177

    Warning: filesize(): stat failed for /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/uploads/alm_templates/default.php in /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/plugins/ajax-load-more/admin/views/repeater-templates.php on line 179

    Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/plugins/ajax-load-more/admin/views/repeater-templates.php:182 Stack trace: #0 /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/plugins/ajax-load-more/admin/views/repeater-templates.php(182): fclose(false) #1 /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/plugins/ajax-load-more/admin/admin.php(360): include_once(‘/Users/davidbee…’) #2 /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-includes/class-wp-hook.php(324): alm_repeater_page(”) #3 /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #4 /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-admin/admin.php(259): do_action(‘ajax-load-more_…’) #6 {main} thrown in?/Users/davidbeecher/Sites/gymfinitykids-2021/app/public/wp-content/plugins/ajax-load-more/admin/views/repeater-templates.php?on line?182

    Any ideas would be great

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @dabeecher Sounds like the default repeater template was for some reason deleted from the server.

    Can you try and restore the template from the database?
    https://capture.dropbox.com/idUXX4VDdMwrnxcJ

    Goto Ajax Load More > Repeater Templates in the WP admin. Click the cog icon and update from database.

    You’ll then need to save the template.

    Let me know ??

    Thread Starter dabeecher

    (@dabeecher)

    Unfortunately because of the error the cog doesn’t appear ??

    Screenshot here – https://ibb.co/XyTmH0R

    Plugin Author Darren Cooney

    (@dcooney)

    Oh darn, I have a fix for this in the next version of the plugin which doesn’t help you now.

    For now, I think you need to access the site via SFTP and create the file on the server.
    wp-content/alm_templates/default.php

    Sorry, let me know if this helps you at all.

    Thread Starter dabeecher

    (@dabeecher)

    Unfortunately not ?? see attached screenshots for reference

    https://ibb.co/nms3qNf
    https://ibb.co/12vgqsG

    Plugin Author Darren Cooney

    (@dcooney)

    That’s strange. You can see in the error message that it’s sayingdefault.php does not exist in the alm_templates directory.

    Do you think you could reach out to your host to ask them if it’s a permissions issue?

    I don’t really know what else the issue could be if you’re 100% sure the file is in the correct location.

    Thread Starter dabeecher

    (@dabeecher)

    I’ve fixed it… we misread the location of alm_templates it was within uploads not just wp-content.

    Thanks for your help

    Plugin Author Darren Cooney

    (@dcooney)

    Ok perfect. Thanks for following up!

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