Upgrate 5.1.1 to 5.1.2 : Unexpected Text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scalap
    New Member
    • Jan 2014
    • 19
    • 5.0.X

    Upgrate 5.1.1 to 5.1.2 : Unexpected Text

    Hello all,

    I'm upgrading now my 5.1.1 version to the last 5.1.2 and during the operation i have an error pop-up message. Action Required
    Unexpected Text:
    <?xml version="1.0" encoding="UTF-8"?>
    <br />
    <b>Warning</b>: unlink(/home/lnpnet/tmp/vb_theme_image_1btkOy) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in <b>/home/lnpnet/www/vb5/core/vb/xml/import/theme.php</b> on line <b>357</b><br /> <br />
    <b>Warning</b>: unlink(/home/lnpnet/tmp/vb_theme_image_15eqEB) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in <b>/home/lnpnet/www/vb5/core/vb/xml/import/theme.php</b> on line <b>357</b><br />
    <upgrade> <message replace="0"><![CDATA[Finished importing theme 'Cool Blue'.]]></message> <startat>5</startat> <status>Status: Processing XML, Step 14 of 18</status> <longversion>final</longversion> <version>final</version> <nextstep>14</nextstep> </upgrade>




    If i click OK and restart the upgrade.php i met the same error message.

    Thank's for your help
  • Scalap
    New Member
    • Jan 2014
    • 19
    • 5.0.X

    #2
    I have fixed it in making comment into the line 357 of the theme.php file.
    After refresh de upgrade.php : it's OK

    Comment

    • heredia21
      Senior Member
      • Oct 2012
      • 208
      • 5.0.X

      #3
      Originally posted by Scalap
      I have fixed it in making comment into the line 357 of the theme.php file.
      After refresh de upgrade.php : it's OK
      I did the same thing, seemed to of worked that way.
      BlackBerry Empire #1 BlackBerry news site and BlackBerry forum.

      Comment

      • oxrageous
        New Member
        • Jun 2014
        • 24
        • 5.1.x

        #4
        Can you guys write a little bit more detail about how you fixed it? I'm planning an upgrade shortly and need to know what to do if it happens to me.

        Comment

        • oxrageous
          New Member
          • Jun 2014
          • 24
          • 5.1.x

          #5
          Can anyone give me an answer here? I of course got the same damn error, and I can't figure out the exact code to place on line 357. Anyone? I thought this download was supposed to be ready, but apparently not.
          Last edited by oxrageous; Fri 11 Jul '14, 7:44pm.

          Comment

          • mgurain
            Senior Member
            • Jul 2003
            • 270
            • 4.2.X

            #6
            Same problem, thanks ,,
            at the beginning of line 357 put :
            //
            but could someone from vbulletin support answer why is this error ?
            http://www.al-jarodiah.com/vb/
            Arabic Village Social forums

            Comment

            • oxrageous
              New Member
              • Jun 2014
              • 24
              • 5.1.x

              #7
              Originally posted by mgurain
              Same problem, thanks ,,
              at the beginning of line 357 put :
              //
              but could someone from vbulletin support answer why is this error ?
              Okay, putting in the "//" fixed that error. Then I got a new one:

              Unexpected Text

              <?xml version="1.0" encoding="UTF-8"?>


              Sigh. Anybody have a clue on this one?

              Comment

              • BirdOPrey5
                Senior Member
                • Jul 2008
                • 9613
                • 5.6.3

                #8
                Is there more to the error than just what you posed? The answers would be in the subsequent lines if there are any-

                Code:
                Unexpected Text
                
                <?xml version="1.0" encoding="UTF-8"?>
                My theory right now is your text editor added in some hidden characters when you made the last edit- never use Windows Notepad to edit .php files. Download Notepad2 or Notepad++ if you are on Windows, they are true code editors and don't insert hidden characters.

                Comment

                • BirdOPrey5
                  Senior Member
                  • Jul 2008
                  • 9613
                  • 5.6.3

                  #9
                  FYI, the bug was added to JIRA: http://tracker.vbulletin.com/browse/VBV-13251

                  I would suggest the following fix if you are getting this error.

                  Edit the /core/vb/xml/import/theme.php file with a good code editor like Notepad2 or Notepad++

                  Find line 357

                  Change it from:

                  PHP Code:
                  unlink($tempIconFileLocation); // temp file deletion is not done automatically, so we must do it. 
                  to

                  PHP Code:
                  @unlink($tempIconFileLocation); // temp file deletion is not done automatically, so we must do it. 

                  That should prevent the error. If you already did it with the // then don't worry about it now, but if anyone else has the problem in the future, @ would be better than //. This will still let the line try to execute but not stop the install if it isn't able to remove the temp file.

                  Comment

                  • napy8gen
                    Senior Member
                    • Jul 2001
                    • 525
                    • 6.X

                    #10
                    I still get the error in step18, even after editing the theme.php - upgrading from 5.1.1 to 5.1.2pl1
                    Unexpected Text:
                    <?xml version="1.0" encoding="UTF-8"?>

                    Get Our vbulletin 6 themes

                    Comment

                    • BirdOPrey5
                      Senior Member
                      • Jul 2008
                      • 9613
                      • 5.6.3

                      #11
                      What software did you use to make the file edit? You can't use Windows Notepad- if that is what you used you should re-download the install package from the Members Area and make the change again but with a code editor like Notepad2 or Notepad++.

                      If you still get the error- then please post the complete error. It is going to be a different error than you originally received. If you are getting the exact error than the file change was not uploaded or not uploaded to the correct location.

                      Comment

                      • napy8gen
                        Senior Member
                        • Jul 2001
                        • 525
                        • 6.X

                        #12
                        of course software you recommended Notepadd++. I am not new in file editing and uploading I do it since 2001 and can read what you wrote up there and execute it very well... I know what I am doing.

                        the error is like I said above.stuck in step 18.

                        Unexpected Text:
                        <?xml version="1.0" encoding="UTF-8"?>
                        Click image for larger version

