When I attempt to upgrade certain packages (GoogleSiteMap, TinyMCE, GetResources, etc) I sometimes receive a "File not found" error, "package_download_err_create", or other...
I usually notice that the "Installed" status gets changed to "Not Installed" and I can still click the "Install" button to complete the upgrade, however I am not sure what to make of the "file not found" error, especially since some of my prior upgrades only required 1-step to complete the entire upgrade process with no such warning.
When I reviewed the googlesitemap snippet’s property set, I noticed something interesting (see attached)
Quote from: "Incorrectprop_gsm.[...]_desc
Could the descriptions in my screenshot (see below) be related to the "File not found" error during the upgrade process, or it is likely something specific to the package/version itself? (Upgraded to googlesitemap 1.2-pl, etc) ...Perhaps these descriptions are just hard-coded placeholders for the actual descriptions to-come?
When I tried to update "getresources" to 1.1.0-pl, I received a totally separate error:
package_download_err_create
Quote from: "MODx
INSERT INTO `modx_transport_packages` (`signature`, `created`, `state`, `workspace`, `provider`, `disabled`, `source`, `package_name`, `metadata`, `version_major`, `version_minor`, `version_patch`, `release`, `release_index`) VALUES (’getresources-1.1.0-pl’, ’2010-08-02 06:59:17’, ’1’, ’1’, ’1’, ’0’, ’getresources-1.1.0-pl.transport.zip’, ’getresources’, ’a:39:{i:0;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:3:\"552\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:7:\"package\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:3:\"552\";s:8:\"children\";a:0:{}}i:2;a:4:{s:4:\"name\";s:12:\"display_name\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:12:\"getresources\";s:8:\"children\";a:0:{}}i:3;a:4:{s:4:\"name\";s:7:\"version\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:5:\"1.1.0\";s:8:\"children\";a:0:{}}i:4;a:4:{s:4:\"name\";s:13:\"version_major\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"1\";s:8:\"children\";a:0:{}}i:5;a:4:{s:4:\"name\";s:13:\"version_minor\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"1\";s:8:\"children\";a:0:{}}i:6;a:4:{s:4:\"name\";s:13:\"version_patch\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"0\";s:8:\"children\";a:0:{}}i:7;a:4:{s:4:\"name\";s:7:\"release\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:2:\"pl\";s:8:\"children\";a:0:{}}i:8;a:4:{s:4:\"name\";s:8:\"vrelease\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:2:\"pl\";s:8:\"children\";a:0:{}}i:9;a:4:{s:4:\"name\";s:14:\"vrelease_index\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"0\";s:8:\"children\";a:0:{}}i:10;a:4:{s:4:\"name\";s:6:\"author\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:8:\"opengeek\";s:8:\"children\";a:0:{}}i:11;a:4:{s:4:\"name\";s:11:\"description\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:644:\"<p>\n<p><strong>getResources 1.1.0-pl (July 30, 2010)</strong></p>\n<p>\n<ul>\n<li>- Added &toPlaceholder property for assigning results to a placeholder</li>\n<li>- Added &resources property for including/excluding specific resources</li>\n<li>- Added &showDeleted property</li>\n<li>- Allow multiple contexts to be passed into &context</li>\n<li>- Added &showUnpublish property</li>\n<li>- Added getresources.core_path reference for easier development</li>\n<li>- [#ADDON-135] Make output separator configurable via outputSeparator property</li>\n<li>- Add where property to allow ad hoc criteria in JSON format</li>\n</ul>\n</p>\n\n</p>\";s:8:\"children\";a:0:{}}i:12;a:4:{s:4:\"name\";s:12:\"instructions\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:37:\"<p>Install via Package Management</p>\";s:8:\"children\";a:0:{}}i:13;a:4:{s:4:\"name\";s:9:\"createdon\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:19:\"2010-07-30 15:07:04\";s:8:\"children\";a:0:{}}i:14;a:4:{s:4:\"name\";s:9:\"createdby\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:8:\"opengeek\";s:8:\"children\";a:0:{}}i:15;a:4:{s:4:\"name\";s:8:\"editedon\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:19:\"2010-08-02 13:58:22\";s:8:\"children\";a:0:{}}i:16;a:4:{s:4:\"name\";s:10:\"releasedon\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:19:\"2010-07-30 16:25:03\";s:8:\"children\";a:0:{}}i:17;a:4:{s:4:\"name\";s:9:\"downloads\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:3:\"184\";s:8:\"children\";a:0:{}}i:18;a:4:{s:4:\"name\";s:8:\"approved\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"0\";s:8:\"children\";a:0:{}}i:19;a:4:{s:4:\"name\";s:7:\"audited\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"0\";s:8:\"children\";a:0:{}}i:20;a:4:{s:4:\"name\";s:8:\"featured\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"0\";s:8:\"children\";a:0:{}}i:21;a:4:{s:4:\"name\";s:10:\"deprecated\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"0\";s:8:\"children\";a:0:{}}i:22;a:4:{s:4:\"name\";s:7:\"license\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:5:\"GPLv2\";s:8:\"children\";a:0:{}}i:23;a:4:{s:4:\"name\";s:7:\"smf_url\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:47:\"http://modxcms.com/forums/index.php?topic=52337\";s:8:\"children\";a:0:{}}i:24;a:4:{s:4:\"name\";s:10:\"version_id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1348\";s:8:\"children\";a:0:{}}i:25;a:4:{s:4:\"name\";s:4:\"name\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:12:\"getResources\";s:8:\"children\";a:0:{}}i:26;a:4:{s:4:\"name\";s:10:\"repository\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:2:\"10\";s:8:\"children\";a:0:{}}i:27;a:4:{s:4:\"name\";s:8:\"supports\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:23:\"Revolution-2.0.0-beta-5\";s:8:\"children\";a:0:{}}i:28;a:4:{s:4:\"name\";s:8:\"supports\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:19:\"Revolution-2.0.0-pl\";s:8:\"children\";a:0:{}}i:29;a:4:{s:4:\"name\";s:8:\"supports\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:21:\"Revolution-2.0.0-rc-1\";s:8:\"children\";a:0:{}}i:30;a:4:{s:4:\"name\";s:8:\"supports\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:21:\"Revolution-2.0.0-rc-2\";s:8:\"children\";a:0:{}}i:31;a:4:{s:4:\"name\";s:8:\"supports\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:21:\"Revolution-2.0.0-rc-3\";s:8:\"children\";a:0:{}}i:32;a:3:{s:4:\"name\";s:4:\"file\";s:10:\"attributes\";a:0:{}s:8:\"children\";a:7:{i:0;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1525\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:7:\"version\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1348\";s:8:\"children\";a:0:{}}i:2;a:4:{s:4:\"name\";s:8:\"filename\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:35:\"getresources-1.1.0-pl.transport.zip\";s:8:\"children\";a:0:{}}i:3;a:4:{s:4:\"name\";s:9:\"downloads\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:3:\"184\";s:8:\"children\";a:0:{}}i:4;a:4:{s:4:\"name\";s:6:\"lastip\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:14:\"174.23.146.127\";s:8:\"children\";a:0:{}}i:5;a:4:{s:4:\"name\";s:9:\"transport\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:1:\"1\";s:8:\"children\";a:0:{}}i:6;a:4:{s:4:\"name\";s:8:\"location\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:68:\"http://rest.modxcms.com/assets/components/releaseme/dl.php?file=1525\";s:8:\"children\";a:0:{}}}}i:33;a:3:{s:4:\"name\";s:13:\"prior-version\";s:10:\"attributes\";a:0:{}s:8:\"children\";a:2:{i:0;a:4:{s:4:\"name\";s:9:\"signature\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:21:\"getresources-1.1.0-pl\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1348\";s:8:\"children\";a:0:{}}}}i:34;a:3:{s:4:\"name\";s:13:\"prior-version\";s:10:\"attributes\";a:0:{}s:8:\"children\";a:2:{i:0;a:4:{s:4:\"name\";s:9:\"signature\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:21:\"getresources-1.0.0-ga\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1070\";s:8:\"children\";a:0:{}}}}i:35;a:3:{s:4:\"name\";s:13:\"prior-version\";s:10:\"attributes\";a:0:{}s:8:\"children\";a:2:{i:0;a:4:{s:4:\"name\";s:9:\"signature\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:24:\"getresources-1.0.0-beta3\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1023\";s:8:\"children\";a:0:{}}}}i:36;a:3:{s:4:\"name\";s:13:\"prior-version\";s:10:\"attributes\";a:0:{}s:8:\"children\";a:2:{i:0;a:4:{s:4:\"name\";s:9:\"signature\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:24:\"getresources-1.0.0-beta2\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:4:\"1001\";s:8:\"children\";a:0:{}}}}i:37;a:3:{s:4:\"name\";s:13:\"prior-version\";s:10:\"attributes\";a:0:{}s:8:\"children\";a:2:{i:0;a:4:{s:4:\"name\";s:9:\"signature\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:25:\"getresources-1.0.0-beta-1\";s:8:\"children\";a:0:{}}i:1;a:4:{s:4:\"name\";s:2:\"id\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:3:\"901\";s:8:\"children\";a:0:{}}}}i:38;a:4:{s:4:\"name\";s:17:\"package-signature\";s:10:\"attributes\";a:0:{}s:4:\"text\";s:21:\"getresources-1.1.0-pl\";s:8:\"children\";a:0:{}}}’, ’1’, ’1’, ’0’, ’pl’, ’0’)
Array
(
[0] => 23000
[1] => 1062
[2] => Duplicate entry ’getresources-1.1.0-pl’ for key ’PRIMARY’
)
[2010-08-02 18:59:18] (ERROR @ /~user/modx/revolution/connectors/workspace/packages.php) package_download_err_create
With this error, I had to force remove the PL-status package via the GUI in order for the original GA-status to show up. I then forced remove the GA-status package and was able to install (not upgrade) without issue. Unfortunately, after the install I started seeing Errors from my snippet call (see below). The weird thing is the SQL is perfectly valid and works when I run against the database directly. I thought perhaps it could be related to a test resource I had in a "secure" context (non-"web"). When I dragged that resource back into the web context, the error went away...only when I placed the resource back into my test "secure" context the error did not resurface. It almost seems like some sort of caching-related issue, but why it surfaced as a result of the Package update I am not sure, let alone how to re-create the scenario :/
Quote from: "GetResources
[2010-08-02 19:12:11] (ERROR @ /~user/modx/revolution/index.php)
SELECT `modResource`.`id`, `modResource`.`type`, `modResource`.`contentType`, `modResource`.`pagetitle`, `modResource`.`longtitle`, `modResource`.`description`, `modResource`.`alias`, `modResource`.`link_attributes`, `modResource`.`published`, `modResource`.`pub_date`, `modResource`.`unpub_date`, `modResource`.`parent`, `modResource`.`isfolder`, `modResource`.`introtext`, `modResource`.`richtext`, `modResource`.`template`, `modResource`.`menuindex`, `modResource`.`searchable`, `modResource`.`cacheable`, `modResource`.`createdby`, `modResource`.`createdon`, `modResource`.`editedby`, `modResource`.`editedon`, `modResource`.`deleted`, `modResource`.`deletedon`, `modResource`.`deletedby`, `modResource`.`publishedon`, `modResource`.`publishedby`, `modResource`.`menutitle`, `modResource`.`donthit`, `modResource`.`haskeywords`, `modResource`.`hasmetatags`, `modResource`.`privateweb`, `modResource`.`privatemgr`, `modResource`.`content_dispo`, `modResource`.`hidemenu`, `modResource`.`class_key`, `modResource`.`context_key`, `modResource`.`content_type` FROM `modx_site_content` AS `modResource` WHERE ( ( `modResource`.`parent` IN (0,1,2,3,4,6,7) AND (`modResource`.`context_key` IN (’web’) OR EXISTS(SELECT 1 FROM `modx_context_resource` `ctx` WHERE `ctx`.`resource` = `modResource`.`id` AND `ctx`.`context_key` IN (’web’))) ) AND `modResource`.`deleted` = ’0’ AND `modResource`.`published` = ’1’ AND `modResource`.`hidemenu` = ’0’ ) ORDER BY id ASC LIMIT 5
Has anyone ran into any similar issues with upgrading packages in MODx 2.0.0-pl?