hi,
I have 2 (possibly related?) problems regarding image previews: one in the MCPUK browser,
the other one in resources -> File manager. I never see image previews, but just broken image symbols instead. I’m not quite sure anymore if it worked under 0.9.6.2, though.
here some URLs of image locations (i replaced my real domain with MYDOMAIN.COM. The image I chose is the modx-logo that comes with the installation, IIRC)
resources->filemanager (broken image - other files, like the content of php-files, are shown correctly though)
http://www.MYDOMAIN.COM/manager/..%2Fassets%2Fimages%2Flogo.png
edit:
solved, see: http://modxcms.com/forums/index.php/topic,32182.msg195648.html#msg195648
resource browser (broken image icon):
http://www.MYDOMAIN.COM/manager/media/browser/mcpuk/connectors/php/connector.php?Command=Thumbnail&Type=images&CurrentFolder=/&FileName=logo.png&ExtraParams=
after selecting that broken image, it is shown correctly in the preview window with its correct location:
resource browser, after selection (works)
http://www.MYDOMAIN.COM/assets/images/logo.png
some of my config:
manager->site config->resource path: (after 0.9.6.3.-upgrade, i took that path from filemanager-path that was inserted automatically during 0.9.6.2.-setup, and added "assets" to it)
/srv/www/vhosts/MYDOMAIN/htdocs/assets/
manager->site config->resource-URL: (I added a starting / to it after upgrading to 0.9.6.3)
/assets/
I searched the forum, did find some old info related to mcpuk which doesn’t really fit with my problem, and some other topic mentioning lacking GD-support. phpinfo tells me that gd-support is enabled on my server.
anyone having a clue?
edit: Second issue also solved: my MODx’s config.inc.php started Byte-Order-Mark, was encoded in "UTF-8 with signature" - that config file is also loaded by the MCPUK-connector.php, and these 3 bytes were passed through to the output of the preview-image, which was broken as a result. See page 3 here.