Name:	Untitled-1.png
Views:	186
Size:	39.5 KB
ID:	4100282
                        nothing else.
                        Last edited by napy8gen; Sat 19 Jul '14, 6:38am.
                        Get Our vbulletin 6 themes

                        Comment

                        • BirdOPrey5
                          Senior Member
                          • Jul 2008
                          • 9613
                          • 5.6.3

                          #13
                          Originally posted by napy8gen
                          of course software you recommended Notepadd++. I am not new in file editing and uploading I do it since 2001 and can read what you wrote up there and execute it very well... I know what I am doing.

                          the error is like I said above.stuck in step 18.

                          Unexpected Text:
                          <?xml version="1.0" encoding="UTF-8"?>
                          [ATTACH=CONFIG]n4100282[/ATTACH]
                          nothing else.
                          I see your site has been upgraded to 5.1.2. I take it the issue was resolved.

                          Comment

                          • barroca
                            Senior Member
                            • Sep 2005
                            • 173
                            • 3.6.x

                            #14
                            Thanks a lot

                            Originally posted by Joe D.
                            FYI, the bug was added to JIRA: http://tracker.vbulletin.com/browse/VBV-13251

                            I would suggest the following fix if you are getting this error.

                            Edit the /core/vb/xml/import/theme.php file with a good code editor like Notepad2 or Notepad++

                            Find line 357

                            Change it from:

                            PHP Code:
                            unlink($tempIconFileLocation); // temp file deletion is not done automatically, so we must do it. 
                            to

                            PHP Code:
                            @unlink($tempIconFileLocation); // temp file deletion is not done automatically, so we must do it. 

                            That should prevent the error. If you already did it with the // then don't worry about it now, but if anyone else has the problem in the future, @ would be better than //. This will still let the line try to execute but not stop the install if it isn't able to remove the temp file.
                            Community vBulletin Brasil & Portugal

                            Comment

                            • Scalap
                              New Member
                              • Jan 2014
                              • 19
                              • 5.0.X

                              #15
                              Hello, same issue during the upgrade 5.1.2 to 5.1.3
                              Action Required
                              Unexpected Text:
                              <?xml version="1.0" encoding="UTF-8"?> xml error Invalid document end, on line 6

                              Comment

                              Related Topics

                              Collapse

                              Working...