• Resolved sgot

    (@sgot)


    Hi Doeke.

    Here’s my problem: whenever I try to access the settings page in the subview

    wp-admin/admin.php?subview=gravityexport-lite&page=gf_edit_forms&id=70&view=settings

    the plugin breaks and an error 500 is returned. This error pops out, but only thanks to Query Monitor installed:

    Uncaught Error: Class 'GFExcel\GravityForms\Field\CopyShortcode' not found
    in .../public/plugins/gravityforms/includes/settings/class-fields.php on line 54

    Call stack:

    Gravity_Forms\G\S\Fields::create(array, Gravity_Forms\Gravity_Forms\Settings\Settings)
    public/plugins/gravityforms/includes/settings/class-settings.php:2422

    Gravity_Forms\G\S\Settings::initialize_fields(array)
    public/plugins/gravityforms/includes/settings/class-settings.php:2380

    Gravity_Forms\G\S\Settings::set_fields(array)
    public/plugins/gravityforms/includes/addon/class-gf-feed-addon.php:1666

    GFFeedAddOn::feed_settings_init('')
    wp-includes/class-wp-hook.php:324

    WP_Hook::apply_filters(NULL, array)
    wp-includes/class-wp-hook.php:348

    WP_Hook::do_action(array)
    wp-includes/plugin.php:517

    do_action('admin_init')
    wp-admin/admin.php:175

    This happens ONLY on LIVE environment! On local env it was working.

    These are the versions running on my system:

    GravityExport Lite 2.3.8
    Gravity Forms 2.9.5
    WordPress 6.7.2
    PHP 7.4.33

    Can you please help me in debugging this?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rafael M. Ehlers

    (@rafaehlers)

    Hi @sgot

    This looks like missings files. Could please try reinstalling the plugin? This should solve it.

    Thread Starter sgot

    (@sgot)

    Hi Rafael,

    it seems it’s not related to missing files…I tried to delete and copy again both gf-entries-in-excel and gravityforms plugins directories, but I still have the error.

    I’m sorry but currently I cannot give other clues, because of my armored live environment.

    Could you point me to some other direction? Could it maybe be caused by some missing PHP library/module?

    Thanks again.

    • This reply was modified 1 year, 1 month ago by sgot.
    Plugin Author Doeke Norg

    (@doekenorg)

    Hi @sgot,

    Unfortunately, this is very little to go on.

    The only reason why you would be getting this error is if the plugin cannot locate the CopyShortcode.php file. So this means that something is missing from the vendor, vendor_prefix or build folder.

    The only other reason I can think of is if the files are there but can’t be read. So maybe you’ve uploaded the files under a different user role, and the web user cannot read those files, or the file permissions are wrong.

    I hope this helps. Otherwise, we really need to inspect your website. We can do this safely if you go through [email protected].

    Kind regards,

    Doeke

    Thread Starter sgot

    (@sgot)

    Hi everyone,

    I’m happy to be back to tell you that I finally found out the reason why it was not working. Here it is, sit back and enjoy 🙂

    As I said, on my local environment (VsCode, git/sourcetree and Laragon on Windows) everything was working, so I focused only on Staging and Live (Linux based), where it was not.

    Given that on my LIVE instance, WP and plugins updates are disabled, the only way I have to push code and files on that environment, is using git and CI/CD. So I actually did not reinstall the plugin, but manually removed it on the server and released the code from my repo.

    So, here’s the point: since my system, and git in the first place, didn’t care that in the new version of the plugin some filenames has been changed in uppercase/lowercase, I was basically pushing always the same old named files!!

    Here’s the fix, that allowed me to commit the “new code” and properly release it.

    https://dev.to/iediong/fixing-file-renaming-issues-in-git-handling-case-sensitivity-and-coreignorecase-1mf6

    Take a look at the after changing git settings:

    from

    CopyShortCode.php

    to

    CopyShortcode.php

    So guys, generally speaking, uninstalling and reinstalling (the normal WordPress way) could have done the work, because all the files would be replaced with the new ones, but of course not in my case, as told, because my own system and my local git was not considering the filenames case sensitivity changes.

    I hope that this will be useful in general to anyone having the same apparently unexplicable issue, and that some AI model will get it so that it could help somebody else struggling in this very well hidden issue.

    Sorry for bothering and thank you a lot for the support.

    • This reply was modified 1 year, 1 month ago by sgot.
    • This reply was modified 1 year, 1 month ago by sgot.
    Plugin Author Doeke Norg

    (@doekenorg)

    @sgot thank you for letting us know, and nice work tracking it down! 💪

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Settings page broken!’ is closed to new replies.