• Resolved Niki Bilejn

    (@niki-bilejn)


    Hi

    I copy this code to my functions.php
    $sliderID = SmartSlider3::import(get_template_directory().”/ocdi/theme_demo_slider.ss3″);

    and get error when I try to activate theme

    The theme directory does not exist in xxx/xxx/xxx/functions.php line 230

    What I’m doing wrong

    Thanx

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

    Thread Starter Niki Bilejn

    (@niki-bilejn)

    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.

    Ramona

    (@nextend_ramona)

    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");

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error’ is closed to new replies.