Unable to change/add image to index page
When selecting "-------" or uploading a new image and pressing submit, the page reloads, but the values have not changed.
Leave a comment
(In revision:23186) test#362 error while updating indexpage should be fixed
Thanks for your quick work!
The changes are now saved to the index page
Errors
Also, check your usage of icms_core_Filesystem::mkdir() - it has a parameter for the base path and uses ICMS_ROOT_PATH if not provided. When you do this in admin/indexpage.php
the directory that will be created is the equivalent of ICMS_ROOT_PATH . $dir
The image that gets uploaded goes to uploads/album/indeximages/ - the index page tries to display the image from uploads/album/indexpage/
The changes are now saved to the index page
Errors
Warning: Missing argument 2 for icms_ipf_Controller::storeFromDefaultForm(), called in /modules/album/admin/indexpage.php on line 54 and defined in file /libraries/icms/ipf/Controller.php line 254
Notice: Undefined variable: modified_success_msg in file /libraries/icms/ipf/Controller.php line 302
Also, check your usage of icms_core_Filesystem::mkdir() - it has a parameter for the base path and uses ICMS_ROOT_PATH if not provided. When you do this in admin/indexpage.php
public function getImagePath() {
$dir = $this->_uploadPath;
if (!file_exists($dir)) {
icms_core_Filesystem::mkdir($dir);
}
return $dir . "/";
}
the directory that will be created is the equivalent of ICMS_ROOT_PATH . $dir
The image that gets uploaded goes to uploads/album/indeximages/ - the index page tries to display the image from uploads/album/indexpage/
(In revision:23198) test#362 improvements on indexpage. Thanks for reporting!! Where did you get all the messages?? Never saw them before. Thanks for help!