Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Update from 2.6.5 to 2.7: Call to a member function deprecated() #14139

Closed
winformatic opened this issue Nov 15, 2018 · 10 comments
Closed
Labels
area-setup bug The issue in the code or project, which should be addressed.
Milestone

Comments

@winformatic
Copy link

winformatic commented Nov 15, 2018

Summary

Could not update a 2.6.5 Modx website. During the setup the following error appeared.

Error updating table for class modResource
Array
(
[0] => 42S21
[1] => 1060
[2] => Duplicate column name 'alias_visible'
)

Log says:


[2018-11-15 09:09:41] (ERROR in xPDOManager_mysql::addField @ /page/core/xpdo/om/mysql/xpdomanager.class.php : 302) Error adding field modResource->alias_visible: Array
(
    [0] => 42S21
    [1] => 1060
    [2] => Duplicate column name 'alias_visible'
)

Step to reproduce

Updated the files on webspace and run setup. All checks were ok. On install the error appeared:

Observed behavior

After setup the manager page is a white page. Things I've tried:

  1. Clear core/cache multiple times.
  2. Check that compress_js/css are turned off.
  3. Re-ran setup.
  4. Cleared browser cache and checked in Incognito Mode (Chrome) or Private Mode (Firefox).
  5. Nothing in server error log having to do with MODx.

Installed Extensions

ace-1.6.5-pl
batcher-2.0.0-pl
ckeditor-1.4.0-pl
cmpgenerator-1.1.3-pl
formit-4.0.1-pl
formit2db-1.1.4-pl
getresources-1.6.1-pl
login-1.9.5-pl
migx-2.12.0-pl
orphans-1.1.1-pl
pdotools-2.11.0-pl
simpleupdater-2.1.2-rc
uicmpgenerator-1.0.1-beta
upgrademodx-1.5.5-pl
versionx-2.1.3-pl
wayfinder-2.3.3-pl

Environment

MODX version 2.6.5, apache and PHP version 7.1.23 , mysql version 5.6.42,

@alroniks alroniks added this to the v2.7.0 milestone Nov 15, 2018
@alroniks alroniks added bug The issue in the code or project, which should be addressed. area-setup labels Nov 15, 2018
@Jako
Copy link
Collaborator

Jako commented Nov 15, 2018

That install error message could not cause an error 500 in the manager.

Just for the records: The white page occurs after log in into the mangager?

Maybe it is caused by an old version of TinyMCE.

@winformatic
Copy link
Author

Hey, updated the description.

Yes error accured after login.

@Jako
Copy link
Collaborator

Jako commented Nov 15, 2018

Could you get an apache or php error log? Normally php fatal errors are logged there.

@winformatic
Copy link
Author

winformatic commented Nov 15, 2018

[2018-11-15 09:09:41] (ERROR in xPDOManager_mysql::addField @ /pagee/core/xpdo/om/mysql/xpdomanager.class.php : 302) Error adding field modResource->alias_visible: Array
(
    [0] => 42S21
    [1] => 1060
    [2] => Duplicate column name 'alias_visible'
)


and the apache Log:

[Thu Nov 15 09:15:17.338976 2018] [proxy_fcgi:error] [pid 28649:tid 140242136848128] [client 90.187.63.109:58788] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function deprecated() on null in /page/core/model/modx/modmenu.class.php:119\nStack trace:\n#0 /page/core/model/modx/modmenu.class.php(145): modMenu->getSubMenus('components')\n#1 /page/core/model/modx/modmenu.class.php(66): modMenu->getSubMenus('topnav')\n#2 /page/manager/controllers/default/header.php(242): modMenu->rebuildCache('topnav')\n#3 /page/manager/controllers/default/header.php(150): TopMenu->getCache('topnav')\n#4 /page/manager/controllers/default/header.php(81): TopMenu->buildMenu('topnav', 'navb')\n#5 /page/manager/c...\n', referer: https://www.url.de/manager/?cultureKey=de

@Jako Jako changed the title Error Update DB from 2.6.5 in 2.7 Setup - Duplicate column name 'alias_visible' Error Update from 2.6.5 to 2.7: Call to a member function deprecated() Nov 15, 2018
@Jako
Copy link
Collaborator

Jako commented Nov 15, 2018

Thats the real issue:
PHP Fatal error: Uncaught Error: Call to a member function deprecated() on null in /page/core/model/modx/modmenu.class.php:119

@winformatic
Copy link
Author

OK, thanks. It's my first bug report, something else I have to do?

@Jako Jako mentioned this issue Nov 15, 2018
@Jako
Copy link
Collaborator

Jako commented Nov 15, 2018

Thanks a lot for reporting the bug! It should be fixed with the commit above.

@winformatic
Copy link
Author

Tried your commit and it works! Thank you very much!

@Jako
Copy link
Collaborator

Jako commented Nov 15, 2018

It will be closed when the PR is merged.

@Jako Jako reopened this Nov 15, 2018
alroniks added a commit that referenced this issue Nov 15, 2018
@alroniks
Copy link
Collaborator

PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup bug The issue in the code or project, which should be addressed.
Projects
None yet
Development

No branches or pull requests

3 participants