BobRay / UpgradeMODX

A dashboard widget that detects upgrades and (optionally) installs them from within the MODX Manager
https://bobsguides.com/upgrade-modx-package.html
22 stars 14 forks source link

How to configure UpgradeMODX custom config key? #38

Closed travisbotello closed 5 years ago

travisbotello commented 6 years ago

I am using a custom MODX_CONFIG_KEY for all of my MODx installations. How can I configure UpgradeMODX to recognize these custom config keys? Right now UpgradeMODX doesn't recognize that MODx was installed before and I can't select update/upgrade option in setup.

Any ideas?

BobRay commented 6 years ago

Sounds like a bug. Let me check it out and get back to you

On Tue, May 15, 2018, 5:43 AM Travis Botello notifications@github.com wrote:

I am using a custom MODX_CONFIG_KEY for all of my MODx installations. How can I configure UpgradeMODX to recognize these custom config keys? Right now UpgradeMODX doesn't recognize that MODx was installed before and I can't select update/upgrade option in setup.

Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BobRay/UpgradeMODX/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUcojg3jNLSvPyxMi2ziYToE6mAlmD2ks5tyrFXgaJpZM4T_Tu5 .

BobRay commented 6 years ago

Travis, when you can't select Upgrade, it means that Setup can't find the config.inc.php file. It's odd because if UGM couldn't find config.inc.php, it would abort before running Setup. Also, Setup would normally ask you where the core is if it's moved or renamed. Does it?

I could be wrong, but I don't think it's a problem with UGM -- all it does is put the files in place and launch Setup. Can you compare the config.core.php file in the setup/includes directory with the one in your MODX root (especially the MODX_CONFIG_KEY setting)? After UGM finishes, you may be able to copy the root config.core.php file to setup/includes and just run Setup.

Also, is your config directory named 'config'?

BobRay commented 6 years ago

Travis, can you try something for me? Skip the advice above.

Get the attached zip file below, unzip it, and paste the contents into the upgrademodxscriptsource chunk. Clear the cache and try an upgrade.

upgrademodxsnippetscriptsource.chunk.zip

travisbotello commented 5 years ago

@BobRay Sorry, for my late reply. Somehow I was unsubscribed to this thread. Let me try your last advice and get back to you.

travisbotello commented 5 years ago

@BobRay Awesome solution!! I updated the chunk with the content of your zip file and now everything is detected automatically:

So I think this can be committed and closed. Sorry for my late reply on this!

gravinos commented 5 years ago

Hello, I also had the same problem, I can confirm that, with the proposed chunk the update is successful!