• Resolved sharonbeyond

    (@sharonbeyond)


    We found the following errors that make the site down :
    require(‘/nas/content/li…’)\n#17 {main}\n thrown in /nas/content/live/citybelievlive/wp-content/plugins/page-scroll-to-id/malihu-pagescroll2id.php on line 388

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

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter sharonbeyond

    (@sharonbeyond)

    @malihu Cache clear has been done many times

    Plugin Author malihu

    (@malihu)

    Make one last test:

    In plugin file editor select “Page scroll to id”. Comment all lines from 388 to 399 like this:

    /* $instances_count=(is_array($instances) || $instances instanceof Countable) ? count($instances) : 1;
    			for($i=1; $i<=count($instances_count); $i++){
    				$pl_shortcodes[]='pl_shortcode_fn_'.$i;
    				$pl_shortcodes_b[]='pl_shortcode_fn_'.$i;
    				// --edit--
    				$tag=$shortcode_class=$this->sc_pfx; // Shortcode without suffix 
    				$tag_b=$this->sc_pfx.'_wrap'; // Shortcode without suffix 
    				//$tag=$shortcode_class=$this->sc_pfx.'_'.$i; // Shortcode with suffix 
    				include_once(
    					plugin_dir_path( __FILE__ ).(version_compare(PHP_VERSION, '5.3', '<') ? 'includes/malihu-pagescroll2id-shortcodes-php52.php' : 'includes/malihu-pagescroll2id-shortcodes.php')
    				);
    			} */

    Save, test and let me know if the error is there and if it still says about 388 line.

    Thread Starter sharonbeyond

    (@sharonbeyond)

    @malihu Thank you so much, we have comment the lines from 388 to 399 and now the site works fine.

    Plugin Author malihu

    (@malihu)

    @sharonbeyond No problem ??

    Try one more test please:

    Replace the commented code (lines from 388 to 399) to:

    for($i=1; $i<=count((array)$instances); $i++){
    				$pl_shortcodes[]='pl_shortcode_fn_'.$i;
    				$pl_shortcodes_b[]='pl_shortcode_fn_'.$i;
    				// --edit--
    				$tag=$shortcode_class=$this->sc_pfx; // Shortcode without suffix 
    				$tag_b=$this->sc_pfx.'_wrap'; // Shortcode without suffix 
    				//$tag=$shortcode_class=$this->sc_pfx.'_'.$i; // Shortcode with suffix 
    				include_once(
    					plugin_dir_path( __FILE__ ).(version_compare(PHP_VERSION, '5.3', '<') ? 'includes/malihu-pagescroll2id-shortcodes-php52.php' : 'includes/malihu-pagescroll2id-shortcodes.php')
    				);
    			}

    Save, test and let me know.

    Thread Starter sharonbeyond

    (@sharonbeyond)

    OK I WILL TRY THIS AND LET YOU KNOW HOW IT WORKS

    Thread Starter sharonbeyond

    (@sharonbeyond)

    @malihu This the same code has been used before and this codes only has been commented

    Plugin Author malihu

    (@malihu)

    It’s not exactly the same code. The first line is different:

    for($i=1; $i<=count((array)$instances); $i++){

    Plugin Author malihu

    (@malihu)

    The function should be exactly like this:

    public function add_plugin_shortcode(){
    			$pl_shortcodes=array();
    			$pl_shortcodes_b=array();
    			$instances=get_option($this->db_prefix.'instances');
    			for($i=1; $i<=count((array)$instances); $i++){
    				$pl_shortcodes[]='pl_shortcode_fn_'.$i;
    				$pl_shortcodes_b[]='pl_shortcode_fn_'.$i;
    				// --edit--
    				$tag=$shortcode_class=$this->sc_pfx; // Shortcode without suffix 
    				$tag_b=$this->sc_pfx.'_wrap'; // Shortcode without suffix 
    				//$tag=$shortcode_class=$this->sc_pfx.'_'.$i; // Shortcode with suffix 
    				include_once(
    					plugin_dir_path( __FILE__ ).(version_compare(PHP_VERSION, '5.3', '<') ? 'includes/malihu-pagescroll2id-shortcodes-php52.php' : 'includes/malihu-pagescroll2id-shortcodes.php')
    				);
    			}
    		}
Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘This plugin makes the site down’ is closed to new replies.