Have just found out that the error being produced is:
PHP Fatal error: Cannot redeclare zen_db_insert_id() in /web/docroot/1870/ourlittlecottageshop.co.uk/htdocs/includes/functions/testimonials.php on line 12
Any help would be really appreciated!
Printable View
Have just found out that the error being produced is:
PHP Fatal error: Cannot redeclare zen_db_insert_id() in /web/docroot/1870/ourlittlecottageshop.co.uk/htdocs/includes/functions/testimonials.php on line 12
Any help would be really appreciated!
Has anyone got any thoughts on what may be causing this error?
Many thanks
Sounds like you have two files in the htdocs/includes/functions folder both trying to declare the same class.. You need to figure out which file is the one causing the conflict.. BTW the most common cause is folks leaving "backup" files on their site which are both being executed because the .php file extension is left in place on the "backup" file..
Hi DivaVocals,
Many thanks for responding. I have searched through each of the php files within the directory you suggested and none of them appear to be declaring the same class as the testimonials.php file. I have also checked that there aren't any backup files within that directory. The contents of the testimonials.php is:
<?php
/**
* Testimonials Manager
*
* @package Template System
* @copyright 2007 Clyde Jones
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Testimonials_Manager.php v1.5.2 4-16-2010 Clyde Jones $
*/
function zen_db_insert_id() {
return mysql_insert_id();
}
//EOF
This same function does not appear in any of the other files in the htdocs/includes/functions directory so I am still at a bit of a loss as to what is causing this problem.
Is there any further help you can give me please?
Many thanks
Thanks again DivaVocals.
I have just used the Developers Toolkit and the only files it came back as having the text: function zen_db_insert_id() in them are testimonals.php and admin/includes/functions/database.php (my admin file is renamed but have put it in this post as the default).
Could it be this file therefore that is causing the problem?
Thanks
Actually I have just realised that admin file is actually an unmodified core file, therefore if that file is causing the problem then surely there is an issue with the testimonials add on isn't there?
Hi CountryCharm,
Thanks for your response. I have re-checked the file and it has uploaded correctly. These are the contents of the file:
<?php
/**
* Testimonials Manager
*
* @package Template System
* @copyright 2007 Clyde Jones
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Testimonials_Manager.php v1.5.2 4-16-2010 Clyde Jones $
*/
function zen_db_insert_id() {
return mysql_insert_id();
}
//EOF
As mentioned in my post above, the only other file within my store that has the same function as testimonials.php is admin/includes/functions/database.php
Have no idea why it's not working for me unfortunately, so I guess I am just going to have to do without this add on.
Thank you for your help though
I don't have a clue why it is not working for you. If everything uploaded correctly and is in there rightful place making sure you have renamed the YOUR_TEMPLATE folder to your custom folder name and the admin folder name to yours it should work with no problem. Sorry you couldn't get it to work for you.