Faisal Sahar
asked 10 years ago

Hello Guys the embed question is a great feature, recently I installed the embed question plugin and when clicked on embed code in a question in the preview section it says
Fatal error: Call to a member function load_template() on a non-object in /home/negaar/public_html/payk/wp-content/plugins/dwqa-embed-question/templates/single-question-embed.php on line 24
Thanks 🙂

5 Answers
BigHug
answered 10 years ago

Hi Faisal Sahar,
We do not meet this problem in our site so Can you provide me an admin account ( through private answer ) of your site for further checking?
Regards

Faisal Sahar
replied 10 years ago

It’s done,

eric gu
replied 10 years ago

Hi, I have a same problem. How did you fix it?

DominicStaff
answered 10 years ago

Hi Faisal Sahar,
BigHug have helped you remove this issue, please double check and let me know if you need more help.
Regards

Faisal Sahar
replied 10 years ago

Thanks Dominic, You’re the BEST.
Can you please tell me what was the issues cause I have this error on multiple websites.

eric gu
replied 10 years ago

Hi Dominic, I get the same issue. How did you fix it?

well wisher
answered 10 years ago

same problem whats the solution?

DominicStaff
answered 10 years ago

To resolve this issue, you can open the single-question-embed.php file in the folder path “dwqa-embed-question/templates” Find the
line 23.
Replace the following code:

 <?php global $post; $dwqa_embed; setup_postdata( $post ); ?>

With new code:

 <?php global $post, $dwqa_embed; setup_postdata( $post ); ?>

Hope this helps !

well wisher
replied 10 years ago

thanks for the information @Dominic but what it does is it embeds whole site instead of just the question when seen in preview

well wisher
answered 10 years ago

@Dominic any confirmation on this?

DominicStaff
answered 10 years ago

Apologies for the delay in replying to you.
Thanks for letting us know. We have checked on our demo site and you’re right, that’s a bug which comes from the plugin. We will fix it in the upcoming version as soon as possible.
Regards,

Powered by DW Question & Answer Pro