• Resolved foostore

    (@foostore)


    Hello good afternoon!
    I have an error in my theme, use OceanWP as shown in the images below when the Customize button no longer appears in the customization bar, and when the button in the themes no longer appears in wordpress themes, disable or by default and return to normal use , is there anything to do?

    https://prntscr.com/qqx0o2 https://prntscr.com/qqx1b0

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Alessandro Tesoro

    (@alessandrotesoro)

    Hi @foostore

    I’ve just installed OceanWP and it’s recommended plugins on a test setup but I can’t see any issue with it on my end. It’s high likely that something else on your end is causing the issue.

    See screenshots here
    https://prntscr.com/qr5h24
    https://prntscr.com/qr5hgo

    Could you please try to disable any other plugins not related to Posterno and not related to OceanWP to see if it’s actually one of them causing the issue?

    If disabling plugins one by one does not solve the issue, you have two other options to identfy the issue:

    1) It’s possible that your issue is javascript related. There might be a conflict. You can try opening your browser’s console and check if there’s any error. If there is, please provide me a screenshot of it so I can have a look at it.

    2) If the browser’s console doesn’t show any error. You can try enable debug mode on your site and read the log file. You can read here how to enable it

    Debugging in WordPress

    Make sure you enable WP_DEBUG and WP_DEBUG_LOG. Once enabled reload the pages where you have issues and if there’s any php error it’ll be written to a debug.log file under your site’s wp-content folder. Please provide me that file if you have it.

    Please let me know.

    Thread Starter foostore

    (@foostore)

    yes, disable the plugins, and just leave the standard and continued error, I checked the error and you were really right, I think it’s the javascript error. These errors appeared, do you know how to fix them?

    https://prntscr.com/qr873k

    https://prntscr.com/qr87c5

    I thank the attention

    Plugin Author Alessandro Tesoro

    (@alessandrotesoro)

    Hi @foostore

    I’m not sure from which file the issue is coming from because WP concatenates scripts in the admin area.

    Could you please add

    define('CONCATENATE_SCRIPTS', false);

    to your wp-config.php file? This should stop concatenation of files and it’ll dsplay the full url of the files causing the issue in your browser’s console on your end.

    Add the above line and then re-open the browser’s console on those pages where you have the issue. On the right side you should see the full url that shouldn’t be starting with load-scripts.php anymore. Please provide me the full urls so maybe I can better understand what’s happening.

    Thank you.

    Thread Starter foostore

    (@foostore)

    See some more tests and it seems that the plugin that is causing conflict is Yoast SEO and Posterno. The two activated together from the above conflict, when active only in the end or only in Yoast Seo it works, when active together two in the same conflict.

    I tested it on another site and had the same conflict, I installed the OceanWP theme and then Yoast Seo and Posterno together and the conflict also appeared on this other site

    • This reply was modified 4 years, 10 months ago by foostore.
    • This reply was modified 4 years, 10 months ago by foostore.
    Plugin Author Alessandro Tesoro

    (@alessandrotesoro)

    Hey @foostore

    Thanks for reporting the issue. I’ve managed to narrow it down to the Carbon Fields library that I’m using within the Posterno plugin. The library generates the custom fields in the admin panel. It’s also been reported by someone else on the github repository of carbon-fields https://github.com/htmlburger/carbon-fields/issues/824 – seems the solution is to update the library within my plugin.

    Before updating the library within Posterno, I’ll have to do some tests to make sure that everything works fine so it’ll take me a few days before I release the update.

    Meanwhile, I wrote a snippet that removes the javascript loaded by carbonfields in the admin pages where the issue occurs. So you can keep working on your sites while I work on the update.

    Please copy and paste the following code into your theme’s functions.php file:

    
    add_action(
    	'admin_init',
    	function() {
    
    		global $pagenow;
    
    		if ( $pagenow === 'theme-install.php' || $pagenow === 'customize.php' || $pagenow === 'upload.php' ) {
    
    			$loader = \Carbon_Fields\Carbon_Fields::resolve( 'loader' );
    
    			remove_action( 'admin_print_footer_scripts', array( $loader, 'enqueue_assets' ), 9 );
    
    		}
    
    	}
    );
    

    As soon as I’ve released version 1.2.6 of Posterno, please remove the snippet from your theme’s functions.php file. I’ll also be posting another message here to let you know of the update.

    Regards.

    Thread Starter foostore

    (@foostore)

    OK, very good!
    I want to thank you for the plugin that is great and the support is great too, for sure as soon as I finish my project I will buy the premium version!
    Thank you one more time!

    Plugin Author Alessandro Tesoro

    (@alessandrotesoro)

    Hi @foostore

    Just wanted to let you know, I’ve just released the update which officially fixes the issue.

    Please remove the snippet I previously provided you and make sure you update Posterno to the latest version ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘theme error and wordpress when activated posterno plugin’ is closed to new replies.