Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Upgrade from 7.02.07 to 8.00.21 to 9.03 > a Success story, but not without glitches.

so one site turned out decent after 9, the other not so much... content seems to be in place after upgrades so thats that.
...updated thread title... grin
I know, I am doing it, just that my FTP transfer is taking .. longish... 1200 files to go
Upgrade to v9.x
Upload v9 files and run site.com/install.php in title you can see "PHP-Fusion Upgrade". That's all. V9 have built-in upgrade system in installer.
OK, just did this with additional two sites. These were English only, so minor high ascii woes here.

  1. Theme changed to a default one, like Gillette
  2. Several old infusions (really old) defused.
  3. Switch PHP version from whichever > 5.6 prior to upgrade.
  4. Upgrade sequence - uploaded 8.00.21 upgrade files.
  5. Step 1 Maintenance > ok.
  6. Step 2 > ok.
  7. Step 3 alter config php > ok.
  8. Step 5 > htaccess written > ok.
  9. Step 6 > db upgrade run > no errors. I noticed it can run for 2-3 minutes, so just sit and wait for the page to refresh. WAIT for it...
  10. Sites online, admin is browsable, version states 8.0.21.
  11. Uploading rest of 8.00.21 files (You do know there is a zero KB .htaccess file in the file package?, excluding it from upload).
  12. Site switches to Atom-8, seems working.
  13. Administration is working, Forums are there, lots of theme stuff obviously more or less broken, but site basically functional.
  14. Trying to switch to higher PHP version: > 7.3 > works.
  15. RESULT > OK


9.00.3

  1. Upload of upgrade files


