OLCS:
Has anyone got any thoughts on what may be causing this error?
Many thanks
OLCS:
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!
OLCS:
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
OLCS:
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
Okay I looked at my clients store.. I don't have any issues which would cause the same problem you are having (no files declaring the same function the same folder)
That said, your search results using the developers toolkit concerns me.. There are MANY more core files that declare this function and if you say that you are only finding TWO files declaring that function using the developers toolkit, then there is something SERIOUSLY wrong with your store.. (or you are not using the developer's toolkit correctly to get the correct result)
which leads me to believe that one or more things is going on.
- You have this add-on installed incorrectly to begin with
- You have another add-on with files that declares that same function.
Either way if this is a test store (which it should be..) I suggest rolling back to the state you were before installing testimonials manager and then starting over with your install.. My guess is that you just simply don't have all the files for this add-on in the right places..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.