Cant create or duplicate ressources after upgrade to modx 3.0.4

Hello,

cant duplicate content/ressources after upgrade from 2.8.6 to 3.0.4.
After fix of many problems, i got one strange error i doesnt understand. on create ressource, or duplicte one, nothing happens.

[2023-12-14 18:34:42] (ERROR @ /core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 607) No class specified for loadClass
[2023-12-14 18:36:28] (ERROR @ /core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php : 498) PHP warning: unlink(/core/cache/db/objects/MODX/Revolution/modDeprecatedCall/be968603cf71ad0e7fee311f4d716d89.cache.php): No such file or directory

There are xyz.cache.php files in this folder, but they have different names. So files can be created. Of course, I emptied the cache once for the new installation.

any idears?

Modx 3.0.4, PHP 8.1, Apache

It’s likely that there is an extra installed, that’s not compatible with MODX 3.

Try to (temporarily) disable plugins that run on the events OnBeforeDocFormSave and OnDocFormSave and check if it’s then possible to create a new resource.

In the system settings page (manager/?a=system/settings), there is a tab “System Events” that tells you, what plugins run on what event. Use the filter functionality.

Hello @halftrainedharry ,

thank you, that helped. I swapped SEO Pro for SEO Suit and removed a few older plugins. I can now create/duplicate resources. but duplicating and switching to the duplicate doesn’t work. After executing, you stay on the page, after a refresh/reload I see the new resource in the tree.

Even when the content in a resource is changed, the save process runs permanently. after the reload I see the change.

the error messages remain the same.

[2023-12-15 09:41:38] (ERROR @ /www2/core/cache/includes/elements/modx/revolution/modsnippet/15.include.cache.php : 210) PHP warning: Undefined variable $showLog
[2023-12-15 09:42:18] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 667) Could not load class: ClientConfig from clientconfig
[2023-12-15 09:42:18] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1273) Problem getting service clientconfig, instance of class ClientConfig, from path /www2/core/components/clientconfig/model/clientconfig/
[2023-12-15 09:42:19] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 667) Could not load class: ClientConfig from clientconfig
[2023-12-15 09:42:19] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1273) Problem getting service clientconfig, instance of class ClientConfig, from path /www2/core/components/clientconfig/model/clientconfig/
[2023-12-15 09:42:21] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:42:22] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for getmigxtv-1.0.1-pl: Latest Package Release Not Found
[2023-12-15 09:42:49] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php : 319) PHP warning: mkdir(): File exists
[2023-12-15 09:42:49] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php : 324) PHP warning: mkdir(): File exists
[2023-12-15 09:42:50] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:42:51] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for getmigxtv-1.0.1-pl: Latest Package Release Not Found
[2023-12-15 09:43:08] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:43:09] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for getmigxtv-1.0.1-pl: Latest Package Release Not Found
[2023-12-15 09:43:27] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:44:15] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:44:15] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:44:35] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:44:35] (ERROR in MODX\Revolution\Transport\modTransportProvider::latest @ /www2/core/src/Revolution/Transport/modTransportProvider.php : 264) Could not load updates for blogit-1.2.0-pl: Latest Package Release Not Found
[2023-12-15 09:46:03] (ERROR @ /www2/manager/controllers/default/resource/update.class.php : 268) PHP warning: Undefined array key "pagetitle"
[2023-12-15 09:46:09] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php : 498) PHP warning: unlink(/www2/core/cache/db/objects/MODX/Revolution/modDeprecatedCall/e50225ab39114afa0f49dcca5f7cd664.cache.php): No such file or directory
[2023-12-15 09:46:09] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php : 498) PHP warning: unlink(/www2/core/cache/db/objects/MODX/Revolution/modDeprecatedCall/e50225ab39114afa0f49dcca5f7cd664.cache.php): No such file or directory
[2023-12-15 09:46:21] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 607) No class specified for loadClass
[2023-12-15 09:46:39] (ERROR @ /www2/core/vendor/xpdo/xpdo/src/xPDO/Cache/xPDOCacheManager.php : 498) PHP warning: unlink(/www2/core/cache/db/objects/MODX/Revolution/modDeprecatedCall/7b7a03a4b6e73f53441a3d18d11b1aaf.cache.php): No such file or directory

Packages installed
Ace
Aksiment
Blogit (old but only tpls & chunks)
Collections
ContentBlocks
Formit
getRes
GoogleSitemap
Guzzle7
RecapV2
Resizer
SEOSuit
SimpleSearch
Tagger
TinyMCE
UpgradeModx

I uninstalled everything that had no updates from 2022 and was not really needed, and swapped SEO pro for SEO Suit

This usually occurs when a plugin that runs on the event OnDocFormSave throws an error.

Fatal PHP errors can’t be logged by MODX in the MODX error log.
There usually also exists a server error log where fatal PHP errors are logged. Try to locate it (the file path depends on the server configuration) and check if an error gets logged when you try to save a resource.

Also, open the developer tools in the browser and go to the “Network” tab.Then save the resource. A new request gets added (parameter “action” = “Resource/Update”).
What is the HTTP response code of this request? Is it 500?
Is there maybe an error message in the response?

yes it is a 500. i got no respone, saving process runs unlimeted.

this one looks like a xpdo problem…

server error logs i will looking for.

Above all, thank you very much for your support and help

This is not related to xPDO. This is related to the SimpleSearchIndexer Plugin (a helper Plugin that ships with SimpleSearch). It currently doesn’t work with Revo 3.x. It will cause Resource Saves to fail. Disable the plugin and your saves will resume.