Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Upgrade from 2.0.18 fails despite numerous attempts
Jiggens
New
Hello everyone.
I'm trying to upgrade a vanilla install hosted on 123-reg from 2.0.18 to 2.2 following the instructions here:
http://vanillaforums.org/discussion/26685/vanilla-2-1-stable-released/p1
I overwrite the files via FTP and go to visit /utility/update, yet every time I do, there is nothing but the following error:
Fatal error: Call to undefined function val() in /home/cluster-sites/1/s/sanguinehunt.co.uk/public_html/forum/library/core/class.autoloader.php on line 442
This displays on all pages of the forum. I have attempted this 4 times, each time starting afresh.
Can anybody shed light? These are desperate times.
Thanks in advance to you all.
0
Answers
@Jiggens
Welcome to the community!
Firstly, you should only upgrade to the latest version of 2.1 for now (see link at top of page.) 2.2 is not ready for production environments yet.
For your error, can you let us know what version of php your host provides?
Thanks for the welcome and reply
I shall try again now, upgrading to 2.1 instead.
PHP is set to 5.4.
5.2 through 5.5 are available.
Anything from 5.2 should be fine, so that probably isn't the problem.
I followed the process as before, using 2.1.12p3. I now get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.12 (Unix) Server at forum.sanguinehunt.co.uk Port 80
Can you look at the error log on the server and post what it says?
You might want to try installing a clean version of 2.1 in a separate folder, to make sure your server set-up works with it.
Sorry, it's quite a chunk.
Do you have a file
/library/core/functions.compatibility.php
?Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I do indeed.
Does it have a function definition for val?
Search for
function val
in the file.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
It looks like not all the files were transferred well. Try to re-upload the core files. If you have a default.master.php file in the dashboard/views folder you must remove it it is vestigial file from 2.0
You also need to make sure your htaccess file correctly configured.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder I do not currently have access to the machine, but may I ask how I should correctly configure the htaccess when I do? is there a change to be made when I switch versions?
@hgtonight I cannot look right now, but if it is missing what should I add?
Thank you all for the helps.
The htaccess file gets overwritten by the new installation because it is a hidden file. You need to post the contents of the htaccess file to be sure how to proceed. I can't guess what you have.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
This does sound like a incomplete file transfer.