Git Product home page Git Product logo

fastslack / jupgradepro Goto Github PK

View Code? Open in Web Editor NEW
20.0 8.0 15.0 1.85 MB

jUpgradePro an extension that help Joomla! users to migrate or move data between Joomla! installations..

Home Page: https://www.matware.com.ar

License: GNU General Public License v2.0

PHP 80.09% HTML 0.26% CSS 8.49% JavaScript 10.21% Shell 0.95%
php joomla-component joomla upgrade migrations js webservices restful rest

jupgradepro's People

Contributors

bobbravo2 avatar fastslack avatar florianv avatar javigomez avatar klas avatar mbabker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupgradepro's Issues

afterAllStepsHook() never runs in plugins

        // Select last step
    $query->select('name');
    $query->from($this->_table);
    //$query->where("(status = 0 OR status = 1)");
    $query->where("(status = 0)");
    if ($this->_table == '#__jupgradepro_extensions_tables') {
        $query->where("element = '{$step['element']}'");
    }
    $query->where("version = {$this->_db->quote($this->old_ver)}");
    $query->order('id DESC');
    $query->limit(1);
    $testquery = (string)$query;
    $this->_db->setQuery($query);
    $step['laststep'] = $this->_db->loadResult();

Will not return any result when we are in the actual last step, last steps $step['laststep'] is empty as tables status in jupgradepro_extensions_tables is changed to 1 before this point.

This causes the bellow code from JUpgradepro::setDestinationData to never evaluate to true

// Call after all steps hook
if ($this->_step->name == $this->_step->laststep && $this->_step->cache == 0 && $this->getTotal() == $this->_step->cid) {
    $this->ready = $this->afterAllStepsHook();
}

If a change query where above to get true laststep to $query->where("(status = 0 OR status = 1)"); this breaks plugins execution - only first plugin is executed as code somewhere thinks this is the last of all plugin steps...

Needs to be fixed by you, I was going in circles here... perhaps just $this->_step->name == $this->_step->laststep should be changed to $this->_step->laststep == '' in if clause - or query should be changed as sugegsted and mutiple plugins executin resolved in some other way e.g. by javascript changes.

Joomla 1.5 to 2.5 via REST: fatal error: Call to a member function requestRest()

Hi All,

I've encountered an additional error while migration from Joomla 1.5.26 to Joomla 2.5.19:

PHP Notice: Undefined variable: driver in /var/www/myserver/root/administrator/components/com_jupgradepro/includes/jupgrade.extensions.class.php on line 435
[07-Apr-2014 13:21:50] PHP Fatal error: Call to a member function requestRest() on a non-object in /var/www/myserver/root/administrator/components/com_jupgradepro/includes/jupgrade.extensions.class.php on line 435

After this error the migration stops.

Regards
level420

Joomla 1.5 to 2.5 via REST: Unknown column 'iscore' in 'field list' SQL=INSERT INTO `jos_modules`

Hi All,

I've encountered an additional error while migration from Joomla 1.5.26 to Joomla 2.5.19:

Unknown column 'iscore' in 'field list' SQL=INSERT INTO jos_modules (title,content,ordering,position,checked_out,checked_out_time,published,module,access,showtitle,params,iscore,client_id,control) VALUES ('Main Menu','','7','position-7','0','0000-00-00 00:00:00','1','mod_mainmenu','0','0','menutype=mainmenu\nmenu_style=list\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nwindow_open=\nshow_whitespace=0\ncache=0\ntag_id=\nclass_sfx=\nmoduleclass_sfx=_menu\nmaxdepth=10\nmenu_images=0\nmenu_images_align=0\nmenu_images_link=0\nexpand_menu=0\nactivate_parent=0\nfull_active_id=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\n\n','1','0','')

Again the error message is lost because of the reported issue #5

Regards.
level420

Cli migrating from j2.5.28 to j3.4.4

Hi! After correct setup of the cli interface, I'm getting some kind of error on category migration.

{"number":500,"text":"UnexpectedValueException: JTableCategory::moveByReference(1, last-child, 35) parenting to child. in \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/joomla\/table\/nested.php:338\nStack trace:\n#0 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/joomla\/table\/nested.php(840): JTableNested->moveByReference(1, 'last-child', '35')\n#1 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/legacy\/table\/category.php(238): JTableNested->store(false)\n#2 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/matware\/jupgrade\/category.php(236): JTableCategory->store()\n#3 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/matware\/jupgrade\/schemas\/2.5\/categories.php(143): JUpgradeproCategory->insertCategory(Array)\n#4 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/matware\/jupgrade\/jupgrade.php(275): JUpgradeproCategories->dataHook(Array)\n#5 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/matware\/jupgrade\/jupgrade.php(193): JUpgradepro->setDestinationData()\n#6 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/matware\/jupgrade\/category.php(123): JUpgradepro->upgrade()\n#7 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/libraries\/matware\/jupgrade\/schemas\/2.5\/categories.php(79): JUpgradeproCategory->upgrade()\n#8 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/j3\/administrator\/components\/com_jupgradepro\/models\/migrate.php(55): JUpgradeproCategories->upgrade()\n#9 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/cli\/jUpgradeProCli\/jUpgradeProCli(188): JUpgradeproModelMigrate->migrate('categories', false)\n#10 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/cli\/jUpgradeProCli\/jUpgradeProCli(134): jUpgradeProCli->migrateCore()\n#11 \/var\/www\/clients\/client1\/web2\/web\/jupgradecli\/cli\/jUpgradeProCli\/jUpgradeProCli(281): jUpgradeProCli->execute()\n#12 {main}"}

