Angelos Kyritsis
asked 2 years ago

Hello,
I upgraded from version 1.0.7 of DWQA pro to 1.0.9
I noticed that whenever I clicked on a question, I would get a completely blank page.
Looking into it, I noticed that one of the differences between the two version was that you replaced the “get_template_directory” with “get_stylesheet_directory” in five instances
This is the version 1.0.7 template.php
Line 711: if ( isset( $template ) && file_exists( trailingslashit( get_template_directory() ) . $template ) ) {
Line 712: return trailingslashit( get_template_directory() ) . $template;
Line 720: if ( file_exists( trailingslashit( get_template_directory() ) . $template ) ) {
Line 721: return trailingslashit( get_template_directory() ) . $template;
Line 822: $template_folder = trailingslashit( get_template_directory() );
This is the version 1.0.9 template.php
Line 711: if ( isset( $template ) && file_exists( trailingslashit( get_stylesheet_directory() ) . $template ) ) {
Line 712: return trailingslashit( get_stylesheet_directory() ) . $template;
Line 720: if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $template ) ) {
Line 721: return trailingslashit( get_stylesheet_directory() ) . $template;
Line 822: $template_folder = trailingslashit( get_stylesheet_directory() );
Replacing the “get_stylesheet_directory” with “get_template_directory” at the 1.0.9 template.php file solved the problem. I didn’t need to change anything else.
I am using Genesis Framework with the “Cook’d Pro” child theme.
Can you please look into it?

1 Answers
DominicStaff
answered 2 years ago

I have checked on our demo and it’s bug come from the plugin, we have checked and fixed it, you can download the late version from your account on the codecanyon. If you still face their issue, you can send me username & password of your site, we will check and help you resolve it.

Powered by DW Question & Answer Pro