• While I was hosted with the despicable UKHOST4U I ran this script fine. Now I’ve changed hosts I’m having problems. It’s returning:
    Warning: main(): open_basedir restriction in effect. File(/wp-content/plugins/wp-last-visit.php?type=js) is not within the allowed path(s): (/home/wbhlkvjm:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wbhlkvjm/public_html/index.php on line 29
    Warning: main(/wp-content/plugins/wp-last-visit.php?type=js): failed to open stream: Operation not permitted in /home/wbhlkvjm/public_html/index.php on line 29
    Warning: main(): open_basedir restriction in effect. File(/wp-content/plugins/wp-last-visit.php?type=js) is not within the allowed path(s): (/home/wbhlkvjm:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wbhlkvjm/public_html/index.php on line 29
    Warning: main(/wp-content/plugins/wp-last-visit.php?type=js): failed to open stream: Operation not permitted in /home/wbhlkvjm/public_html/index.php on line 29
    Fatal error: main(): Failed opening required ‘/wp-content/plugins/wp-last-visit.php?type=js’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/wbhlkvjm/public_html/index.php on line 29
    Any advice / help on this problem most appreciated.
    Thanks. newts.

Viewing 1 replies (of 1 total)
  • Hmm.. I think the clue is in the error.
    “File () is not within the allowed path” and “Warning: main(): failed to open stream: Operation ot permitted in /path/to/file on line xx”
    The first error suggests this is a restriction that your current host has enabled. It’s worth getting in contact.
    The second error suggests that it’s not accessable by the web server. Try chmod’ing it to 666 or 766.
    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Alex’s Since Last Visit problem’ is closed to new replies.