Title: reqPath Variable Help &#8211; from a php Noob
Last modified: August 18, 2016

---

# reqPath Variable Help – from a php Noob

 *  [basketball](https://wordpress.org/support/users/basketball/)
 * (@basketball)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/reqpath-variable-help-from-a-php-noob/)
 * Well I`m just trying to install this style changer into wordpress and I`m 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [basketball](https://wordpress.org/support/users/basketball/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/reqpath-variable-help-from-a-php-noob/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