What can I do?

Thanks!

PHP Fatal error: Call to undefined method JUpgradeproModelMigrate::returnError()

Hi,

this is while an error rised up during the module migration step.

I've placed an error_log entry just in front of the call to method returnError showing the exception message which is:

[04-Apr-2014 18:32:15] Unknown column 'numnews' in 'field list' SQL=INSERT INTO jos_modules (title,content,ordering,position,checked_out,checked_out_time,published,module,numnews,access,showtitle,params,iscore,client_id,control) VALUES ('Main Menu','','7','position-7','0','0000-00-00 00:00:00','1','mod_mainmenu','0','0','0','menutype=mainmenu\nmenu_style=list\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nwindow_open=\nshow_whitespace=0\ncache=0\ntag_id=\nclass_sfx=\nmoduleclass_sfx=_menu\nmaxdepth=10\nmenu_images=0\nmenu_images_align=0\nmenu_images_link=0\nexpand_menu=0\nactivate_parent=0\nfull_active_id=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\n\n','1','0','')

So jUpgrade seems to await the column numnews in table jos_modules which ist not present.

Best regards
level420

3dth component like Virtuemart

hello
if i use your component, 3dth component table are migrate to ?
you speak about a virtuemart plugin where we can find it ?

[jUpgradePro 3.1.0] Can't Find Tables

Hi, I have a functional setup to run jUpgradePro Cli version and it worked just fine.

Today I upgraded to latest 3.1.0 and I get this error on trying to migrate

{"number":500,"text":"Unable to load JUpgradeproStep object: Table 'c1_j258upgrade.j25_jupgradepro_version' doesn't exist SQL=SELECT old\nFROM `j25_jupgradepro_version`"}

Any ideas?

Thanks!

Undefined index: HTTP_KEY

Howdy,

an attempt to active the latest plugin

plg_jupgradepro-restful-3.3.0-j1.5.zip

in my joomla site (version 1.5.26), always breaks the site.
Error message in apache log:

Undefined index: HTTP_KEY in /var/www/content/plugins/system/jupgrade/authorizer.php on line 40

I've switched off Joomla's Legacy mode for 1.0, switched off apache's basic authentication to the administrator panel, verified all access rights are correct, restored and reinstalled the plugin several times.

No matter what I do, it's always the same result.

Regards,
Hackse

Joomla 1.5 to 2.5 via REST: Unknown column 'control' in 'field list' SQL=INSERT INTO `jos_modules`

Hi All,

I've encountered an additional error while migration from Joomla 1.5.26 to Joomla 2.5.19:

Unknown column 'control' in 'field list' SQL=INSERT INTO jos_modules (title,content,ordering,position,checked_out,checked_out_time,published,module,access,showtitle,params,client_id,control) VALUES ('Main Menu','','7','position-7','0','0000-00-00 00:00:00','1','mod_mainmenu','0','0','menutype=mainmenu\nmenu_style=list\nstartLevel=0\nendLevel=0\nshowAllChildren=0\nwindow_open=\nshow_whitespace=0\ncache=0\ntag_id=\nclass_sfx=\nmoduleclass_sfx=_menu\nmaxdepth=10\nmenu_images=0\nmenu_images_align=0\nmenu_images_link=0\nexpand_menu=0\nactivate_parent=0\nfull_active_id=0\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\n\n','0','')

After modifiying the modules migration script as fixed in issue #5 the issue above arised.

Regards.
level420

REST migration fails bcse of double method definition in REST-Plugin for Joomla 1.5

Hi All,

during my first attempts to use jUpgrade Pro I've encountered an error in the migration source joomla 1.5 RESTplugin:

PHP Fatal error: Cannot redeclare JUpgradeTableModules::migrate() in /opt/www/sourcehost/root/plugins/system/jupgrade/table/modules.php on line 133

This is due to the fact that method migrate is declared twice,

first occurence in
https://github.com/fastslack/jUpgradePro/blob/master/trunk/plugins/plg_jupgradepro-1.5/jupgrade/table/modules.php#L93

second in
https://github.com/fastslack/jUpgradePro/blob/master/trunk/plugins/plg_jupgradepro-1.5/jupgrade/table/modules.php#L133

where the second declaration is broken in line 139.

Best regards
level420

duplicate menu aliases

I have lots of duplicate aliases in menus, so jupgrade hangs on Migrating Menus. I corrected a few aliases (added "2" at the end of duplicated ones), tried to run jupgrade, it hanged again. I checked - a few more menus were imported. Then I corrected all aliases to be unique, but jupgrade imports 32 menu items and hangs again. I am using the latest git version, trying 1.5->3.6 migration.

jUpgradePro 3.0.3 stopped at newsfeed - doctype error

Test scenario for failed jUpgrade pro test:

Everything tested on Localhost with basic setup XAMPP
Downloaded and installed latest version of Joomla 1.5.26 - installed sample data
Downloaded and installed latest version of Joomla 3.1.1 - clean
Downloaded latest version of jUpgradepro 3.0.3 from redcomponent.com
Installed jUpgradepro plugin on Joomla 1.5 site - enabled plugin and setup the password for webservices.
Installed jUpgradepro component on Joomla 3 site, and setup the component for webservices.
Pressed the upgrade button, and it did run good until it came to newsfeeds, then it stopped with a doctype error in mootools-core.js

I went back and tried with Database method instead, and it did exactly the same.

Tested it on Joomla 2.5 aswell:
Database Method: worked 100% fine!!
Webservices: It actually did migrate ALL data, but instead of showing a "upgrade successfull" after last step - it stopped with a 500 internal server error, but all data where migrated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.