Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17

Occasional Error: Failed to open stream

This is a discussion on Occasional Error: Failed to open stream within the Troubleshooting forums, part of the vBSEO SEO Plugin category; We recently installed vBSEO (a couple of weeks ago) Most of the time, everything works fine. We are seeing an ...

  1. #1
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times

    Occasional Error: Failed to open stream

    We recently installed vBSEO (a couple of weeks ago)
    Most of the time, everything works fine. We are seeing an occasional error when someone starts a new thread. When this happens, it happens to the first post in a thread (There will not be any posts after the initial thread post). This has only happened twice in the past couple of weeks. This is the error you see when trying to view the thread.

    Warning: main(/home/t17/public_html/forums/2347-serious-but-same-time-lighter-side-news.php): failed to open stream: No such file or directory in /home/t17/public_html/forums/vbseo.php on line 864

    Warning: main(/home/t17/public_html/forums/2347-serious-but-same-time-lighter-side-news.php): failed to open stream: No such file or directory in /home/t17/public_html/forums/vbseo.php on line 864

    Fatal error: main(): Failed opening required '/home/t17/public_html/forums/2347-serious-but-same-time-lighter-side-news.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/t17/public_html/forums/vbseo.php on line 864
    I am concerned about the error. When this happens, the only thing I can do is delete the thread. Anyone know why this is happening?

    Thanks in advance for any help/suggestions!

    DodgeBoard.com

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    this error must be related to a conflict with one of your Custom Rewrite Rules. Please check it or post a list of your CRRs here and we'll find out which one causes this.

  3. #3
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times

    CRR's

    'calendar\.php$' => 'calendar.html'
    'calendar\.php\?do=getinfo&day=(\d+)-(\d+)-(\d+)&e=(\d+)&c=1' => 'calendar/$1-$2-$3/event-$4/'
    'calendar\.php\?do=getinfo&e=(\d+)&day=(\d+)-(\d+)-(\d+)&c=1' => 'calendar/event-$1/$2-$3-$4/'
    'calendar\.php\?month=(\d+)&year=(\d+)&c=1&do=disp laymonth' => 'calendar/month-$1/year-$2/'
    'calendar\.php\?c=1&week=(\d+)&do=displayweek&mont h=(\d+)' => 'calendar/week-$1/month-$2/'
    'calendar\.php\?do=getinfo&day=(\d+)-(\d+)-(\d+)&c=1' => 'calendar2/event-$1/$2-$3-$4/'
    'calendar\.php\?c=1&week=(\d+)' => 'calendar/week-$1/'
    'dailyhoroscopes\.php$' => 'dailyhoroscopes.html'
    'dailyhoroscopes\.php\?sign=aries'=>'dailyhoroscop es_aries.html'
    'dailyhoroscopes\.php\?sign=taurus'=>'dailyhorosco pes_taurus.html'
    'dailyhoroscopes\.php\?sign=gemini'=>'dailyhorosco pes_gemini.html'
    'dailyhoroscopes\.php\?sign=cancer'=>'dailyhorosco pes_cancer.html'
    'dailyhoroscopes\.php\?sign=leo'=>'dailyhoroscopes _leo.html'
    'dailyhoroscopes\.php\?sign=virgo'=>'dailyhoroscop es_virgo.html'
    'dailyhoroscopes\.php\?sign=libra'=>'dailyhoroscop es_libra.html'
    'dailyhoroscopes\.php\?sign=scorpio'=>'dailyhorosc opes_scorpio.html'
    'dailyhoroscopes\.php\?sign=sagittarius'=>'dailyho roscopes_sagittarius.html'
    'dailyhoroscopes\.php\?sign=capricorn'=>'dailyhoro scopes_capricorn.html'
    'dailyhoroscopes\.php\?sign=aquarius'=>'dailyhoros copes_aquarius.html'
    'dailyhoroscopes\.php\?sign=pisces'=>'dailyhorosco pes_pisces.html'
    'dailyhoroscopes\.php\?sign=cancer'=>'dailyhorosco pes_cancer.html'
    'arcade\.php$' => 'arcade.html'
    'arcade\.php\?categoryid=(\d+)' => 'arcade_category-$1.html'
    'sr_classifieds\.php$' => 'sr_classifieds.html'
    'sr_classifieds\.php\?do=category&categoryid=(\d+) ' => 'sr_classifieds_category-$1.html'
    'sr_classifieds\.php\?do=newad&categoryid=(\d+)' => 'sr_classifieds_newad-$1.html'
    'sr_classifieds\.php\?do=ad&id=(\d+)' => 'sr_classifieds_ad_id-$1.html'
    'sr_classifieds\.php\?do=user&userid=(\d+)' => 'sr_classifieds_userid-$1.html'
    'userpage\.php\?do=list' => 'userpage_list.html'
    'userpage\.php\?do=main&userid=(\d+)' => 'userpage_userid-$1.html'
    'worldmap\.php$' => 'worldmap.html'
    'misc\.php\?do=flashchat'=>'misc_flashchat.html'
    'news\.php$' => 'news.html'
    'register\.php$' => 'register.html'
    'search\.php$' => 'seach.html'
    '^faq\.php$' => 'faq.html'
    '^faq\.php\?faq=vb_faq' => 'faq-vb_faq.html'
    '^faq\.php\?faq=tou' => 'faq-tou.html'
    '^faq\.php\?faq=vb_user_maintain' => 'faq-vb_user_maintain.html'
    '^faq\.php\?faq=vb_board_usage' => 'faq-vb_board_usage.html'
    '^faq\.php\?faq=vb_read_and_post' => 'faq-vb_read_and_post_.html'
    'local_links\.php$' => 'local_links.html'
    'local_links\.php\?catid=(\d+)' => 'local_links-catid-$1.html'
    'local_links\.php\?action=jump&id=(\d+)&catid=(\d+ )' => 'local_links-jump_id-$1-$2.html'
    'local_links\.php\?action=ratelink&linkid=(\d+)&ca tid=(\d+)&lpage=(\d+)' => 'local_links-rate_id-$1-$2-$3.html'
    Could this be a conflict with my news CRR?

    I have a plugin for news. Come to think of it, I think the other thread that had the error was titled "Arcade News". me thinks that any thread title ending with News is when it breaks. Should I rename the news link to somthing else like News123 and then rewrite the rule to News123?

    Thanks Oleg!

  4. #4
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times

    further testing

    any threads that end with the word "news" have problems
    any threads that end with the word "register" also have a problem
    any threads that end with the word "worldmap" also have a problem
    any threads that end with the word "arcade" also have a problem


    for some reason, these words are unaffected: search, misc, userpage

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, you should try to modify your news and register CRRs to:
    Code:
    '^news\.php$' => 'news.html'
    '^register\.php$' => 'register.html'

  6. #6
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times
    I had them that way before but caused issues with my vbadvanced Navbar and you had me remove the "^" which fixed the vBAdvanced..

    See this thread:

    vBadvanced redirection loop

    If I change them back, then the vBAdvanced navbar wont function correctly

  7. #7
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times

    I think I figured it out..

    I changed my rewrite rules and this seems to have fixxed the problems.

    'calendar\.php$' => 'calendar123.html'
    'calendar\.php\?do=getinfo&day=(\d+)-(\d+)-(\d+)&e=(\d+)&c=1' => 'calendar/$1-$2-$3/event-$4/'
    'calendar\.php\?do=getinfo&e=(\d+)&day=(\d+)-(\d+)-(\d+)&c=1' => 'calendar/event-$1/$2-$3-$4/'
    'calendar\.php\?month=(\d+)&year=(\d+)&c=1&do=disp laymonth' => 'calendar/month-$1/year-$2/'
    'calendar\.php\?c=1&week=(\d+)&do=displayweek&mont h=(\d+)' => 'calendar/week-$1/month-$2/'
    'calendar\.php\?do=getinfo&day=(\d+)-(\d+)-(\d+)&c=1' => 'calendar2/event-$1/$2-$3-$4/'
    'calendar\.php\?c=1&week=(\d+)' => 'calendar/week-$1/'
    'dailyhoroscopes\.php$' => 'dailyhoroscopes.html'
    'dailyhoroscopes\.php\?sign=aries'=>'dailyhoroscop es_aries.html'
    'dailyhoroscopes\.php\?sign=taurus'=>'dailyhorosco pes_taurus.html'
    'dailyhoroscopes\.php\?sign=gemini'=>'dailyhorosco pes_gemini.html'
    'dailyhoroscopes\.php\?sign=cancer'=>'dailyhorosco pes_cancer.html'
    'dailyhoroscopes\.php\?sign=leo'=>'dailyhoroscopes _leo.html'
    'dailyhoroscopes\.php\?sign=virgo'=>'dailyhoroscop es_virgo.html'
    'dailyhoroscopes\.php\?sign=libra'=>'dailyhoroscop es_libra.html'
    'dailyhoroscopes\.php\?sign=scorpio'=>'dailyhorosc opes_scorpio.html'
    'dailyhoroscopes\.php\?sign=sagittarius'=>'dailyho roscopes_sagittarius.html'
    'dailyhoroscopes\.php\?sign=capricorn'=>'dailyhoro scopes_capricorn.html'
    'dailyhoroscopes\.php\?sign=aquarius'=>'dailyhoros copes_aquarius.html'
    'dailyhoroscopes\.php\?sign=pisces'=>'dailyhorosco pes_pisces.html'
    'dailyhoroscopes\.php\?sign=cancer'=>'dailyhorosco pes_cancer.html'
    'arcade\.php$' => 'arcade1.html'
    'arcade\.php\?categoryid=(\d+)' => 'arcade_category-$1.html'
    'sr_classifieds\.php$' => 'sr_classifieds.html'
    'sr_classifieds\.php\?do=category&categoryid=(\d+) ' => 'sr_classifieds_category-$1.html'
    'sr_classifieds\.php\?do=newad&categoryid=(\d+)' => 'sr_classifieds_newad-$1.html'
    'sr_classifieds\.php\?do=ad&id=(\d+)' => 'sr_classifieds_ad_id-$1.html'
    'sr_classifieds\.php\?do=user&userid=(\d+)' => 'sr_classifieds_userid-$1.html'
    'userpage\.php\?do=list' => 'userpage_list.html'
    'userpage\.php\?do=main&userid=(\d+)' => 'userpage_userid-$1.html'
    'worldmap\.php$' => 'worldmap123.html'
    'misc\.php\?do=flashchat'=>'misc_flashchat.html'
    'news\.php$' => 'news123.html'
    'register\.php$' => 'register123.html'
    'search\.php$' => 'search123.html'
    '^faq\.php$' => 'faq.html'
    '^faq\.php\?faq=vb_faq' => 'faq-vb_faq.html'
    '^faq\.php\?faq=tou' => 'faq-tou.html'
    '^faq\.php\?faq=vb_user_maintain' => 'faq-vb_user_maintain.html'
    '^faq\.php\?faq=vb_board_usage' => 'faq-vb_board_usage.html'
    '^faq\.php\?faq=vb_read_and_post' => 'faq-vb_read_and_post_.html'
    'local_links\.php$' => 'local_links.html'
    'local_links\.php\?catid=(\d+)' => 'local_links-catid-$1.html'
    'local_links\.php\?action=jump&id=(\d+)&catid=(\d+ )' => 'local_links-jump_id-$1-$2.html'
    'local_links\.php\?action=ratelink&linkid=(\d+)&ca tid=(\d+)&lpage=(\d+)' => 'local_links-rate_id-$1-$2-$3.html'
    Now I just need to hope nobody posts something like "I like the calendar123"


    Let me know of there is a better way to do this

  8. #8
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Quote Originally Posted by DodgeBoard.com View Post
    Now I just need to hope nobody posts something like "I like the calendar123"
    I'll take that as an action item.

  9. #9
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times

    carrot or no carrot, that is the question...

    so, let me see if I understand this...

    If you put the carrot (^) before the rule, that fixes it but breaks external pages like vBAdvanced.

    Workaround would be to redefine the CRR to something that would be unlikely to be used at the end of a thread, ie "arcade123.html" instead of "arcade.html".

    I have implemented these changes in my defined CRR's


    This seems like a band-aid.

    Seems like there would be a better way to do this. What am I missing?

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, that's right. You can use something more for CRR though, like arcadepage.html

  11. #11
    Member
    Real Name
    administrator
    Join Date
    Sep 2006
    Location
    Dodge City
    Posts
    62
    Liked
    0 times
    OK, Thanks Oleg!

    Things seem to be working good now after making the changes

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Great!

  13. #13
    Senior Member MissKalunji's Avatar
    Real Name
    Mj
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    207
    Liked
    2 times
    im having the same problem as well sometimes when viewing pictures but always when i try to post comment...

    Code:
    'browseimages\.php\?c=(\d+)$' => 'browse-$1.html'
    'browseimages\.php\?c=(\d+)&page=( \d+)$' => 'browse-$1-$2.html'
    'browseimages\.php\?c=(\d+)&userid=$' => 'browse-$1-albums.html'
    'browseimages\.php\?c=(\d+)&userid=(\d+)$' => 'browse-$1-user$2.html'
    'browseimages\.php\?c=(\d+)&u=(\d+)$' => 'browse-$1-user$2.html'
    'browseimages\.php\?do=popimages$' => 'top.html'
    'browseimages\.php\?do=popimages&orderby=views' => 'topviews.html'
    'browseimages\.php\?do=popimages&orderby=rating' => 'toprated.html'
    'browseimages\.php\?do=popimages&orderby=posts' => 'toppost.html'
    'showimage\.php\?i=(\d+)&noignore=0&postid=(\d+)$' => 'image-$1-$2.html'
    'showimage\.php\?i=(\d+)&original=1.*$' => 'image-$1big.html'
    'showimage\.php\?i=(\d+).*$' => 'image-$1-.html'
    'gallery/index\.php' => 'home.html'
    This is my custom rewrite rules
    Last edited by MissKalunji; 04-17-2007 at 01:37 PM.

  14. #14
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    what is the URL that causes the error and what is the exact error message in your case?

  15. #15
    Senior Member MissKalunji's Avatar
    Real Name
    Mj
    Join Date
    Mar 2006
    Location
    Canada
    Posts
    207
    Liked
    2 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    what is the URL that causes the error and what is the exact error message in your case?
    http://www.dancehallareaz.com/forum/....html#post1345

    Code:
    Warning:  main(/home/danceha/public_html/forum/showimage.php): failed to open stream: No such file or directory in /home/danceha/public_html/forum/vbseo.php on line 906
    
    Warning:  main(/home/danceha/public_html/forum/showimage.php): failed to open stream: No such file or directory in /home/danceha/public_html/forum/vbseo.php on line 906
    
    Fatal error: main(): Failed opening required '/home/danceha/public_html/forum/showimage.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/danceha/public_html/forum/vbseo.php on line 906
    


Page 1 of 2 1 2 LastLast

Similar Threads

  1. Failed to open stream messages
    By azarl in forum Troubleshooting
    Replies: 1
    Last Post: 07-24-2006, 11:38 AM
  2. Error open stream
    By TraumTeam in forum Troubleshooting
    Replies: 9
    Last Post: 07-07-2006, 08:07 AM
  3. GzOpen() failed to open stream
    By COlson87 in forum Troubleshooting
    Replies: 1
    Last Post: 06-20-2006, 09:30 PM
  4. whoa, tons of errors
    By mindhunter77 in forum Troubleshooting
    Replies: 5
    Last Post: 03-10-2006, 03:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •