Plugin Support
Gabor
(@nextendweb_gabor)
Hi @niki-bilejn!
This error message says, that something is set up wrongly with your theme’s directory and that messes up WordPress’ get_template_directory function. Was your wp-config.php file modified about what paths it should use? Because as I read about your problem, that commonly causes this issue. Also if you remove this code, can you activate your theme?
Hi,
Wp-config.php is not modified, get_template_directory function work in all other cases, for example I calling other demo files (xml, dat ,wie) from the same directory with “one click demo import” plugin. When I remove code theme can be activated and everything works normal.
Hi @niki-bilejn
I just copied your code to a text editor and for some odd reason the double quotes seem to be different than what they should be. Here’s a screenshot: https://imgur.com/a/gMm9A
I’m wondering if this is the reason of the fatal error.
So the code should be like this:
$sliderID = SmartSlider3::import(get_template_directory()."/ocdi/theme_demo_slider.ss3");