[Hustle] Hustle : not saving modifications

Dear support team,

Following my chat conversation yesterday with Nastia, I've asked my hosting company to try to fix the varnish cache issue.
As a reminder :
"When I edit a Hustle optin, I change the content area, the title or whatever in the "content" tab, then I save and continue to "design" tab. I then go back to "content" and my changes wheren't saved."

Here is their answer :
"It seems like that the issue is caused by some typos in one of the .js files for the Hustle Pro plugin: http://take.ms/zdhhn

At the moment the fix may be a plugin reinstallation but if the plugin developers are accessing the same page with settings and are not getting any errors then it may be something else.

Could you tell us if they tried this in the site wp-admin area and did they replicate it?"

Could you please help me sort this out ?

Thank you !

  • Adam Czajczyk

    Hello Greg

    I hope you're well today and thank you for your question!

    The JS errors like the one attached (that shows up in browser console) are not "typos in the code" but results of some additional "under the hood" issues. Usually it's a conflict with some other script on site (which might be coming from an active theme or from some other plugin(s)). Often it might also be caused by the fact that some other required JS code/library is entirely missing from the site or that it's in a "wrong" (not compatible anymore) version. Finally, third of the most common causes is related to results of that code execution - in other words it depends on some dynamically created data and that is also quite often affected by various caches.

    However, the error only shows on "Hustle -> Settings" page but not when you're editing a popup. So, I'd say that while it might be causing issues, it doesn't seem to be directly related to the "changes not being saved".

    I checked that on your site and I can see that whatever changes I made to the popup content (e.g. I just added letter X at the end of it), they're not being saved. I know from your chat with Nastia that your host said that they're using Opcache so I'm guessing they don't have any option to temporarily disable it for your site just to test it - did you ask them if they could do it?

    Also, Nastia asked you about full conflict test but I couldn't find any information about test results in the chat (if I missed it, I apologize) so could you please perform it and let me know about results? The procedure is described on this flowchart here:

    https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    Finally, I believe you were using the Hustle before as if the issue was there from the beginning you probably wouldn't be able to even set it up. So, I understand that the issue started to happen only after recent update, is that correct?

    Were there any other changes to the site made recently as well, for example other plugins updated/removed/added (if so, which ones?, theme changed or customized etc?

    Let me know please and I'll continue investigating this.

    Kind regards,
    Adam

  • Greg

    Dear Adam,

    I made a plug-in conflict test and the problem comes from a custom plug-in I made.
    However, the console doesn't display any error. How can I know where the issue comes from in the plug-in ?

    I checked the debug log, here is what I get :

    [Wed May 30 17:26:28.625203 2018] [access_compat:error] [pid 32578:tid 140473032382208] [client 185.5.172.154:48286] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-includes/theme-compat/embed.php, referer: https://staging.defi-ecologique.com/wp-includes/theme-compat/embed.php
    [Wed May 30 17:26:28.694035 2018] [access_compat:error] [pid 32578:tid 140471490373376] [client 185.5.172.154:48288] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/plugins/wp-defender/changelog.txt, referer: https://staging.defi-ecologique.com/wp-content/plugins/wp-defender/changelog.txt
    [Wed May 30 17:26:28.724888 2018] [access_compat:error] [pid 32578:tid 140466696509184] [client 185.5.172.154:48292] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/uploads/wp-defender/index.php, referer: https://www.defi-ecologique.com/wp-content/uploads/wp-defender/index.php
    [Wed May 30 18:29:36.501422 2018] [access_compat:error] [pid 3733:tid 140461934114560] [client 185.5.172.154:53962] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-includes/theme-compat/embed.php, referer: https://staging.defi-ecologique.com/wp-includes/theme-compat/embed.php
    [Wed May 30 18:29:36.559567 2018] [access_compat:error] [pid 3733:tid 140460371126016] [client 185.5.172.154:53964] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/plugins/wp-defender/changelog.txt, referer: https://staging.defi-ecologique.com/wp-content/plugins/wp-defender/changelog.txt
    [Wed May 30 18:29:36.573529 2018] [access_compat:error] [pid 3733:tid 140474637330176] [client 185.5.172.154:53966] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/uploads/wp-defender/index.php, referer: https://www.defi-ecologique.com/wp-content/uploads/wp-defender/index.php
    [Wed May 30 19:32:46.835475 2018] [access_compat:error] [pid 20821:tid 140446558844672] [client 185.5.172.154:33510] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-includes/theme-compat/embed.php, referer: https://staging.defi-ecologique.com/wp-includes/theme-compat/embed.php
    [Wed May 30 19:32:46.888636 2018] [access_compat:error] [pid 20821:tid 140465238419200] [client 185.5.172.154:33512] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/plugins/wp-defender/changelog.txt, referer: https://staging.defi-ecologique.com/wp-content/plugins/wp-defender/changelog.txt
    [Wed May 30 19:32:46.907982 2018] [access_compat:error] [pid 20821:tid 140461304723200] [client 185.5.172.154:33514] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/uploads/wp-defender/index.php, referer: https://www.defi-ecologique.com/wp-content/uploads/wp-defender/index.php
    [Wed May 30 20:13:36.286733 2018] [access_compat:error] [pid 20821:tid 140475035944704] [client 185.5.172.154:39414] AH01797: client denied by server configuration: /home/pleagueo/domains/defi-ecologique.com/public_html/wp-content/plugins/really-simple-ssl/ssl-test-page.php, referer: https://www.defi-ecologique.com/wp-content/plugins/really-simple-ssl/ssl-test-page.php
    [Wed May 30 20:16:44.809473 2018] [core:error] [pid 20821:tid 140475888568064] [client 91.91.185.150:18424] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
    [Wed May 30 20:16:44.914435 2018] [core:error] [pid 20821:tid 140475888568064] [client 91.91.185.150:18424] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

    Could you please help me identify this issue ?

    To answer your question, I've actually updated several plug-ins, due to the GRDP compliance thing. But the plug-in conflict test kind of rules this out, doesn't it ?

  • Predrag Dubajic

    Hi Greg,

    It seems the issue is indeed within your custom plugin, inside de_theme_options/func/functions_deregistration.php on line 65 you're disabling richeditor in entire admin section and that prevents Hustle editor from working properly.
    If you replace that line of code:
    add_filter( 'user_can_richedit' , '__return_false', 50 );
    With this one that will exclude code from Hustle panel, it should do the trick:

    function my_enable_filter() {
        $screen = get_current_screen();
        if ( $screen->post_type !== 'parent_base' ) {
            add_filter( 'user_can_richedit' , '__return_false', 50 );
        }
    }
    add_action( 'admin_footer', 'my_enable_filter' );

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.