• Hi,
    I’m the developer of sliding youtube gallery, another wordpress plugin.
    I found out that when a user don’t insert a shortcode for your plugin, the generated javascript cause an error. “paginateVal is not defined” That’s because when this script runs (CatViewGrid.php) like this:

    function cg_init_js(){
            global $paginateVal;
            echo '<script type="text/javascript">';
    	echo 'paginateVal = '.$paginateVal.';';
    	echo '</script>';
    	do_action('cg_init_js');
    }

    If $paginateVal is null then user will have javascript error causing other plugin break. I suggest you to modify the script like this:

    function cg_init_js(){
            global $paginateVal;
    	if (empty($paginateVal)) {
    		$paginateVal = 0;
    	}
    	echo '<script type="text/javascript">';
    	echo 'paginateVal = '.$paginateVal.';';
    	echo '</script>';
    	do_action('cg_init_js');
    }

    Thank you.

    Luca

    https://www.ads-software.com/plugins/category-grid-view-gallery/

Viewing 1 replies (of 1 total)
  • I confirm there were problems with simple-press forum and wp-polls. At least these two were having severe issues. When I applied the ‘fix’ as given above the issue appears to be resolved.

    I hope the author considers adding this to the plugin.

    Great job Luca!

Viewing 1 replies (of 1 total)
  • The topic ‘I suggest you a fix on CatViewGrid.php’ is closed to new replies.