modxcms / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
1.36k stars 528 forks source link

Blank Screen in Revo 2.2.0 Manager #6509

Closed modxbot closed 12 years ago

modxbot commented 12 years ago

drachzet created Redmine issue ID 6509

Hello,

I just installed Revo 2.2.0 rc3 on a mt grid server running php 5.3.6 and mysql 5.0.32. The installer indicated the everything was loaded without errors.

Upon logging into the manager, the Dashboard loads with header/nav area, the news feed, security feed, who's online and recently edited resources widgets (no resource tree). I'm also receiving the following javascript error: b[d.xtype || e] is not a constructor

When I click on other pages from the main navbar, I only see the header/navbar and the rest of the page is blank and I'm receiving the same b[d.xtype || e] is not a constructor JS error.

MarkH commented 12 years ago

markh submitted:

Try disabling the compress_js and concat_js system settings.

You can do so via something like phpmyadmin. Clear the core/cache/system_settings/ after that to force MODX to rewrite system setting cache.

If that solves the issue (and I suspect it does), I'm going to guess something is configured in such a way that the Google Minify is failing. Any specific oddities on your server that may affect this, such as accessing data from a temporary URL?

opengeek commented 12 years ago

opengeek submitted:

We're going to have to have more information to reproduce. It sounds to me like something is either wrong with some of the files (failed FTP uploads) or if disabling the compress_js/css settings works as suggested by Mark, I'll need more details on what specifically is failing and why. Relevant error logs, AJAX responses when loading the manager home, etc.

modxbot commented 12 years ago

drachzet submitted:

Hi Jason and Mark, thank you for your quick responses today.

I set compress_js=0 in the system_settings table and cleared the config.cache.php.

The resources tree and other pages in the manager are now loading (thanks for the tip Mark).

Jason, to answer your question about the upload, I used the traditional package. The zip file was uploaded to the server and then uncompressed in the html directory. I checked the system error log, but it was empty. Please let me know if you need more info.

Best, Ryan

opengeek commented 12 years ago

opengeek submitted:

Could this be related to #6383 which was fixed immediately after RC3 was released? If so (or you do not know for sure), try the latest nightly and see if that addresses the problem.

opengeek commented 12 years ago

opengeek submitted:

This might also be related to #6510. Please confirm with latest from git or with the nightly which will be available for December 30th.

modxbot commented 12 years ago

drachzet submitted:

After deleting all files and db, I did a clean install using nightly Dec 31. The problem still persists, where the pages are blank and the resource tree is not present. I set compress_js=0 in the db and cache file as previously recommended, the admin pages and resource pages load.

opengeek commented 12 years ago

opengeek submitted:

Ryan, I still cannot reproduce any of these issues. Can you provide more specifics on exactly what requests are failing in the manager, your paths and urls in the config file, etc.

opengeek commented 12 years ago

opengeek submitted:

Also, include your $_SERVER['DOCUMENT_ROOT'] as defined in your phpinfo.

modxbot commented 12 years ago

drachzet submitted:

Hi Jason,

Sure, hope this info points you in the right direction. Let me know if you need more... In fact, send me an email so that i can give you admin access to the manager.

$_SERVER['DOCUMENT_ROOT'] = /home/51297/domains/dev.urgoconsulting.com/html

With compress_js=1, I'm seeing the following errors:

