1.2.8 Installation, Problems and Bugs

Hello,

i'm new to zenphoto, and i tried to install the current version of it.
I uploaded all files, and i set up my MySql Database.

The installation worked,
when i go to the gallery,
i get a big list of errors.

I copy them here,

('/', $adminalbum); $found = true; foreach ($admin_folders as $level=>$folder) { if ($level >= count($desired_folders) || $folder != $desired_folders[$level]) { $found = false; break; } } if ($found) { return true; } } } return false; } /** * Returns the path to a watermark * * @param string $wm watermark name * @return string */ function getWatermarkPath($wm) { $path = SERVERPATH . '/' . ZENFOLDER . '/watermarks/' . internalToFilesystem($wm).'.png'; if (!file_exists($path)) { $path = SERVERPATH . '/' . USER_PLUGIN_FOLDER . '/watermarks/' . internalToFilesystem($wm).'.png'; } return $path; } /** * mysql_real_escape_string standin that insures the DB connection is passed. * * @param string $string * @return string */ function zp_escape_string($string) { global $mysql_connection; return mysql_real_escape_string($string,$mysql_connection); } /** * Checks to see if access was through a secure protocol * * @return bool */ function secureServer() { if(isset($_SERVER['HTTPS']) && strpos(strtolower($_SERVER['HTTPS']),'on')===0) { return true; } return false; } ?> eturn false; } foreach ( (array) array_keys($_zp_filters[$hook]) as $priority ) { if ( isset($_zp_filters[$hook][$priority][$idx]) ) return $priority; } return false; } ?> $index = $this->getIndex(); if (!is_null($_zp_current_search) && !in_context(ZP_ALBUM_LINKED)) { $image = $_zp_current_search->getImage($index-1); } else { $image = $this->album->getImage($index-1); } return $image; } /** * returns the custom data field * * @return string */ function getCustomData() { return get_language_string($this->get('custom_data')); } /** * Sets the custom data field * * @param string $val the value to be put in custom_data */ function setCustomData($val) { $this->set('custom_data', $val); } /** * Returns the disk size of the image * * @return string */ function getImageFootprint() { return filesize($this->localpath); } } ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/zp-core/functions.php on line 1603

Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/zp-core/functions.php on line 1603
" . $redirect); exit(); } function zp_loggedin($rights=ALL_RIGHTS) { global $_zp_loggedin; return $_zp_loggedin & ($rights | ADMIN_RIGHTS); } ?> $theme = $gallery->getCurrentTheme(); } $theme = "'".zp_escape_string($theme)."'"; // album-theme $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`='" . zp_escape_string($option) . "' AND `ownerid`=".$id." AND `theme`=".$theme; $db = query_single_row($sql); if (!$db) { // raw theme option $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`='" . zp_escape_string($option) . "' AND `ownerid`=0 AND `theme`=".$theme; $db = query_single_row($sql); if (!$db) { // raw album option $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`='" . zp_escape_string($option) . "' AND `ownerid`=".$id." AND `theme`=NULL"; $db = query_single_row($sql); if (!$db) { return getOption($option); } } } return $db['value']; } /** * Returns true if all the right conditions are set to allow comments for the $type * * @param string $type Which comments * @return bool */ function commentsAllowed($type) { return getOption($type) && (!getOption('comment_form_members_only') || zp_loggedin(ADMIN_RIGHTS | POST_COMMENT_RIGHTS)); } /** * Returns the viewer's IP address * Deals with transparent proxies * * @return string */ function getUserIP() { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { return sanitize($_SERVER['HTTP_X_FORWARDED_FOR'], 0); } else { return sanitize($_SERVER['REMOTE_ADDR'], 0); } } /** * Strips out and/or replaces characters from the string that are not "soe" friendly * * @param string $source * @return string */ function seoFriendly($source) { $string = zp_apply_filter('seoFriendly', $source); if ($source == $string) { // no filter, do basic cleanup $string = preg_replace("/&([a-zA-Z])(uml|acute|grave|circ|tilde|ring),/","",$string); $string = preg_replace("/[^a-zA-Z0-9_.-]/","",$string); $string = str_replace(array('---','--'),'-', $string); } return $string; } //load PHP specific functions require_once(PHPScript('5.0.0', '_functions.php')); setexifvars(); ?> red (not 90 but close) case 8 : return 90; break; // 90 CW default: return false; } } return false; } //load PHP specific functions require_once(PHPscript('5.0.0', '_functions-image.php')); ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/index.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/zp-core/functions.php on line 1603

Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/index.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/index.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/index.php on line 148

Warning: Cannot modify header information - headers already sent by (output started at /home/HIDDEN/html/redesign/zenphoto/zp-core/functions-basic.php:1230) in /home/HIDDEN/html/redesign/zenphoto/themes/default/index.php on line 2

Could anybody tell me, what i did wrong?

Thanks!
Christian

Comments

  • Are you using a Webkit-based browser (such as Safari or Chrome)? If so, there is an issue that will occasionally cause some code to be output to the current page. Do you see this every time you open a zenphoto page or only sometimes? You might also want to try using a different browser to test if it still occurs.

    Also, the warnings are not errors, so your installation should be fine, I think.
  • hi there,
    yes, i'm using Safari - i tried now to open the page on Firefox, same bugs,
    Also on Chrome.

    When i try to enter the admin panel, i get
    Parse error: syntax error, unexpected '}' in /home/HIDDEN/html/redesign/zenphoto/zp-core/admin.php on line 642
  • acrylian Administrator, Developer
    Try a reupload to be sure that not some files got accidentally corrupted. Webkit browser like Safari do sometimes show some JS unnecessarily but that is just a line here an there, not full sets of errors (Safari is my main browser, too) and a simple page reload solves that actually.

    Also be sure that the setup does not complain about permissions.
Sign In or Register to comment.