• Well Im just trying to install this style changer into wordpress and Im having all sorts of error when I try to add in a reqpath to something. How exactly do I go about doing this?

    I tried making it
    $reqPath = "../public_html/"

    Then I got this error
    $reqPath = "Fatal error: Call to a member function on a non-object in /home/bballqfs/public_html/wp-content/themes/k2/header.php on line 83

    Then I made it
    $reqPath = "./"

    Then I got this error
    Fatal error: Call to a member function on a non-object in /home/bballqfs/public_html/wp-content/themes/k2/header.php on line 83

    Then I made it
    $reqPath = "./home/bballqfs/public_html/"

    Then I got this error
    Warning: main(./home/bballqfs/public_html/Styleswitcher.php): failed to open stream: No such file or directory in /home/bballqfs/public_html/wp-content/themes/k2/header.php on line 81

    Fatal error: main(): Failed opening required './home/bballqfs/public_html/Styleswitcher.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bballqfs/public_html/wp-content/themes/k2/header.php on line 81

    So the actual file (Styleswitcher.php) is in my main directory of the website (public_html), which is the same place my blog is installed. Any ideas would be great, I`m not very good working with php.

The topic ‘reqPath Variable Help – from a php Noob’ is closed to new replies.