• Resolved haslamjj

    (@haslamjj)


    Plugin worked fine until auto-updated early this morning.

    Noticed issue as cached version of site was generating 404 errors /plugins/site-reviews/plugin/assets/styles/defaults.css?ver=5.5.1 not found. Clear CloudFlare Cache, deleted Autopimize CSS Rules. which eliminated the 404 errors.

    Then had/have a notification that “Your site doesn’t include support for the “site-reviews/form” block. You can leave this block intact or remove it entirely.

    This issue has not resolved. The other issue is from Site Reviews Admin. I can see “All Reviews” I can see “Categories”. I get blank pages when I navigate to Settings, Tools, Add-ons, and Help.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    1. What is the URL when you click on the Site Reviews > Tools page? It should look like this:

    /wp-admin/edit.php?post_type=site-review&page=tools

    2. I suspect there may be a plugin conflict here. Since you are unable to load the Tools page to view the Site Reviews System Info, please go to the WordPress Tools > Site Health page, click the Info tab, then click the “Copy site info to clipboard” button and send it to site-reviews [at] geminilabs [dot] io

    3. Once I get that I will be able to help further.

    Plugin Author Gemini Labs

    (@geminilabs)

    It’s also possible that the auto-update timed-out or did not complete correctly.

    Please also try the following:

    1. Deactivate and delete Site Reviews (if you can delete the plugin folder directly that’s even better). Your reviews will remain safe.
    2. Install Site Reviews as a new plugin.

    Plugin Author Gemini Labs

    (@geminilabs)

    Also, loading your webpage it shows that it is trying to load:

    /wp-content/plugins/site-reviews/plugin/assets/scripts/site-reviews.js?ver=5.5.1

    When it should be this:

    /wp-content/plugins/site-reviews/assets/scripts/site-reviews.js?ver=5.0.3

    I am not able to reproduce this.

    Can you think of any reason why the URL would be changed like that? Perhaps you have a plugin that “optimises” or minifies your scripts? Something is definitely changing it, particularly since the ?ver= parameter is showing the WordPress version instead of the Site Reviews version.

    Thread Starter haslamjj

    (@haslamjj)

    https://www.educationconnection.com/wp-admin/edit.php?post_type=site-review&page=tools

    Is correct. Going to FLush all cache again. delete the CriticalCSS rules, etc. will let you know in a couple of minutes

    Plugin Author Gemini Labs

    (@geminilabs)

    If you are getting a “This has been disabled” when you try to view a Site Reviews admin page, you also should look into any login or security plugins that may be causing it.

    If you have deleted and reinstalled a fresh copy of Site Reviews and still have the problem, the best way to track down the cause is this:

    Thread Starter haslamjj

    (@haslamjj)

    Tossing it over to the Developer. His belief is that plugin is not enqueueing properly. Because,
    A) Deleted the plugin
    B) Put Cloudflare in development mode caching disabled.
    C) Deleted CriticalCSS rules
    D) Put exceptions for the JS into Autoptimize so it would not minify, defer, etc.
    E) Cleared all AO cache again and checked that CCSS rules for page were still deleted
    F) Reinstalled plugin from ZIP
    G) Triple checked all cache clear between CloudFlare & Autoptimize.
    H) Reactivated Plugin.
    I) Still getting the ?ver=5.5.1 reference on both JS & CSS elements of your plugin.

    now onto steps (jk), and the inside jk for me is that Friday has become Monday somehow ??

    Will have the Developers do a deeper dive on Monday — we’re fighting a bigger fire at the moment on a different site.

    Thanks for the help so far.

    Plugin Author Gemini Labs

    (@geminilabs)

    V5.0 uses the same code as the previous versions for enqueuing the plugin assets.

    If the developer is interested, he can see how it is done here:

    1. This is where the wp_enqueue_scripts hook is added
    https://github.com/pryley/site-reviews/blob/master/plugin/Hooks.php#L119

    2. This is the method run by the wp_enqueue_scripts hook
    https://github.com/pryley/site-reviews/blob/master/plugin/Controllers/PublicController.php#L19-L26

    3. This is where the wp_enqueue_script function is called, you can see here that Site Reviews adds it’s own version number to the URL (i.e. ?v=5.0.3)
    https://github.com/pryley/site-reviews/blob/master/plugin/Commands/EnqueuePublicAssets.php#L44-L50

    4. And this is where Site Reviews uses the plugin_dir_url function to build the asset URL
    https://github.com/pryley/site-reviews/blob/master/plugin/Plugin.php#L178-L186

    If you have a staging website and can provide the details, I would be happy to take a look for you in this case.

    I have exact the same issue as described by haslamjj.

    Scripts and styles (front and admin) are pointing to non existing locations (site-reviews/plugin/assets/) and therefore the plugin doesn’t function as it should and not all admin-pages can be rendered.

    <link rel='stylesheet' id='site-reviews-css' href='https://mysite.com/wp-content/plugins/site-reviews/plugin/assets/styles/default.css?ver=5.5.1' type='text/css' media='all' />

    <script type='text/javascript' src='https://mysite.com/wp-content/plugins/site-reviews/plugin/assets/scripts/site-reviews.js?ver=5.5.1' id='site-reviews-js'></script>

    I’ve installed a fresh download of the plugin. I’m not using any other plugins. Theme is Twenty Twenty.

    Plugin Author Gemini Labs

    (@geminilabs)

    @emazing Would you have a staging website that I could access to figure out what is going on? If so, please contact me at site-reviews [at] geminilabs [dot] io or use the chatbox on niftyplugins.com

    Plugin Author Gemini Labs

    (@geminilabs)

    If not, then would you try the following:

    1. Install the Blackbar plugin
    2. Install the Code Snippets plugin
    3. Add the following snippet and set it to “Only run in administration area”:

    add_action('admin_init', function () {
        if (function_exists('glsr')) {
            // get the main plugin file path so we can compare this with the URL
            $pluginFile = glsr()->file;
            // get the main plugin file URL
            $pluginUrl = plugin_dir_url($pluginFile);
            $assetPath = 'assets/scripts/'.glsr()->id.'.js';
            // Log the details in the Blackbar console
            apply_filters('console', [
                'plugin_file' => $pluginFile,
                'plugin_url' => $pluginUrl,
                'plugin_version' => glsr()->version,
                'asset_path' => $assetPath,
                'asset_url' => glsr()->url($assetPath),
            ]);
        } else {
            apply_filters('console', 'The Site Reviews plugin was not found.');
        }
    });
    

    Once you have done that, you should see this:

    Please copy and paste that in an email and send to the email address I posted above (do not post it here).

    Plugin Author Gemini Labs

    (@geminilabs)

    @emazing @haslamjj

    1. Have you had a chance to do the above, if so, what were the results?
    2. Is your site a WordPress Multisite?

    Plugin Author Gemini Labs

    (@geminilabs)

    I have tracked down the bug which was due to Site Reviews running on a Windows IIS server where directory separators (slashes) are opposite to UNIX directory separators, and Site Reviews not accounting for this when manipulating a file path.

    This will be fixed later today in an update.

    Plugin Author Gemini Labs

    (@geminilabs)

    If you can’t wait for the update, you can manually patch the plugin like this:

    Edit the following file: site-reviews/plugin/Plugin.php

    Replace line 50 from this:

    $this->file = str_replace('plugin/Application', $this->id, (new ReflectionClass($this))->getFileName());
    
    

    To this:

    $file = wp_normalize_path((new ReflectionClass($this))->getFileName());
    $this->file = str_replace('plugin/Application', $this->id, $file);
    
    
    Plugin Author Gemini Labs

    (@geminilabs)

    Fixed in v5.1.4

    Thanks for the quick update!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Post 5.0.3 Issues persist — form dead and Admin broken’ is closed to new replies.