Manager error Resource ID not found

I can no longer access any of my resources in the manager for this site. They appear on the tree but when I try to access any other resources, I receive an error which the Resource ID is not found. I have attached a screenshot of this error plus I included text from my error log below. The site does display correctly on the web, however, I need to access the site to update it. Please help. Thanks
Screenshot 2021-12-14 210542

[2021-12-15 01:34:31] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘alias_visible’ in ‘field list’
)

[2021-12-15 01:35:01] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘alias_visible’ in ‘field list’
)

[2021-12-15 01:35:11] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘alias_visible’ in ‘field list’
)

[2021-12-15 01:35:50] (ERROR in modMenu::getSubMenus @ /home/mdaro2/public_html/core/model/modx/modmenu.class.php : 148) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace packman to the routing based system.
[2021-12-15 01:35:50] (ERROR in modMenu::getSubMenus @ /home/mdaro2/public_html/core/model/modx/modmenu.class.php : 148) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace formit to the routing based system.
[2021-12-15 01:35:53] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modResource.alias_visible’ in ‘field list’
)

[2021-12-15 01:35:53] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modDocument.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:12] (ERROR in modMenu::getSubMenus @ /home/mdaro2/public_html/core/model/modx/modmenu.class.php : 148) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace packman to the routing based system.
[2021-12-15 01:49:12] (ERROR in modMenu::getSubMenus @ /home/mdaro2/public_html/core/model/modx/modmenu.class.php : 148) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace formit to the routing based system.
[2021-12-15 01:49:16] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modResource.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:16] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modDocument.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:19] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modResource.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:19] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modDocument.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:21] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modResource.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:21] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modDocument.alias_visible’ in ‘field list’
)

[2021-12-15 01:49:59] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘alias_visible’ in ‘field list’
)

[2021-12-15 01:50:02] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘alias_visible’ in ‘field list’
)

[2021-12-15 01:50:04] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘alias_visible’ in ‘field list’
)

[2021-12-15 01:50:34] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modResource.alias_visible’ in ‘field list’
)

[2021-12-15 01:50:34] (ERROR @ /home/mdaro2/public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column ‘modDocument.alias_visible’ in ‘field list’
)

What did you do before this error occured?

It’s seems like you updated from an older version (lower than 2.7.0) of MODx and the column alias_visible wasn’t added to the database table on the update.

You could try adding this missing column manually (for example in phpMyAdmin) with the following SQL statement from this github issue.

ALTER TABLE `modx_site_content` ADD `alias_visible` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '1' AFTER `alias` ;

My guess is that you skipped over an x.x.0 version (e.g. 2.6.0, 2.7.0, or 2.8.0) when you upgraded. Those are where any changes to the database are made. You may be missing other table fields as well.

Hi Bob:

Thanks for your response. Not sure about that, all I know is that I did not have any issues the last time I used the manager. I reran the setup and even downloaded this to my local server and still, the same issue continues. Any suggestions?

PS: Still using your book—my MODX Bible.

Solved! After re-reading the instructions for migrating, I realized that I copied the contents of the assets, core, components, and connectors to the site upgrade instead of just the core/components and core/packages/ folders. Thanks for all of your time.

I’m glad you got it sorted. Thanks for the kind words.

Are you aware of the UpgradeMODX extra? It does everything for you, and suggests the appropriate version to install.

No, I was not, Bob. Thanks so much. BTW, I tried to send a donation your way, but when I clicked the link it stated that this donation was for another name. Is this correct?

Bob,

I want to install UpgradeMODX but cannot seem to find it in the EXTRAS.

Hi @gunner1948 , just type in “UpgradeMODX” in Package Management, it should be there.