Visual Composer on Royal Theme front end editor not loading

This topic has 29 replies, 5 voices, and was last updated 6 years, 3 months ago ago by Rose Tyler

  • Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 14:38

    Not sure why, but suddenly yesterday it stopped working. When I click on edit with Visual Composer Front End Editor it loads just a blank page.

    Please, contact administrator
    for this information.
    28 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 20, 2017 at 14:50

    Please turn on WP_DEBUG in wp-config.php https://codex.wordpress.org/WP_DEBUG so we could see errors log on your site.

    Regards

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 14:55

    I’ve enabled debugging. Thanks in advance.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 20, 2017 at 14:59

    Is your problem solved? http://prntscr.com/fy39st

    Regards

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 15:06

    Please find the info below.

    Please, contact administrator
    for this information.
    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 15:14

    Yes, what was the issue?

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 15:15

    However now I am seeing a notice at the top of the page:

    Only variables should be assigned by reference in /home/kinderkr/public_html/wp-content/plugins/exclude-pages/exclude_pages.php on line 92
    class=”page-template-default page page-id-189 page-parent logged-in admin-bar no-customize-support fixNav-enabled banner-mask- wide js-preloader open-popup breadcrumbs-type-1 wpb-js-composer js-comp-ver-5.2 vc_responsive”>

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 20, 2017 at 15:16

    I can’t see your files on FTP, seems you didn’t give me full access.
    Please try to disable debug now, and check page editor, if it doesn’t work, give full FTP access so I could check your files.

    REgards

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 15:16

    I am also seeing this error in the dashboard now:
    Notice: WP_Roles::reinit is deprecated since version 4.7.0! Use new WP_Roles() instead. in /home/kinderkr/public_html/wp-includes/functions.php on line 3831

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 15:19

    Please try this ftp

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 20, 2017 at 15:19

    As you can see, errors aren’t related to our theme so try to disable this plugin http://prntscr.com/fy3ibo

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 20, 2017 at 15:23

    To avoid any misunderstandings, please disable debug and the plugin and let me know about the situation with VC editor.

    Regards

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 15:47

    Ok, I removed that plugin – what about the second error? I never saw that before:

    Notice: WP_Roles::reinit is deprecated since version 4.7.0! Use new WP_Roles() instead. in /home/kinderkr/public_html/wp-includes/functions.php on line 3831

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 20, 2017 at 15:55

    This notice doesn’t relate to our theme. You can disable all 3-rd party plugins and then activate one by one to find which plugin cause the notice.

    Regards

    Avatar: brans2000
    brans2000
    Participant
    July 20, 2017 at 16:56

    I also noticed an error on the website for VC – please see this page:

    Notice: Undefined offset: 1 in /home/kinderkr/public_html/wp-content/themes/royal/framework/vc.php on line 1103

    http://www.kinderkrowns.com/technique/zirconia-kinder-krowns/

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 21, 2017 at 07:58

    Fixed.

    Regards

    Avatar: IndianBuyer
    Imran
    Participant
    July 23, 2017 at 07:28

    Hi, how did you fix the problem? Even on my website the VC is not loading. I did a manual update last night but still can’t see anything in the “Edit Page” … though it is visible and active in the plugins directory.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 24, 2017 at 10:34

    Hello, @Imran

    If you got the same error then got to themes/royal/framework/vc.php

    find code

    if($popup == 'yes') {
           $img_size = explode('x', $img_size);
       
           $width = $img_size[0];
           $height = $img_size[1];
       
           if($img != '') {
               $src = etheme_get_image($img, $width, $height);
           }elseif ($img_src != '') {
               $src = do_shortcode($img_src);
           }
           $text = esc_html__('Show video', 'royal');
           if($src != '') {
            $text = '<img src="'.$src.'">';
           }
          }

    and add replace by

    if($popup == 'yes') {
           $img_size = explode('x', $img_size); 
       
        if ( ! in_array( $img_size[0], array( "thumbnail", "medium", "large", "full" ))) {
    
            $width = $img_size[0];
            $height = $img_size[1];
    
            if($img != '') {
                $src = etheme_get_image($img, $width, $height);
                $src_img = $src;  
            }elseif ($img_src != '') {
                $src = do_shortcode($img_src);
                $src_img = $src;  
            }
          }
          else {
           $src = wp_get_attachment_image_src( $img, $img_size[0]);
           $src_img = $src[0];  
          }
           $text = esc_html__('Show video', 'royal');
           if($src_img != '') {
            $text = '<img src="'. $src_img .'">';
           }
          }

    Regards

    Avatar: seomar
    seomar
    Participant
    January 18, 2018 at 18:14

    Hi guys! Hope u doing well.
    Visual composer doesn’t load properly.
    I already turned on WP_DEBUG in wp-config.php
    Please help.
    Many thanks.
    David

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 19, 2018 at 08:09

    Hello, @seomar

    Please create a new topic for your problem.
    I would recommend you to update theme to latest version https://www.8theme.com/demo/docs/royal/#!/installation_upgrade, also make sure that all your plugins are updated https://www.8theme.com/download-plugins/.
    Before uploading theme files delete “woocommerce” folder, which is located in wp-content/themes/royal/ to avoid problems with old files (it’ll be reuploaded from a new theme package).
    Don’t forget to create backup of your files and database before starting update process!
    You need to enter your purchase code to activate the theme and skip Setup Wizard.

    Regards

  • 1 2
    Viewing 20 results - 1 through 20 (of 29 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.