Uncle Cheese,
I'm reviving this thread and hope you see it.
I tried the modifications you made:
Please make the following fixes and let me know the result.
/image_gallery/code/ImageGalleryAlbum.php : line 88
Change
if($_POST['Source'] == "new") {
to
if(isset($_POST['Source']) && $_POST['source'] == "new") {
/sapphire/core/model/Image.php : line 634
Change
if($data['ImageSource'] != 'existing' && $data['Upload']['size'] == 0) {
to
if(isset($data['ImageSource']) && $data['ImageSource'] != 'existing' && $data['Upload']['size'] == 0) {
/gallery/code/GalleryPage.php : line 381
Change
if( ! is_numeric( $_REQUEST['start'] ) )
to
if(isset($_REQUEST['start']) && ! is_numeric( $_REQUEST['start'] ) )
Now I get this error when visiting the default album on a newly created image gallery page :
Notice: Undefined index: start in /Users/LabBrain/Sites/JR/gallery/code/GalleryPage.php on line 383
FATAL ERROR: DATABASE ERROR: Couldn't run query: SELECT `File`.ID, `File`.ClassName, `File`.Created, `File`.LastEdited, `File`.Name, `File`.Title, `File`.Content, `File`.ParentID, `File`.Filename, if(`File`.ClassName,`File`.ClassName,'File') AS RecordClassName, `File`.PopupWidth, `File`.PopupHeight, `File`.Embed, `File`.LimitDimensions FROM `File` WHERE (ParentID = 33) AND (`File`.ClassName IN ('Image','GalleryPage_Image','Image_Cached')) ORDER BY `File`.`Sort` ASC LIMIT ,30 | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30' at line 1
At line 431 in /Users/LabBrain/Sites/JR/sapphire/core/model/Database.php
Also, I tried creating a new album but no matter what I do it just hangs when I click on save.
Thanks,
Josh