solved Update System Core from 6.0.7 to 6.5.10 problem

alt=
@rakyatmusik
3 months ago
4 posts
Hi,

I'm trying to update system core from 6.0.7 to 6.5.10 but it is not working, downloading seems success, stored in:
-rw-r--r-- 1 www-data www-data 11926016 Oct 8 15:16 jamroom/data/cache/jrMarket/jrCore.tar
I also found this on jamroom/data/logs/error.log
PHP Fatal error: Cannot use result of built-in function in write context in jamroom/modules/jrCore-release-6.0.7/contrib/pear/Tar.php on line 662

this line:
// ----- Get the arguments
$v_att_list = & func_get_args();

Please help.

Thanks in advance.
updated by @rakyatmusik: 06 Jan 2022 06:24:40PM
alt=
@rakyatmusik
3 months ago
4 posts
UPDATE:
I did not think the problem is the same with this:
https://www.jamroom.net/the-jamroom-network/forum/announcements/63523/upgrading-an-old-site-to-jamroom-core-650

So, I keep digging and apply this solution from https://gist.github.com/aamsur-mkt/cd0febddc262f54385e7bd4a2d91df31

but then I found another error:
PHP Fatal error: Uncaught Error: Call to undefined function jrCore_db_delete_table_column() in jamroom/modules/jrCore-release-6.5.10/schema.php:334
Stack trace:
#0 jamroom/modules/jrCore-release-6.0.7/lib/module.php(190): jrCore_db_schema()
#1 jamroom/modules/jrCore-release-6.0.7/include.php(1297): jrCore_validate_module_schema()
#2 jamroom/modules/jrCore-release-6.0.7/lib/misc.php(284): jrCore_updated_module_listener()
#3 jamroom/modules/jrMarket-release-1.4.5/include.php(1336): jrCore_trigger_event()
#4 jamroom/modules/jrMarket-release-1.4.5/index.php(1366): jrMarket_update_module()
#5 jamroom/modules/jrCore-release-6.0.7/lib/module.php(147): view_jrMarket_update_item()
#6 jamroom/modules/jrCore-release-6.0.7/router.php(174): jrCore_run_module_view_function()
#7 {main}
thrown in jamroom/modules/jrCore-release-6.5.10/schema.php on line 334

please help.
updated by @rakyatmusik: 08 Oct 2021 10:13:40AM
alt=
@rakyatmusik
3 months ago
4 posts
SOLVED:
- copy jrCore-release-6.1.0 to modules
- rm jrCore
- ln -sf jrCore-release-6.1.0 jrCore
- apply this solution from https://gist.github.com/aamsur-mkt/cd0febddc262f54385e7bd4a2d91df31
- restart web server
- go to System Core -> Tools -> Integrity Check (check all & run)
- go to Marketplace -> System Updates (update from 6.1.0 to 6.5.10)
- Run an Integrity Check and Reset Caches
- Go to Marketplace and install System Tools
- Run an Integrity Check and Reset Caches
- Go back to Marketplace -> System Updates and update the rest

I hope this help. Thanks.

Tags