On the Dashboard page (http://dev.urgoconsulting.com/manager/?a=&), I'm receiving the following error 3x: b[d.xtype || e] is not a constructor (function(){var h=Ext.util,j=Ext.each,...lclick",this.onNodeDblClick,this)}}); ext-all.js (line 7)

The other pages in the manager receive the same error once.

The Package Management page (http://dev.urgoconsulting.com/manager/?a=69), generates the following error in addition to the error above: Ext.ux.Lightbox is undefined

 ?a=69 (line 24)

Best, Ryan

opengeek commented 12 years ago

opengeek submitted:

FWIW, we have confirmed this problem with MT Grid accounts, as well as accounts on 1&1 hosting.

vertexer commented 12 years ago

vertexer submitted:

I can confirm this bug if I use a symlink for vhost on my local dev system:

Real (physical) location: /path/to/projects/example/www/ Symlink (vhost) location: /path/to/server/example.com/www -> /path/to/projects/example/www

If I delete the symlink and move the project files (/path/to/projects/example/www/) to a real directory (/path/to/server/example.com/www), it works.

opengeek commented 12 years ago

opengeek submitted:

This is now fixed for pl by applying realpath() to the reported $_SERVER['DOCUMENT_ROOT'] before using it for comparisons when checking for virtual directories. See https://github.com/modxcms/revolution/commit/4f21c50c19b2404735651e80d86116dc5ba6f439 for commit details.

The problem was if the reported $_SERVER['DOCUMENT_ROOT'] was a symlinked path itself, virtual directory support would be automatically enabled (when not needed) because the MODX paths use the realpath().

modxbot commented 12 years ago

drachzet submitted:

Thanks Jason! The new nightly works great on my end.

splittingred commented 12 years ago

splittingred submitted:

Seems to still have some issues: http://forums.modx.com/thread/72961/resources-tree-missing-and-blank-pages-for-tabs?page=2#dis-post-405939

modxbot commented 12 years ago

tony.wilsman submitted:

I am experiencing this on a local dev machine.

Windows 7 - 64 bit XAMPP - 1.7.4 PHP 5.3.5 MySQL 5.5.8 Apache 2.2.17

This site is not in any kind of virtual directory.

Thanks,

Tony

opengeek commented 12 years ago

opengeek submitted:

I would follow up on this via forums; this bug was fixed based on the causes reported by the OP. If we identify another source of the issue, we can open another ticket with those specific issues.

derelict commented 12 years ago

derelict submitted:

This "commit":https://github.com/modxcms/revolution/commit/4f21c50c19b2404735651e80d86116dc5ba6f439 should be a little bit changed to make it correctly working on Windows:

if (!empty($min_documentRoot)) {
    $min_documentRoot = str_replace('\\', '/', realpath($min_documentRoot));
}

Because on Windows $hasVirtualManagerURL and $hasVirtualAssetsURL always are true now and minify fails with error 400.

modxbot commented 12 years ago

martino187 submitted:

Martijn de Valk wrote:

Thanks Andrey,

I also got this issue and your solution has fixed it.

Thanks a lot.

modxbot commented 12 years ago

daangdaang submitted:

Anyway, i'm still having this issue, and i'v been spending hours and hours to get things working again.

I'v been trying really every suggestion what i found, still no luck. Manager says "undefined" and no resource tree, nothing works... Quickest fixes, setting compress_js and compress_css to 0 and clearing cache manually had no effect. Trying also running setup again, doing fress install for modx + the packages needed and importing my data from mysql backups, no luck. Really tried every suggestion what i found, no luck...

Using MODx 2.2.4-pl (traditional). And have a lot of packages installed, i used them on my develompent untill the manager just stopped working.

List of installed packages:

./ getpage-1.2.3-pl/ ../ getresourcefield-1.0.3-pl/ analyticsdashboard-1.0.0-pl/
archivist-1.2.3-pl/ getresources-1.5.0-pl/ googlemapstv-1.0-rc3/ articles-1.6.2-pl/ googlesitemap-1.3.1-pl/ if-1.1-pl/ autofiximagesize-1.0.1-pl/
breadcrumbs-1.1.0-pl/ phpthumbof-1.4.0-pl/ core/
core.transport.zip
firstchildredirect-2.3.1-pl/ quip-2.3.1-pl/ siblingnav-1.0.0-pl/ formit-2.1.1-pl/

formitbuilder-1.3.2-pl/ taglister-1.1.7-pl/ tinymce-4.3.2-pl/ gallery-1.5.2-pl/ tinymce-4.3.3-pl/ tinymce-4.3.3-pl.transport.zip getfeed-1.0.0-rc1/ wayfinder-2.3.3-pl/

When i started this project, everything was fine about 4 weeks, and i get things developed quite fast. Now i am stucked on this, and this is really really frustrating.

The fron end website runs fine, but i cannot contine my development untill the manager is working, as obvious..

Any ideas, please?

modxbot commented 12 years ago

daangdaang submitted:

Some additional information from Firefox error console:

Timestamp: 08/25/2012 10:26:57 AM Error: ReferenceError: _ is not defined Source File: http://wwwdev.XXX/manager/assets/modext/widgets/system/modx.tree.directory.js Line: 618

Timestamp: 08/25/2012 10:26:58 AM Error: ReferenceError: _ is not defined Source File: http://wwwdev.XXXXX/manager/assets/modext/core/modx.localization.js Line: 5

Timestamp: 08/25/2012 10:26:58 AM Error: TypeError: MODx.user is undefined Source File: http://XXXXX/manager/assets/modext/core/modx.js Line: 815

Timestamp: 08/25/2012 10:26:58 AM Error: ReferenceError: _ is not defined Source File: http://wwwdev.xxxx/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js Line: 12

rthrash commented 3 years ago

This issue has been mentioned on MODX Community. There might be relevant details there:

https://community.modx.com/t/blank-manager-with-undefined-message/3799/12