• Resolved StasNemy

    (@stasnemy)


    While I start Rebuild cache throw errow

    
    VM201 options-general.php:715 Uncaught TypeError: Cannot read property 'title' of undefined
        at rebuildItem (VM201 options-general.php:715)
        at Object.success (VM201 options-general.php:782)
        at i (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:2)
        at x (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:4)
        at XMLHttpRequest.c (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:4)
    rebuildItem @ VM201 options-general.php:715
    success @ VM201 options-general.php:782
    i @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:2
    fireWith @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:2
    x @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:4
    c @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:4
    XMLHttpRequest.send (async)
    send @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:4
    ajax @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4.2:4
    rebuild @ VM201 options-general.php:767
    onclick @ VM258 options-general.php:519
    
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Hi,
    Can you please add a title to the page/post where you added the shortcode for spreadplugin?

    Thread Starter StasNemy

    (@stasnemy)

    <?php
    
    /**
     * Template name: My shop 
     * */
    
    get_header();
    wp_reset_query();
    ?>
    <main id="primary" class="site-main">
    
      <section class="my-shop container">
        <header class="page-header text-center">
          <h1 class="page-title m-0"><?php esc_html_e(the_title(), 'acadiac'); ?></h1>
        </header>
        <!-- .page-header -->
        <?php echo do_shortcode('[spreadplugin'); ?>
    
    </main><!-- #main -->
    <?php
    get_footer(); ?>

    end result is ?No articles in Shop. Please rebuild cache.?

    • This reply was modified 4 years, 9 months ago by StasNemy.
    • This reply was modified 4 years, 9 months ago by StasNemy.
    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Oh, you’re building your template pages? Interesting, normally a post with [spreadplugin] would be enough, but you might want to check the code <?php echo do_shortcode('[spreadplugin'); ?> the shortcode is not closed.

    Try this instead:
    <?php echo do_shortcode('[spreadplugin]'); ?>

    Tbh, I’m not sure if it works via do_shortcode in general, didn’t test it.

    Thread Starter StasNemy

    (@stasnemy)

    I mean here https://ibb.co/X8LPtj1
    I don’t can ‘Rebuild cache’

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Yes, if you fix the issue in your shortcode – the missing ], it should work.

    <?php echo do_shortcode('[spreadplugin]'); ?>

    Thread Starter StasNemy

    (@stasnemy)

    now <?php echo do_shortcode('[spreadplugin]'); ?>
    Respone on the page “No articles in Shop. Please rebuild cache.”

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    You did hit rebuild cache after creating a page with your new template?

    If it still doesn’t doesn’t work, create a page/post and add the spreadplugin shortcode over there with a title and just the shortcode as content. Then click “Rebuild Cache”.

    Thread Starter StasNemy

    (@stasnemy)

    Ok, I’ll do it tommorow.

    Thread Starter StasNemy

    (@stasnemy)

    Thank you! It’s worked for me!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Rebuild cache’ is closed to new replies.