javascript console errors (4 posts)

  1. debsjenkins
    Posted 2 years ago #

    First of all we love the theme - great job!

    We were gettting JavaScript console errors that are stopping things like the Google Maps and Twitter sharing features working. The problem is that paginateVal is undefined. We found a solution here http://wordpress.org/support/topic/javascript-error-paginateval-is-undefined whereby we put <?php echo do_shortcode("[cgview id=100000 paginate=40]") ?> at the top of class-content-page.php. Now things seem to work again. There is probably a more elegant place to do this.


  2. debsjenkins
    Posted 2 years ago #

    That hack didn't work so well as it had bad side effects elsewhere. Now we are putting this at the start of header.php:

    <script type="text/javascript"> var paginateVal = 0;</script>

    We still get a console error from a snippet of JS that is written in by the PHP in CatGridView.php it writes:

    <script type="text/javascript">paginateVal = ;</script> <script type="text/javascript">


    echo 'paginateVal = '.$paginateVal.';';

  3. ElectricFeet
    Posted 2 years ago #

    Thousands of people are using Customizr without these errors. Either you have a bad install, or it's a plugin conflict. Try reinstalling Customizr and deactivating all plugins. Then work from there to reactivate the plugins one by one to find which is causing your problem.

    There is no CatGridView.php in Customizr, nor WordPress, so I expect your problem is with the "Category Grid View Gallery" plugin.

  4. nikeo
    Theme Author

    Posted 2 years ago #

    @debsjenkins thanks for reporting this. Do you still have a conflict with the plugin?
    Thanks for letting me know and I'll work on a fix if needed.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic