Description of problem: A default installation of gallery2 performed by: $ su -c 'yum install gallery2' cannot be accessed. Going to http://localhost/gallery2 results in: Fatal error: Class 'GalleryCoreApi' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 29 Version-Release number of selected component (if applicable): gallery2-2.3-11.fc11.noarch How reproducible: Always Steps to Reproduce: 1. yum install gallery2 2. connect to http://localhost/gallery2 3. retrieve error Actual results: Fatal error: Class 'GalleryCoreApi' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 29 Expected results: Installer shows up Additional info: Adding require_once($g2Base . '/modules/core/classes/GalleryCoreApi.class'); to the top of /usr/share/gallery2/install/index.php seems to fix it. --- index.php 2009-06-19 11:24:29.712328365 -0400 +++ index.php.new 2009-06-19 11:20:22.318136019 -0400 @@ -47,6 +47,7 @@ $g2Base = dirname(dirname(__FILE__)) . ' require_once($g2Base . 'install/GalleryStub.class'); require_once($g2Base . 'install/InstallStep.class'); require_once($g2Base . 'install/StatusTemplate.class'); +require_once($g2Base . '/modules/core/classes/GalleryCoreApi.class'); require_once($g2Base . 'modules/core/classes/GalleryUtilities.class'); require_once($g2Base . 'modules/core/classes/GalleryDataCache.class'); require_once($g2Base . 'lib/support/GallerySetupUtilities.class');
Updated build on the way.
gallery2-2.3-13.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gallery2-2.3-13.fc11
gallery2-2.3-13.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/gallery2-2.3-13.fc10
gallery2-2.3-13.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/gallery2-2.3-13.fc9
gallery2-2.3-13.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-6935
gallery2-2.3-13.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing-newkey update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-6822
gallery2-2.3-13.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-6926
gallery2-2.3-13.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
gallery2-2.3-13.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
gallery2-2.3-13.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
This is also an issue when 'upgrading' adding: require_once($g2Base . 'modules/core/classes/GalleryCoreApi.class'); To /usr/share/gallery2/upgrade/index.php fixed the problem. Also note that the '/' at the start of the path for the install/index.php fix suggested by the original reporter of this bug is unnecessary. Another minor issue for which I'd rather not open a separate bug report: The 'upgrade.css' link in: /usr/share/gallery2/upgrade/templates/MainPage.html should be changed to (without the construct url call): <link rel="stylesheet" type="text/css" href="upgrade.css"/> or the CSS on the gallery upgrade wizard is broken. There appears to be some problem with the logo display on the upgrade wizard page as well.
I see the same on FC10 After upgrading to gallery2-2.3-13.fc10.noarch and accessing the upgrade link I only get a blank screen. In /var/log/httpd/error_log the following is logged: [Fri Jul 17 03:26:14 2009] [error] [client 192.168.1.11] PHP Fatal error: Class 'GalleryCoreApi' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 29
I thought this had been patched, and it was, but only in the installer, not the upgrader. An update will be forthcoming. Thank you!
gallery2-2.3-14.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gallery2-2.3-14.fc11
gallery2-2.3-14.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/gallery2-2.3-14.fc10
gallery2-2.3-14.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
gallery2-2.3-14.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.