Modx Revo 2.2.0-pl2
phpThumbsOf 1.3.2-pl
Dedicated Server, php 5.3.10
After moving modx to a new production server we're experiencing two odd errors. Some help would be more than welcomed.
1.- When creating a resource in the manager and
saving it changing its template, the following error is logged:
(ERROR @ /path_to_modx_install/manager/controllers/default/resource/create.class.php : 108)
PHP warning: Invalid argument supplied for foreach()
As a side effect, accessing the resource in the front-end returns a 404. The alias and uri of the resource are recorded in the db and valid. The uri works after editing and saving the resource.
2.- When loading an existing resource with a non-empty TV image, the following error is returned:
(ERROR @ /path_to_modx_install/core/model/phpthumb/phpthumb.class.php : 1054)
PHP warning: is_link() [<a href='function.is-link'>function.is-link</a>]: open_basedir restriction in effect.
File(/path_to_modx_installartistes/clarinettistes/artistes-clarinettistes-jean-marc-fessard.jpg) is not within the allowed path(s): (/path_to_modx_install:/tmp_php_upload:/tmp_php_sessions)
The path is wrong. It should read:
/path_to_modx_install/media_source_path/artistes/clarinettistes/artistes-clarinettistes-jean-marc-fessard.jpg
Apart from filling up the error log ^_^ there doesn't seem to be any side effect. The image is displayed properly in the manager as well as in the front-end.
What I tried to fix them:
- triple checked the paths in core/config/config.inc.php for errors. Everything is all right in there.
- re-run setup
- flush permissions, sessions and cache
[ed. note: yogooo last edited this post 14 years, 6 months ago.]