... wait for it... wink
ok, so the original site theme and main gfx were actually pretty much inherited in to 9 with few or non important issues. I have a few edits to do but the main thing is that the site is actually looking as it should after upgrade to 8 and now upgrade to 9. Then again the theme is not very complex. I am beyond relieved. grin
Going from 8 to 9. We'll just have to punch through to latest version to keep the site secure and up to date. Will post in relevant forum if anything goes kaboom.
Then you´ll get theme issues with orginal theme for sure.
What if I decided to continue towards 9?
If you toggle Bootstrap, disable global.css and default.css your orginal Theme should perform as expected.
like Well done. Thorough procedure.
Here we go again.
Upgrading test site on subdomain on another space on the host, but with identical requirements aside from that.

  1. Language set to English and database checked, any other locale files removed.
  2. Dumping tables from test site > importing tables from Prod site. Verified English only.
  3. Changed table setting to reflect correct domain entry in cells site_url and site_host (or logon won't work)
  4. Verified English only in Administration.
  5. No theme changes.
  6. Same files, no action.
  7. Switch PHP version from 5.5 > 5.6 prior to upgrade Consequence > high ascii garbled, as expected.
  8. Check Admin > not affected.
  9. Upgrade sequence
  10. Step 1 Maintenance > ok
  11. Step 2 > ok
  12. Step 3 alter config php > ok
  13. Step 5 > htaccess written > ok
  14. Step 6 > db upgrade run > no errors
  15. Site appears with Draig and a bit garbled, admin is browsable, version states 8.0.21
  16. Uploading upgrade files (You do know there is a zero KB .htaccess file in the file package?, excluding it from upload)
  17. Site switches to Atom-8, seems working,
  18. Administration is working, Forums are there, lots of theme stuff obviously more or less broken, but site basically functional.
  19. However, high ascii still looks garbled at first sight, a REFRESH seems to fix that.
  20. Disabled RSS panel
  21. Damn, utf8 on custom RSS feeds is not working. That is NOT PHP-Fusion fault though.
  22. Several old infusions (really old) defused to see effect.
  23. Trying to switch to higher PHP version: > 7.3 > works
  24. RESULT > OK


Some remaining errors in the error log:
CodeDownload  
templates/panels.php(106) : eval()'d code
Trying to get property of non-object Line: 15
templates/panels.php(106) : eval()'d code
Trying to get property of non-object Line: 12    
templates/panels.php(106) : eval()'d code
Trying to get property of non-object Line: 10    
templates/panels.php(106) : eval()'d code
Trying to get property of non-object Line: 11    
templates/panels.php(106) : eval()'d code
Trying to get property of non-object Line: 9    
templates/panels.php(106) : eval()'d code
simplexml_load_file(http://www.moderat.se/skane/feeds/news.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found Line: 5    
templates/panels.php(106) : eval()'d code
Undefined variable: itemtext Line: 65    
templates/panels.php(106) : eval()'d code
include(infusions/latest_news_panel/locale/English.php): failed to open stream: No such file or directory Line: 53


Probably related to changes in default code.

I have lots to do in regards to adaptations and troubleshooting of the site. Considering we based the Prod one out of Ddraig I guess I might start from there, butt switching stuff a bit it might be easier to start from Stylo... dunno really. Atom-X is working best for functionality.

anyone care to adapt www.moderaterna.se for php-fusion as theme will have my eternal gratitude... :P
Deprecated should poof with the upgrade and the rest is just a custom panel not able to stream xml file that repeat the issue.
Small headsup, aiming for a 100% English upgrade, I have removed the barbaric language files, checked global.php and browsing around a bit in the Administration to make sure all entries are in English.

The site do have some layout related issues which I include, I am changing to Atom-X during-after the upgrade for now, if you think any of these may cause more serious errors please let me know.
Homdax attached the following image:
errors-26-apr.png
But if you make the upgrade in English the new entries that you need to toggle language later on should be visual.
Upgrade in English, once you have done that. Complete the Swedish Admin parts and then use the Language Setting to change site base Language and the database will update.
Well, that is just the thing, I come up with a load of empty localisations in the Admin, and among those, the very setting that should allow me to change the localisation.

All I see, as I recall, was English or Swedish, there is a bunch of checkmarks below that I have no description for. So I really don't know what I am doing... at least to a certain extent.
You do not need to change locale on the Admin, since 7 work the way it does. Meaning it will retain originally installed locales that where inserted to the DB on the initial install, regardless of what you Switch to later, you need to stick to them. The update only patch necessary areas. Once it is completed you can use the Language Settings and switch Site´s Main lang to Eng, Swe etc to reset the whole thing.
Provided that you have a complete Swedish tho.
The Language Setting is on the other hand new for 8 and it does what 7 never did, it replaces even the stored database locales for site links, admin areas, news and blog when you change Main language.
It's English in root/locale/English/global.php

CodeDownload  
// Locale Settings
setlocale(LC_TIME, "en","GB"); // Linux Server (Windows may differ)
$locale['charset'] = "iso-8859-1";
$locale['xml_lang'] = "en";
$locale['tinymce'] = "en";
$locale['phpmailer'] = "en";



I have set the site to English and removed the Swedish locale. So just trying to ignore it´, I could of course drop the admin table and import the one from setup.php in a full 7.02.07 setup package BEFORE the 8 upgrade

CodeDownload  
$result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AD', 'admins.gif', '".$locale['080']."', 'administrators.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('APWR', 'admin_pass.gif', '".$locale['128']."', 'admin_reset.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AC', 'article_cats.gif', '".$locale['081']."', 'article_cats.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('A', 'articles.gif', '".$locale['082']."', 'articles.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SB', 'banners.gif', '".$locale['083']."', 'banners.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('BB', 'bbcodes.gif', '".$locale['084']."', 'bbcodes.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('B', 'blacklist.gif', '".$locale['085']."', 'blacklist.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('C', '', '".$locale['086']."', 'reserved', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('CP', 'c-pages.gif', '".$locale['087']."', 'custom_pages.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('DB', 'db_backup.gif', '".$locale['088']."', 'db_backup.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('DC', 'dl_cats.gif', '".$locale['089']."', 'download_cats.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('D', 'dl.gif', '".$locale['090']."', 'downloads.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('ERRO', 'errors.gif', '".$locale['129']."', 'errors.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('FQ', 'faq.gif', '".$locale['091']."', 'faq.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('F', 'forums.gif', '".$locale['092']."', 'forums.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('IM', 'images.gif', '".$locale['093']."', 'images.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('I', 'infusions.gif', '".$locale['094']."', 'infusions.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('IP', '', '".$locale['095']."', 'reserved', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('M', 'members.gif', '".$locale['096']."', 'members.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('NC', 'news_cats.gif', '".$locale['097']."', 'news_cats.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('N', 'news.gif', '".$locale['098']."', 'news.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('P', 'panels.gif', '".$locale['099']."', 'panels.php', '3')");

         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PH', 'photoalbums.gif', '".$locale['100']."', 'photoalbums.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PI', 'phpinfo.gif', '".$locale['101']."', 'phpinfo.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PO', 'polls.gif', '".$locale['102']."', 'polls.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SL', 'site_links.gif', '".$locale['104']."', 'site_links.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SM', 'smileys.gif', '".$locale['105']."', 'smileys.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SU', 'submissions.gif', '".$locale['106']."', 'submissions.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('U', 'upgrade.gif', '".$locale['107']."', 'upgrade.php', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UG', 'user_groups.gif', '".$locale['108']."', 'user_groups.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('WC', 'wl_cats.gif', '".$locale['109']."', 'weblink_cats.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('W', 'wl.gif', '".$locale['110']."', 'weblinks.php', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S1', 'settings.gif', '".$locale['111']."', 'settings_main.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S2', 'settings_time.gif', '".$locale['112']."', 'settings_time.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S3', 'settings_forum.gif', '".$locale['113']."', 'settings_forum.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S4', 'registration.gif', '".$locale['114']."', 'settings_registration.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S5', 'photoalbums.gif', '".$locale['115']."', 'settings_photo.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S6', 'settings_misc.gif', '".$locale['116']."', 'settings_misc.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S7', 'settings_pm.gif', '".$locale['117']."', 'settings_messages.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S8', 'settings_news.gif', '".$locale['121']."', 'settings_news.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S9', 'settings_users.gif', '".$locale['122']."', 'settings_users.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S10', 'settings_ipp.gif', '".$locale['124']."', 'settings_ipp.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S11', 'settings_dl.gif', '".$locale['123']."', 'settings_dl.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S12', 'security.gif', '".$locale['125']."', 'settings_security.php', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UF', 'user_fields.gif', '".$locale['118']."', 'user_fields.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('FR', 'forum_ranks.gif', '".$locale['119']."', 'forum_ranks.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UFC', 'user_fields_cats.gif', '".$locale['120']."', 'user_field_cats.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UL', 'user_fields.gif', '".$locale['129a']."', 'user_log.php', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('ROB', 'robots.gif', '".$locale['129b']."', 'robots.php', '3')");



but it just feels so overkill to have to take all this in to account. Not even sure if that code will work in php, or sql, probably need some adjustments. Does that even insert the proper content from a locale file or is it just the page links...

I thought the 8 setup/upgrade would overwrite this if English was detected. That is what one would expect with a new/upgraded interface?
I've installed 2 new sites with php-fusion 8, I hope to start soon with upgrading existing sites.
Even with new installs I had some problems related to locale files. Adding and deleting locale files in the administration panel the site messed up.
By the way only $db_driver = 'pdo'; works. The mysqli driver produces errors, like wrong paths.

I don't need multi locale on most of my sites so I only keep the English locale, but translate this to for example Dutch. (/locale/English <-- is in fact Dutch)
Make sure you have the correct settings in global.php

CodeDownload  
setlocale(LC_TIME, "nl_NL.utf8"); // Linux Server (Windows may differ)
$locale['charset'] = "utf-8";
$locale['region'] = "NL";
$locale['xml_lang'] = "nl";
$locale['short_lang_name'] = "nl";
$locale['tinymce'] = "nl";
$locale['select2'] = "nl";
$locale['phpmailer'] = "nl";
$locale['filemanager'] = "nl_NL";
$locale['datepicker'] = "nl-nl";
$locale['datepicker_js'] = "DD-m-YYYY H:mm:ss";
$locale['datepicker_php'] = "d-m-Y H:i:s";
$locale['password_strength'] = "nl";
$locale['date_day'] = "%d %b";
$locale['text-direction'] = "ltr";



And for the upgrade check Upgrade_7.02.07_8.00.22\locale\English\setup.php to match your locale (not tested yet)
CodeDownload  
$locale['xml_lang'] = "nl";
$locale['charset'] = "utf8";
$locale['001'] = "Step 1: Locale";
$locale['002'] = "Step 2: File and Folder Permissions";
$locale['003'] = "Step 3: Database Settings";
$locale['004'] = "Step 4: Config / Database Setup";
$locale['005'] = "Step 5: Primary Admin Details";
$locale['006'] = "Step 6: Final Settings";
$locale['007'] = "Next";
$locale['008'] = "Try Again";
$locale['009'] = "Finish";



Don't know if this helps
But... but WTH

I removed the Swedish locale, and removed the entry for Swedish Locale and deleted the files and updated the test site and thought it would rid me of the Swedish locale from the admin interface but it is still there?
Database entries for Admin interface are still in Swedish... Yes I recall we made those changes adding the stuff to db, but right now i need to get rid of it.

That seems to be causing issues with the upgrade, the lack of a complete locale set for Swedish.
Thread Information
Author
Replies
28 posts
Views
1,125 times
Last Post
Last updated on 3 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Homdax, Wanabo, RobiNN