Wierd error

im trying to update my old theme and came acros a really weir error. this is the output i get:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<link rel="stylesheet" href="style.css">
<script src="modernizr-2.6.2.js"></script>
<!--[if (gte IE 6) & (lte IE 8)]><script src="selectivizr-1.0.2.js"></script><![endif]-->
<title>
<b>Fatal error</b>: Call to a member function getNumImages() on a non-object in <b>/Users/michalrusina/Sites/zenphoto/zp-core/template-functions.php</b> on line <b>1905</b>

the weird thing is that even when i remove all the contents of header.php, this error and the html stays there. the theme (in development) can be downloaded at storage.michalrusina.sk/m9.zip.

thanks for help.

Comments

  • acrylian Administrator, Developer
    Please look into the debug log if there is a trace. Your old theme probably does a wrong or outdated call somewhere.

    Why do you have a new account actually, shouldn't you already have one here on the forum?
  • please take a look at the theme, there are no new calls, just those from the original m9 wich works... i just updated html (now its html5) and moved some chunks of code. i cannot understand why the output stops at title tag, even tough im not using the function that threw error there.

    i could not remember my old login so i created a new one (its been a while).
  • acrylian Administrator, Developer
    Did you look at the Zenphoto debug log and if is there a trace of the error? It must not be the function in the error, it can be a call elsewhere.

    Also, do you get the error with official themes as well? If so you probably should try a reupload of the zp-core files.
  • as i mentioned earlier, the old m9 theme works without problems, theres nothing in debug log, just a bunch of "WARNING: Cannot modify header information - headers already sent by (output started at /Users/michalrusina/Sites/zenphoto/themes/M9/functions.php:81)", but they are quite older problems that i already solved...
Sign In or Register to comment.