Error :Cannot use string offset as an array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woodmj
    Senior Member
    • Mar 2013
    • 205
    • 5.7.5

    Error :Cannot use string offset as an array

    Just wondered if anyone's come across this error? It started after a database backup restore. This is the error I get when I have debug enabled.

    Error :Cannot use string offset as an array on line 140 in /home/xxx/includes/vb5/frontend/routing.php
    Step 0: showErrorPage() called on line 289 in /home/xxxl/includes/vb5/applicationabstract.php
    Step 1: handleException() called
    Exception Cannot use string offset as an array on line 1307 in /home/xxx/core/vb5/route.php
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    What exactly are you doing when you get the error?

    What are the results of this query if you run it directly against your database:

    Code:
    SELECT * FROM routenew WHERE name IS NOT NULL;
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • woodmj
      Senior Member
      • Mar 2013
      • 205
      • 5.7.5

      #3
      Wayne Luke basically if I go to my homepage where the forum would usually pop up. I get the same with most of the Admin Utils too :-o I can see the database in phpMyAdmin and have terminal access but I don't seem to be able to get to any of my Vbulletin pages.

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        Please run the query above. What are the results?
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • woodmj
          Senior Member
          • Mar 2013
          • 205
          • 5.7.5

          #5
          Originally posted by Wayne Luke
          Please run the query above. What are the results?

          Code:
           [TABLE="border: 0, cellpadding: 0, cellspacing: 0"]
          [TR]
          [TD="width: 128, colspan: 2"]38;"activateemail";NULL;"activateemail";"activateemail";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""24"";}";"24";"vbulletin-4ecbdacd6aac05.50909985";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]37;"activateuser";NULL;"activateuser";"activateuser";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""23"";}";"23";"vbulletin-4ecbdacd6aac05.50909984";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]23;"admincp";NULL;"admincp";"admincp/(?P<file>[a-zA-Z0-9_.-]*)";"vB5_Route_Admincp";"relay";"admincp";;"a:1:{s:4:""file"";s:5:""$file"";}";"0";"vbulletin-4ecbdacd6aa7c8.79724467";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]18;"advanced_search";NULL;"advanced_search";"advanced_search";"vB5_Route_Page";"search";"index";;"a:1:{s:6:""pageid"";s:1:""2"";}";"2";"vbulletin-4ecbdacd6a8335.81846640";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD]29;"album";NULL;"album";"album/(?P<nodeid>[0-9]+)(?P<title>(-[^!@\#\$%\^&\*\(\)\+\?/:;""\'\\[/TD]
           			[TD]\.<>= ]*)*)";"vB5_Route_Album";"page";"index";;"a:2:{s:6:""nodeid"";s:7:""$nodeid"";s:6:""pageid"";s:2:""15"";}";"0";"vbulletin-4ecbdacd6aac05.50909923";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]46;"api-form";NULL;"special/api-form";"special/api-form";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""31"";}";"31";"vbulletin-route-apiform-5605af1c66ec89.17376376";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]43;"articles-home";NULL;"articles";"articles(?:(?:/|^)page(?P<pagenum>[0-9]+))?";"vB5_Route_Channel";"page";"index";;"a:4:{s:7:""pagenum"";s:8:""$pagenum"";s:9:""channelid"";s:2:""13"";s:6:""pageid"";s:2:""28"";s:6:""nodeid"";s:2:""13"";}";"13";"vbulletin-r-cmshome5229f999bcb705.52472433";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD]44;"articles-uncategorized-article";NULL;"articles";"articles/(?P<nodeid>[0-9]+)(?P<title>(-[^!@\#\$%\^&\*\(\)\+\?/:;""\'\\[/TD]
           			[TD]\.<>= \[\]]*)*)(?:/contentpage(?P<contentpagenum>[0-9]+))?(?:/page(?P<pagenum>[0-9]+))?";"vB5_Route_Article";"page";"index";;"a:5:{s:6:""nodeid"";s:7:""$nodeid"";s:7:""pagenum"";s:8:""$pagenum"";s:14:""contentpagenum"";s:15:""$contentpagenum"";s:9:""channelid"";s:2:""13"";s:6:""pageid"";s:2:""29"";}";"13";"vbulletin-r-cmsarticle522a1d420a59e1.65940114";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]31;"blog";NULL;"blogs";"blogs(?:(?:/|^)page(?P<pagenum>[0-9]+))?";"vB5_Route_Page";"page";"index";;"a:3:{s:7:""pagenum"";s:8:""$pagenum"";s:9:""channelid"";s:1:""3"";s:6:""pageid"";s:2:""17"";}";"17";"vbulletin-4ecbdacd6aac05.50909926";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD]32;"blogadmin";NULL;"blogadmin";"blogadmin/(?P<nodeid>([0-9]+)*)(?P<title>(-[^!@\#\$%\^&\*\(\)\+\?/:;""\'\\[/TD]
           			[TD]\.<>= ]*)*)(/?)(?P<blogaction>([a-z^/]*)*)";"vB5_Route_Blogadmin";"page";"index";;"a:4:{s:6:""pageid"";s:2:""18"";s:6:""nodeid"";i:0;s:10:""blogaction"";s:6:""create"";s:7:""action2"";s:8:""settings"";}";"18";"vbulletin-4ecbdacd6aac05.50909925";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]49;"calendar";NULL;"calendar";"calendar";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""34"";}";"34";"vbulletin-route-calendar-58af7c31d90530.47875165";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]13;"contact-us";NULL;"contact-us";"contact-us";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:1:""5"";}";"5";"vbulletin-4ecbdacd6a6f13.66635713";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]39;"coppa-form";NULL;"coppa-form";"coppa-form";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""25"";}";"25";"vbulletin-4ecbdacd6aac05.50909986";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]41;"css-examples";NULL;"special/css-examples";"special/css-examples";"vB5_Route_Page";"page";"index";;"a:2:{s:9:""channelid"";s:2:""12"";s:6:""pageid"";s:2:""26"";}";"26";"vbulletin-513e559445fc66.10550504";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]17;"editphoto";NULL;"editphoto";"editphoto";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""10"";}";"10";"vbulletin-4ecbdacd6a7b06.81753708";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]587;"googlelogin";NULL;"googlelogin/json";"googlelogin/json(/(?P<subaction>.*))?";;"googlelogin:page";"json";;"a:1:{s:9:""subaction"";s:10:""$subaction"";}";"0";"googlelogin-route-5acbe09fd24963.15764996";"googlelogin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]14;"help";NULL;"help";"help";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:1:""6"";}";"6";"vbulletin-4ecbdacd6a6f13.66635714";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]584;"home";NULL;"homepage";"homepage";"vB5_Route_Channel";"page";"index";;"a:2:{s:9:""channelid"";s:1:""1"";s:6:""pageid"";s:1:""1"";}";"1";"vbulletin-4ecbdacd6a4ad0.58738735";"vbulletin";"1"[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]12;"lostpw";NULL;"lostpw";"lostpw";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:1:""4"";}";"4";"vbulletin-4ecbdacd6a6f13.66635712";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]45;"markup-library";NULL;"special/markup-library";"special/markup-library";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""30"";}";"30";"vbulletin-route-markuplibrary-92e837cb33910.016642946";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]21;"media";NULL;"uploadmedia";"uploadmedia";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:1:""9"";}";"9";"vbulletin-4ecbdacd6a9ee3.66723601";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]42;"member_list";NULL;"memberlist";"memberlist";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""27"";}";"27";"vbulletin-4ecbdacd6a8725.49820978";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]25;"modcp";NULL;"modcp";"modcp/(?P<file>[a-zA-Z0-9_.-]*)";"vB5_Route_Modcp";"relay";"modcp";;"a:1:{s:4:""file"";s:5:""$file"";}";"0";"vbulletin-4ecbdacd6aa7c8.79724488";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]585;"nativesponsoredpost";NULL;"nativo/sponsoredpost";"nativo/sponsoredpost";"vB5_Route_Page";"nativo:page";"actionDetail";;"a:1:{s:6:""pageid"";s:3:""542"";}";"542";"nativo-4ec44ac93716c4.69967191";"nativo";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]33;"new-content";NULL;"new-content";"new-content/(?P<nodeid>[0-9]+)";"vB5_Route_Newcontent";"page";"index";;"a:2:{s:6:""nodeid"";s:7:""$nodeid"";s:6:""pageid"";s:2:""19"";}";"19";"vbulletin-4ecbdaad6aac05.50902379";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]40;"node";NULL;"node";"node/(?P<nodeid>[0-9]+)(?:/contentpage(?P<contentpagenum>[0-9]+))?(?:/page(?P<pagenum>[0-9]+))?";"vB5_Route_Node";;;;"a:3:{s:6:""nodeid"";s:7:""$nodeid"";s:7:""pagenum"";s:8:""$pagenum"";s:14:""contentpagenum"";s:15:""$contentpagenum"";}";"0";"vbulletin-4ecbdacd6aac05.50909987";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]19;"online_details";NULL;"online";"online";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:1:""7"";}";"7";"vbulletin-4ecbdacd6a8725.49820977";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]48;"pmchat";NULL;"pmchat/chat";"pmchat/chat";"vB5_Route_Page";"chat";"index";;"a:1:{s:6:""pageid"";s:2:""33"";}";"33";"vbulletin-pmchat-route-chat-573cbacdc65943.65236568";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]50;"privacy";NULL;"privacy";"privacy";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""35"";}";"35";"vbulletin-route-privacy-25c722b99d29ac.6b08da87";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]27;"privatemessage";NULL;"privatemessage";"privatemessage/(?P<action>[A-Za-z0-9_-]+)(?P<params>(/[^?]+)*)";"vB5_Route_PrivateMessage";"page";"index";;"a:1:{s:6:""pageid"";s:2:""13"";}";"13";"vbulletin-4ecbdacd6aac05.50909921";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]15;"profile";NULL;"member";"member/(?P<userid>[0-9]+)(?P<username>(-[^?/]*)*)(?:/(?P<tab>activities|subscribed|about|media|infractions))?(?:/page(?P<pagenum>[0-9]+))?";"vB5_Route_Profile";"page";"index";;"a:2:{s:6:""userid"";s:7:""$userid"";s:6:""pageid"";s:1:""8"";}";"0";"vbulletin-4ecbdacd6a7315.96817600";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]11;"register";NULL;"register";"register";"vB5_Route_Page";"page";"index";;"a:3:{s:7:""noindex"";b:1;s:8:""nofollow"";b:1;s:6:""pageid"";s:1:""3"";}";"3";"vbulletin-4ecbdacd6a6f13.66635711";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]47;"reset-password";NULL;"reset-password";"reset-password(\?.*)?";"vB5_Route_Page";"page";"index";;"a:1:{s:6:""pageid"";s:2:""32"";}";"32";"vbulletin-route-resetpassword-569814b4a8a849.28212294";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]22;"search";NULL;"search";"search";"vB5_Route_Page";"search";"results";;"a:1:{s:6:""pageid"";s:2:""12"";}";"12";"vbulletin-4ecbdacd6aa3b7.75359902";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]20;"settings";NULL;"settings";"settings(/(?P<tab>profile|account|privacy|notifications|security|subscriptions))?";"vB5_Route_Settings";"page";"index";;"a:2:{s:3:""tab"";s:4:""$tab"";s:6:""pageid"";s:2:""11"";}";"0";"vbulletin-4ecbdacd6a9307.24480802";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD]34;"sgadmin";NULL;"sgadmin";"sgadmin/(?P<nodeid>([0-9]+)*)(?P<title>(-[^!@\#\$%\^&\*\(\)\+\?/:;""\'\\[/TD]
           			[TD]\.<>= ]*)*)(/?)(?P<sgaction>([a-z^/]*)*)";"vB5_Route_SGAdmin";"page";"index";;"a:4:{s:6:""pageid"";s:2:""20"";s:6:""nodeid"";i:0;s:8:""sgaction"";s:6:""create"";s:7:""action2"";s:8:""settings"";}";"0";"vbulletin-4ecbdacd6aac05.50909980";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]36;"sgcategorylisting";NULL;"sguncategorized";"sguncategorized(?:(?:/|^)page(?P<pagenum>[0-9]+))?";"vB5_Route_Channel";"page";"index";;"a:4:{s:7:""pagenum"";s:8:""$pagenum"";s:9:""channelid"";s:1:""5"";s:6:""pageid"";s:2:""22"";s:6:""nodeid"";s:1:""5"";}";"5";"vbulletin-sgcatlistaac05.50909983";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]35;"sghome";NULL;"social-groups";"social-groups(?:(?:/|^)page(?P<pagenum>[0-9]+))?";"vB5_Route_Page";"page";"index";;"a:3:{s:7:""pagenum"";s:8:""$pagenum"";s:9:""channelid"";s:1:""4"";s:6:""pageid"";s:2:""21"";}";"21";"vbulletin-4ecbdac93742a5.43676037";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]28;"subscription";NULL;"member";"member/(?P<userid>[0-9]+)(?P<username>(-[^?]*)*)/(?P<tab>subscriptions|subscribers|groups)(?:/page(?P<pagenum>[0-9]+))?";"vB5_Route_Subscription";"page";"index";;"a:5:{s:6:""userid"";s:7:""$userid"";s:3:""tab"";s:4:""$tab"";s:7:""noindex"";b:1;s:7:""pagenum"";s:8:""$pagenum"";s:6:""pageid"";s:2:""14"";}";"0";"vbulletin-4ecbdacd6aac05.50909922";"vbulletin";NULL[/TD]
           		[/TR]
          [TR]
          [TD="colspan: 2"]586;"twitterlogin_authenticate_callback";NULL;"twitterlogin/auth_callback";"twitterlogin/auth_callback";;"twitterlogin:page";"actionAuthCallback";;;"0";"twitterlogin-route-authcallback-5a739f288b74e0.66074971";"twitterlogin";NULL[/TD]
           		[/TR]
          [TR]
          [TD]30;"visitormessage";NULL;"member";"member/(?P<userid>[0-9]+)(?P<username>(-[^?/]*)*)/visitormessage/(?P<nodeid>[0-9]+)(?P<title>(-[^!@\#\$%\^&\*\(\)\+\?/:;""\'\\[/TD]
           			[TD]\.<>= ]*)*)";"vB5_Route_VisitorMessage";"page";"index";;"a:2:{s:6:""nodeid"";s:7:""$nodeid"";s:6:""pageid"";s:2:""16"";}";"0";"vbulletin-4ecbdacd6aac05.50909924";"vbulletin";NULL[/TD]
           		[/TR]
          [/TABLE]

          Comment

          • woodmj
            Senior Member
            • Mar 2013
            • 205
            • 5.7.5

            #6
            Wayne Luke - So, I was scratching my head trying to think what was going on here and my last idea of the day after much Google research was running the upgrade script through again and this whipped through quite quickly skipping most of the steps but fixing the problem.
            Would appreciate it if I could find out why restoring from backup might cause this to happen for future reference,
            Also, please delete the data I posted for you when you're finished. I'm not really sure whether I should have posted it on public forum but I couldn't find a way to PM it to you.

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73981

              #7
              Hmmm.. That looks correct. What version of PHP are you using on the server?

              Edit: Sorry, I see you resolved it.

              It could be that your backup contained expired caches and running the upgrade resolved those issues. The data above is something every single vBulletin installation will have and is not private or proprietary any way. None of your custom channels or nodes are listed. It is default installation data.
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • woodmj
                Senior Member
                • Mar 2013
                • 205
                • 5.7.5

                #8
                Wayne Luke - V7.3.

                I wondered whether it was a cache issue. Is there any way to clear that after a restore? I cleared 'bitfields' in Admin Tools but that didn't seem to help at the time.

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 73981

                  #9
                  You can delete the existing cache under Maintenance. After that is should automatically rebuild as the site is being used.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  Related Topics

                  Collapse

                  Working...