Support » Plugin: Best WordPress Gallery Plugin – FooGallery » Uncaught Error: locate_file() in class-admin-css-load-optimizer.php:49

  • Resolved daniel908

    (@daniel908)


    Hi there,
    I have an issue with foogallery causing lots of errors (full error log line below).
    This seems to cause 500 errors in Elementor when saving pages with a foogallery included.
    Any idea how to solve that issue?

    FooGallery 2.0.24
    Wordpress 5.7.1
    Theme Jupiter X 1.23.0 with Elementor

    [Tue May 04 22:23:05.167381 2021] [proxy_fcgi:error] [pid 10120:tid 140266292610816] [client 83.135.223.230:53117] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function locate_file() on null in /path/to/wordpress/wp-content/plugins/foogallery/includes/admin/class-admin-css-load-optimizer.php:49\nStack trace:\n#0 /path/to/wordpress/wp-includes/class-wp-hook.php(292): FooGallery_Admin_CSS_Load_Optimizer->attach_shortcode_to_post()\n#1 /path/to/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()\n#2 /path/to/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()\n#3 /path/to/wordpress/wp-content/plugins/foogallery/includes/compatibility/class-elementor-compatibility.php(49): do_action()\n#4 /path/to/wordpress/wp-includes/class-wp-hook.php(292): FooGallery_Elementor_Compa...', referer: https://www.hertrich.photo/wp-admin/post.php?post=7388&action=elementor

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support elviiso

    (@elviiso)

    Hi @daniel908

    I have been trying to replicate this issue from my end to try to see if I will experience the same error message.

    I did so on a fresh WordPress install and installed the latest version of Elementor PRO page builder and the free version of FooGallery and used the default WordPress theme. I then created a page using Elementor and added a FooGallery gallery and published it but did not experience such an error. I then edited the page and added another gallery and image and saved it without any such errors in that second case too. Because of this, I highly doubt if the issue is simply being caused by a conflict between FooGallery and Elementor plugins.

    However, to investigate this further just to be certain, could you kindly navigate to FooGallery-> System Info and paste all of that data in your reply to this message so that we can carry out further analysis of this? Thanks in advance.

    Hope to hear from you soon.

    Kind regards,
    Elvis

    Thread Starter daniel908

    (@daniel908)

    Hi Elvis,
    thanks for your feedback and testing!
    I tried by deactivating many plugins in my installation that I foud suspicious in regard to conflicts, but I did not find the right plugin yet as it seems. I could not make the error go away. I did not test deactivating all plugins, though.

    Here is the info you requested:

    FooGallery-Version : 2.0.24
    WordPress-Version : 5.7.1
    Aktiviertes Theme : JupiterX
    WordPress-URL : https://www.hertrich.photo
    PHP-Version : 7.4.16
    Thumb Engine : default
    PHP GD : Geladen (V2)
    PHP Imagick : Geladen
    WP Image Editor : FooGallery_Thumb_Image_Editor_Imagick
    Vorschaubild-Erzeugungstest : https://www.hertrich.photo/wp-content/uploads/2019/06/daniel-hertrich-photography-Immobilien-Real-Estate-Fotografie-Ingolstadt-Bayern-A7R07635.jpg
    HTTPS Thumb Mismatch : Keine
    Available Image Editors : Array
    (
        [0] => FooGallery_Thumb_Image_Editor_Imagick
        [1] => FooGallery_Thumb_Image_Editor_GD
    )
    
    PHP Open SSL : Geladen
    PHP HTTP Wrapper : Gefunden
    PHP HTTPS Wrapper : Gefunden
    PHP Config[allow_url_fopen] : 1
    PHP Config[allow_url_include] : 1
    Aktive Erweiterungen : Array
    (
        [0] => foobox
    )
    
    Galerie-Vorlagen : Array
    (
        [0] => default
        [1] => image-viewer
        [2] => justified
        [3] => masonry
        [4] => simple_portfolio
        [5] => thumbnail
    )
    
    Lightboxes : Array
    (
        [foobox] => FooBox
    )
    
    Einstellungen : Array
    (
        [enable_html_cache] => on
        [gallery_template] => justified
        [gallery_sorting] => 
        [default_gallery_settings] => 7396
        [caption_title_source] => caption
        [caption_desc_source] => desc
        [thumb_engine] => default
        [default_retina_support|2x] => on
        [shortpixel_quality] => lossy
        [shortpixel_return] => wait
        [shortpixel_conversion] => 
        [language_imageviewer_prev_text] => Zurück
        [language_imageviewer_next_text] => Vor
        [language_imageviewer_of_text] => von
        [language_images_count_none_text] => Keine Bilder
        [language_images_count_single_text] => 1 Bild
        [language_images_count_plural_text] => %s Bilder
        [enable_custom_ready] => on
        [force_hide_trial] => on
        [pro_promo_disabled] => on
        [custom_js] => 
        [custom_css] => 
        [default_retina_support] => Array
            (
                [2x] => true
                [3x] => false
                [4x] => false
            )
    
    )
    
    Aktive Plugins : Array
    (
        [0] => foogallery/foogallery.php
        [1] => add-on-woocommerce-mailpoet/add-on-woocommerce-mailpoet.php
        [2] => advanced-custom-fields/acf.php
        [3] => classic-editor/classic-editor.php
        [4] => contact-form-7/wp-contact-form-7.php
        [5] => disable-gutenberg/disable-gutenberg.php
        [6] => duplicator/duplicator.php
        [7] => easy-table-of-contents/easy-table-of-contents.php
        [8] => elementor/elementor.php
        [9] => facebook-for-woocommerce/facebook-for-woocommerce.php
        [10] => foobox-image-lightbox/foobox-free.php
        [11] => health-check/health-check.php
        [12] => image-hover-effects-addon-for-elementor/image-hover-effects-addon-for-elementor.php
        [13] => insert-pages/insert-pages.php
        [14] => jet-elements/jet-elements.php
        [15] => jet-popup/jet-popup.php
        [16] => jet-tabs/jet-tabs.php
        [17] => jet-tricks/jet-tricks.php
        [18] => jupiterx-core/jupiterx-core.php
        [19] => kliken-marketing-for-google/kliken-marketing-for-google.php
        [20] => mailpoet-premium/mailpoet-premium.php
        [21] => mailpoet/mailpoet.php
        [22] => media-library-assistant/index.php
        [23] => menu-icons/menu-icons.php
        [24] => mobile-assistant-connector/mobassistantconnector.php
        [25] => photonic/photonic.php
        [26] => pixelyoursite/facebook-pixel-master.php
        [27] => raven/raven.php
        [28] => redirection/redirection.php
        [29] => speed-booster-pack/speed-booster-pack.php
        [30] => woocommerce-customizer/woocommerce-customizer.php
        [31] => woocommerce-gateway-amazon-payments-advanced/woocommerce-gateway-amazon-payments-advanced.php
        [32] => woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php
        [33] => woocommerce-gateway-stripe/woocommerce-gateway-stripe.php
        [34] => woocommerce-germanized/woocommerce-germanized.php
        [35] => woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php
        [36] => woocommerce-services/woocommerce-services.php
        [37] => woocommerce/woocommerce.php
        [38] => wordpress-importer/wordpress-importer.php
        [39] => wordpress-seo/wp-seo.php
        [40] => wp-sweep/wp-sweep.php
        [41] => wplr-sync/wplr-sync.php
        [42] => wunderwp/wunderwp.php
    )
    Plugin Support elviiso

    (@elviiso)

    Hi @daniel908

    Could you kindly use this guide which will give you a safer way and environment to troubleshoot and identify the plugin causing this issue? Thanks in advance.
    https://fooplugins.com/documentation/general/general-troubleshooting/health-check-debug/

    Kindly update me once done with this.Thanks in advance.

    Kind regards,
    Elvis.

    Plugin Support elviiso

    (@elviiso)

    Hi @daniel908

    We haven’t heard from you in a while, so we presume the problem has been resolved and we’re closing this support ticket.

    If you are still experiencing the problem, then please open a new support ticket.

    Regards,
    Elvis.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught Error: locate_file() in class-admin-css-load-optimizer.php:49’ is closed to new replies.