WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
javascript console errors (4 posts)

  1. debsjenkins
    Member
    Posted 5 months 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.

    Debs
    http://www.fincatorrecillas.com

  2. debsjenkins
    Member
    Posted 5 months 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">

    from

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

  3. ElectricFeet
    Member
    Posted 5 months 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
    Member
    Theme Author

    Posted 5 months 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.
    Best

Reply

You must log in to post.

About this Theme

About this Topic