Results 1 to 5 of 5

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

This is a discussion on Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' within the Bug Reporting forums, part of the vBSEO SEO Plugin category; VBSEO ate my entire forum. Parse error : syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/brakkish/public_html/forum/includes/config_vbseo.php on line 479 This ...

  1. #1
    Junior Member Array Brakkish's Avatar
    Real Name
    Brakkish
    Join Date
    Aug 2009
    Posts
    10
    Liked
    0 times

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

    VBSEO ate my entire forum.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/brakkish/public_html/forum/includes/config_vbseo.php on line 479

    This is the error I get after doing some custom rewrites. All was fine until my last rewrite. Probably missed a "." or "\" or " ' " somewhere. Something so small, can down my entire site. Surely there needs to be added some checks or something so other users don't fall into this. It's REAL easy to make a small mistake when typing in all the "stuff" to do a rewrite.

    www.hammerfistclan.com/forum

    I have a very large community wondering WTF right about now. Help!

  2. #2
    vBSEO Staff Array Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    675 times
    Blog Entries
    2
    You're likley missing a quote mark or a semi colon.

    If you're using the form in the website, it should automatically //comment out bad commands. If you're doing it directly via includes/config_vbseo.php directly in an editor, there is no check.

    Post your rules (here or in ticket if you prefer to keep it private) so we can fix for you
    Brian Cummiskey / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member Array Brakkish's Avatar
    Real Name
    Brakkish
    Join Date
    Aug 2009
    Posts
    10
    Liked
    0 times
    That's the major problem, once the error occurs it's a white screen of death. So there's not much in the way of info I can gather afterwards. Can't access, vbseo panel, can't access forum admin... nothing. I managed to fix the problem by re-installing vbseo.

    And it's not auto commenting errors out. It's not the first time it's happened. (it's easy to make mistakes in the rewrite section when your eyes are tired) But most of the time I can use the back button, and fix my mistake, then re-save.

    But anyway, feel free to mark this issue resolved (for me).. but just a fyi, the auto commenting out of errors does not seem to be working as intended, or at least on my site anyway.
    Brakkish | Community Manager - Hammerfist Gaming

  4. #4
    vBSEO Staff Array Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    675 times
    Blog Entries
    2
    Glad you got it fixed.

    In the future if you have issues, instead of re-installing everything, you can manually open includes/coifig_vbseo.php and clear out (after saving a backup) the CRR/ CR arrays/strings.

    ie,

    Code:
     // ****** DEFINE CUSTOM REWRITE RULES ******
        $vbseo_custom_rules = array(
    '^calendar\.php$' => 'calendar/',
    '^calendar\.php\?c=1$' => 'calendar/',
    '^calendar\.php\?(c=1&)?do=(display.+?)(&year=)?$' => 'calendar/$2/[NF]',
    'calendar\.php\?(c=1&)?nojs=1' => 'calendar/nojs/[NF]',
    'calendar\.php\?(c=1&)?do=(display.+?)&nojs=1' => 'calendar/$2/nojs/[NF]',
    'calendar\.php\?(c=1&)?week=(\d+)&nojs=1' => 'calendar/week-$2/nojs/[NF]',
    'calendar\.php\?(c=1&)?month=(\d+)&year=(\d+)&nojs=1' => 'calendar/$3/$2/nojs/[NF]',
    '^calendar\.php\?do=getinfo&(c=1&)?day=(\d+)-(\d+)-(\d+)(&c=1)?$' => 'calendar/$2/$3/$4/',
    '^calendar\.php\?do=getinfo&e=(\d+)(&day=[0-9\-]+)?(&c=1)?$' => 'calendar/event-$1/',
    '^calendar\.php\?(s=&)?(c=1&)?(week=&)?month=(\d+)&year=(\d+)(&c=1)?(&do=displaymonth)?$' => 'calendar/$5/$4/',
    '^calendar\.php\?c=1&week=(\d+)(&do=displayweek&month=.+?)?$' => 'calendar/week-$1/');
    to:

    Code:
     // ****** DEFINE CUSTOM REWRITE RULES ******
        $vbseo_custom_rules = array();
    and the same concept for the next 3 as well:

    Code:
    $vbseo_custom_rules_text = '';
    $vbseo_custom_301 = array();
    $vbseo_custom_301_text = '';

    You can then start over adding 1 at a time (or by sections, etc) to diagnos which one is causing the issue.
    Brian Cummiskey / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Junior Member Array Brakkish's Avatar
    Real Name
    Brakkish
    Join Date
    Aug 2009
    Posts
    10
    Liked
    0 times
    Ahh very good to know. Thanks for the help.
    Brakkish | Community Manager - Hammerfist Gaming

Similar Threads

  1. Replies: 1
    Last Post: 09-03-2009, 07:07 AM
  2. Syntax error
    By Riccardo79 in forum Troubleshooting
    Replies: 1
    Last Post: 03-18-2009, 05:41 PM
  3. Replies: 9
    Last Post: 09-15-2008, 01:05 PM
  4. Changing Password Syntax Error
    By brand0n in forum Troubleshooting
    Replies: 1
    Last Post: 09-23-2007, 08:48 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
  •