[campsite-dev] Campsite-3.0.0-beta2: Inserting images fails
  • When editing an article, I tried to insert an image… This fails like this…

    Warning: require_once(File.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/campsite/html/admin-files/localizer/Localizer.php on line 12

    Fatal error: require_once() [function.require]: Failed opening required 'File.php' (include_path='CS_PATH_PEAR_LOCAL:.:/usr/share/php:/usr/share/pear') in /var/www/campsite/html/admin-files/localizer/Localizer.php on line 12

    Apparently the php files are not being found because the constants were not defined when the php path was set up: so CS_PATH_PEAR_LOCAL did not get properly expanded to its value like it should have.

    My workaround (but this may not be correct if the conf/configuration.php file is auto-generated during setup) was to add a line

    require_once($_SERVER[’DOCUMENT_ROOT’].’/include/campsite_constants.php’);

    at around line 14 (before the line to set the include path) in the file conf/configuration.php
    -
    Peter