Re: Testimonial Manager Support Thread
I have this working on a client site.. I will look to see which file this function shows up in (I kept calling is a class incorrectly..) You cannot declare it twice which is why you are getting the error.. I'll let you know what I find..
Quote:
Originally Posted by
OLCS
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
Re: Testimonial Manager Support Thread
Thank you to you both for all your help. I really do appreciate it. :smile:
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
OLCS
Has anyone got any thoughts on what may be causing this error?
Many thanks
Quote:
Originally Posted by
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!
Quote:
Originally Posted by
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
Quote:
Originally Posted by
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.
1. You have this add-on installed incorrectly to begin with
2. 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..
Re: Testimonial Manager Support Thread
Hi DivaVocals,
Many thanks again.
Quote:
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)
I am guessing I am using the developers toolkit incorrectly as my store seems absolutely fine. In the toolkit I used the "Look up in all files" search wit the following criteria:
Key or Name: function zen_db_insert_id()
All Files Look-ups: All Files - Catalog/Admin
File type: php only
This is the search that only returned 2 results. Is what I have done incorrect?
I'll roll back as you suggested and do a full re-install.
Thanks
Lee
Re: Testimonial Manager Support Thread
You need to search "zen_db_insert_id()". It's looking for an exact match to your string which is why you are not getting the right result.. Try the search again before you rollback..
Quote:
Originally Posted by
OLCS
Hi DivaVocals,
Many thanks again.
I am guessing I am using the developers toolkit incorrectly as my store seems absolutely fine. In the toolkit I used the "Look up in all files" search wit the following criteria:
Key or Name: function zen_db_insert_id()
All Files Look-ups: All Files - Catalog/Admin
File type: php only
This is the search that only returned 2 results. Is what I have done incorrect?
I'll roll back as you suggested and do a full re-install.
Thanks
Lee
Re: Testimonial Manager Support Thread
Hi I am wondering if there is a way to edit the Testimonial Manager to only show on the main page, as it is out of alignment on my other pages.
Thanks
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
AmandaS
Hi I am wondering if there is a way to edit the Testimonial Manager to only show on the main page, as it is out of alignment on my other pages.
Thanks
It always a good idea to show a link to your site so we can see the problem you are having.
Re: Testimonial Manager Support Thread
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
AmandaS
Hi I am wondering if there is a way to edit the Testimonial Manager to only show on the main page, as it is out of alignment on my other pages.
Thanks
Quote:
Originally Posted by
AmandaS
Okay.. so what EXACTLY is your "alignment"issue??? Please don't take this wrong, but you've provided very little information, and we cannot know what it is you are having issues with without DETAILS.. So far looking at your page I have NO IDEA what the issue is you are reporting..
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
AmandaS
Quote:
Originally Posted by
DivaVocals
Okay.. so what EXACTLY is your "alignment"issue??? Please don't take this wrong, but you've provided very little information, and we cannot know what it is you are having issues with without DETAILS.. So far looking at your page I have NO IDEA what the issue is you are reporting..
You have another problem also. If I go to Accesories and go to any other category in Accesories I get a blank page in my browser. If I go to Hair Repair, or Hair Accessories Categories I get a blank page. You need to find and fix these problem also. Testimonial Manager is not out of alignment on any other page I can see. You may have left out a file or didn't upload files to there correct directory because when I click Add A Testimonial I get a blank page.