Plugin not working
-
Hi, I’m excited about this plugin but can’t seem to get it to work on the blog post nor on my website in general.
Here’s a test page http://www.parlate.ca/test-quiz/#
I’ve read through the thread to find the solution, added the footer code (my theme is “Suffussion”) but nothing seems to get it to work.
Help! π
Thank you.
-
Hey @gioconda,
If you’re positive the footer code is present, try resetting the W3 Total Cache. Sometimes adding code to the theme isn’t enough to clear it out, but from what I can tell the lack of the footer code is the problem.
Let me know if clearing the cache doesn’t resolve it!
Hi @jewlofthelotus!
Thanks for your quick reply!I do actually need to reset the W3 Total Cache.
Do you know if it’s risky and should back up before I do it?@gioconda No, it’s not risky – you shouldn’t need to worry about backing anything up.
As an alternative, you could try just editing the quiz page – as in adding anything at all to the content area, saving it, and refreshing the page. That might trigger a cache refresh. But if that doesn’t work, just resetting the whole cache won’t break anything, it will just slow down page loads the very first time a page is loaded – not a big deal.
Phew! Done, but still not working.
This is what my Suffusion:footer.php looks like
suffusion_document_footer();
wp_footer(); ?>
</body>
</html>I had added this <?php wp_footer(); ?> but it gave me an error message so I removed it.
Hmmm… can you paste in here exactly what you have in your page’s content area? Be sure to use the
codebutton above to ensure that whitespace is maintained (paste between the ticks) .I’m not sure if this what you were asking.
Probably not. Where do I see my page’s content area?
I’m so sorry!<?php /** * Footer template, invoked when get_footer() is called * * @package Suffusion * @subpackage Templates */ global $suf_footer_layout_style; // Invoke hook - this creates the bottom widget area, the right sidebars etc. suffusion_before_end_container(); ?> </div><!-- /container --> <?php suffusion_after_end_container(); if ($suf_footer_layout_style == 'in-align') { suffusion_page_footer(); } ?> </div><!--/wrapper --> <?php if ($suf_footer_layout_style != 'in-align') { suffusion_page_footer(); } suffusion_document_footer(); wp_footer(); ?> </body> </html>I tried a few more things, but it’s still not working.The preview seems to work except for the ranking and social sharing buttons.
It might have something to do with my theme Suffusion?I was planning on adding the quiz to the blog post that I’m publishing tomorrow. Let me know if you can help and I could create a temporary admin account for you. Thank you!
@gioconda – What I meant by the page content area is the place where you added the shortcode to display the quiz. It would either be a page or a post. I’m just trying to see if maybe there is an extras space in the shortcode that might be breaking things.
If you could paste me the shortcode you entered and all the content surrounding it that might give some insight.
You might also try temporarily switching your theme to see if it works with another one, then that would definitely point the finger at an issue in Suffusion.
This the shortcode
[slickquiz id=1]Here’s a test page with the shortcode
http://www.parlate.ca/test-quiz/#
The quiz looks the same as in the blogpostYeah, so everything is loading on the page except for the actual script and stylesheet that make the quiz work. They should be loading because of the
wp_footermethod we checked for but they are not.I have an idea of what might be causing the problem, but you’d need to make an edit to the plugin.
- Go to Plugins > Editor
- Select SlickQuiz from the dropdown on the right side, then click Select to the right of the dropdown
- Click on slickquiz/php/slickquiz-front.php in the list below the select field
- In the file editor on the left, look for the following code:
// Only load resources when a shortcode is on the page if ( strpos( $content, '[slickquiz' ) === false ) { return $content; }and place
//before each line to disable them. - Click Update File below the edit box
- Reset WP Total Cache
- Reload your test page and see if the quiz works
Let me know if that works and then I’ll have an idea of how to fix this bug for other users!
Is this what it should look like?
When I try to update file it gives me an error message.{ // Only load resources when a shortcode is on the page // if ( strpos( $content, '[slickquiz' ) === false ) { // return $content; }Close! You’ll need to add the
//before that last}as well.// Only load resources when a shortcode is on the page // if ( strpos( $content, '[slickquiz' ) === false ) { // return $content; // }I did still get the error message.
Can you paste the error in here?
Parse error: syntax error, unexpected '$mainPluginFile' (T_VARIABLE), expecting function (T_FUNCTION) in /home4/miry/public_html/parlate.ca/wp-content/plugins/slickquiz/php/slickquiz-front.php on line 43I’m stuck. Could you paste the entire code of slickquiz/php/slickquiz-front.php for me?
The topic ‘Plugin not working’ is closed to new replies.