Announcement

Collapse
No announcement yet.

Upgrate 5.1.1 to 5.1.2 : Unexpected Text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #3
      Originally posted by Scalap View Post
      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


      • #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


        • #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


          • #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


            • #7
              Originally posted by mgurain View Post
              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


              • #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


                • #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


                  • #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 New Flat Theme Pro Pack or Grab all 34 vb5.5.4 skins @sultantheme.com -vb3 responsive style or vb4 responsive style and vbcloud custom style

                    Comment


                    • #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


                      • #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:	97
Size:	39.5 KB
ID:	4100282
                        nothing else.
                        Last edited by napy8gen; Sat 19 Jul '14, 6:38am.
                        Get Our New Flat Theme Pro Pack or Grab all 34 vb5.5.4 skins @sultantheme.com -vb3 responsive style or vb4 responsive style and vbcloud custom style

                        Comment


                        • #13
                          Originally posted by napy8gen View Post
                          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


                          • #14
                            Thanks a lot

                            Originally posted by Joe D. View Post
                            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


                            • #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...
                              X