Zen Cart Logo
Forums / All Other Contributions/Addons / Testimonial Manager Support Thread

Testimonial Manager Support Thread

Views: 278,022

Results 341 to 360 of 1,502
7 Oct 2007, 2:36 PM
#341
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Testimonial Manager Support Thread

Sounds like you will need to wait for "super Clyde" to help on this one since it is a mess of SQL errors. But I would bet money that he can figure it out for you. Sorry to not be able to help.

By the way, "Karma Charms" is a great name for your product and target customer. Nice marketing strategy!

7 Oct 2007, 3:13 PM
#342
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

KarmaCharms:

OK I reuploaded everything double checking file structure, and reinstalled the SQL patch...

I get these errors:

Warning: Variable passed to each() is not an array or object in /home/karmarc/public_html/includes/classes/db/mysql/query_factory.php on line 114

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/karmarc/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/karmarc/public_html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/karmarc/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/karmarc/public_html/includes/init_includes/init_templates.php on line 78

Warning: Division by zero in /home/karmarc/public_html/includes/classes/split_page_results.php on line 76
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_DISPLAY_PRODUCTS_LISTING' at line 7
in:
[select p.products_quantity, p.products_id, p.products_type, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from zen_products_description pd, zen_products p left join zen_manufacturers m on p.manufacturers_id = m.manufacturers_id, zen_products_to_categories p2c left join zen_specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '45' limit -0, MAX_DISPLAY_PRODUCTS_LISTING]

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUC' at line 13
in:
[select p.products_id, pd.products_name, products_date_available as date_expected from zen_products p, zen_products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >=20071007 order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCTS]

Sorry, None of these errors has anything to do with Testimonial Manager.

It appears to have something to do with displaying the upcoming products.

7 Oct 2007, 3:40 PM
#343
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

thomasw98:

Hi Clyde:

Is there any way I can turn off the need for the admin to moerate every testimonial (i.e. approve each one before they appear on the site)?

I have already adjusted the setting in admin/config/testimonials manager menu to allow users that are not logged in to leave testimonials. But I can not find anywhere to turn off moderation. I looked in the config menu and also the tools/tesimonials manager menu, but no luck.

Thanks,

Thomas

The status should be set to approved by default.

But let me double check just to be sure.

7 Oct 2007, 3:53 PM
#344
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

clydejones:

The status should be set to approved by default.

But let me double check just to be sure.

thomasw98,

If you want to have the status to always be approved,

open includes/modules/pages/testimonials_add/header_php.php
find the following lines of code:

        $insert_sql_data = array('date_added' => 'now()',
                                 'status' => '0');

change the highlighted portion to 1

save the file and upload to your server.

7 Oct 2007, 4:34 PM
#345
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Thanks again!

7 Oct 2007, 5:31 PM
#346
karmacharms avatar

karmacharms

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

KarmaCharms:

OK, I'm running ZC 1.3.7 and I'm trying to install the newest release of this mod. If it helps at all, I'm also running other mods that this might not be compatible with. I've got the Google Analytics mod on board as well as SEO Urls, a few custom pages, Google Sitemaps, Google Base Feeder, Referrals mod... I think that's it.

If you have some sort of instant messenger and would be willing to lend me a hand, I'd greatly appreciate it!

I don't have my template renamed as anything, I just made CSS edits to the original template and I'm pretty sure I uploaded all the files to the right directories (I have template folders called classic and template_default FWIW and most mods I have installed have gone in the template_default folders without issue).

clydejones:

Sorry, None of these errors has anything to do with Testimonial Manager.

It appears to have something to do with displaying the upcoming products.

I just made sure that all settings for upcoming products were disabled and now I am getting a whole new slew of errors:

Header errors:

Warning: Variable passed to each() is not an array or object in /home/karmarc/public_html/includes/classes/db/mysql/query_factory.php on line 114

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/karmarc/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/karmarc/public_html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/karmarc/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/karmarc/public_html/includes/init_includes/init_templates.php on line 78

and then where my products should be:

Warning: Division by zero in /home/karmarc/public_html/includes/classes/split_page_results.php on line 76
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_DISPLAY_PRODUCTS_LISTING' at line 7
in:
[select p.products_quantity, p.products_id, p.products_type, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from zen_products_description pd, zen_products p left join zen_manufacturers m on p.manufacturers_id = m.manufacturers_id, zen_products_to_categories p2c left join zen_specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '2' limit -0, MAX_DISPLAY_PRODUCTS_LISTING]

Take a look at my site if you can, I'm going to leave it for now with the errors so you can see what it's doing. The second I uninstall the testimonials SQL, everything works as it should, which leads me to believe it's the mod causing it.

7 Oct 2007, 5:31 PM
#347
karmacharms avatar

karmacharms

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

thomasw98:

Sounds like you will need to wait for "super Clyde" to help on this one since it is a mess of SQL errors. But I would bet money that he can figure it out for you. Sorry to not be able to help.

By the way, "Karma Charms" is a great name for your product and target customer. Nice marketing strategy!

Thanks! Karma is actually my dog and the name was a play on the product offering and the dog LOL!

7 Oct 2007, 9:29 PM
#348
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

KarmaCharms:

I just made sure that all settings for upcoming products were disabled and now I am getting a whole new slew of errors:

Header errors:

and then where my products should be:

Take a look at my site if you can, I'm going to leave it for now with the errors so you can see what it's doing. The second I uninstall the testimonials SQL, everything works as it should, which leads me to believe it's the mod causing it.

I checked your site and didn't see any of the errors you indicated.

On which page (s) do they occur?

7 Oct 2007, 11:57 PM
#349
karmacharms avatar

karmacharms

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

OK I had to disable it again as it was totally breaking the shop and I noticed that I had a ton of customers online. I'll reenable it now and you can feel free to click around.

Here's the super odd part... install the SQL patch for this mod, everything goes bonkers... uninstall it, everything works just fine. Didn't remove any of the uploaded files for this mod, they are all still there, so it has something to do with the SQL.

Thanks!

7 Oct 2007, 11:59 PM
#350
karmacharms avatar

karmacharms

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

OK got the SQL reinstalled and plan to leave it now overnite (I'm in Spain so it's overnight for me) and will check this thread in the morning, hope we can figure this out because I REALLY want to use this mod.

8 Oct 2007, 12:18 AM
#351
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

KarmaCharms:

OK got the SQL reinstalled and plan to leave it now overnite (I'm in Spain so it's overnight for me) and will check this thread in the morning, hope we can figure this out because I REALLY want to use this mod.

Check your PM

8 Oct 2007, 12:29 AM
#352
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

KarmaCharms:

OK got the SQL reinstalled and plan to leave it now overnite (I'm in Spain so it's overnight for me) and will check this thread in the morning, hope we can figure this out because I REALLY want to use this mod.

When you say SQL installed I'm not sure what you mean.

All you need to do is copy the entire sql file and then
paste it into:

admin -> tools -> install sql patches and then click the send button.

That sql statement adds some admin options in the Zen Cart configuration table for Testimonial Manager and adds the testimonial manager admin interface in the tools menu and finally it creates the testimonials table in the database.

The sql statement does not run from the front end (shop) of your installation and is only a one time run from the ZC admin panel as indicated above.

So where are you "installing" the sql?

8 Oct 2007, 12:30 AM
#353
karmacharms avatar

karmacharms

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Exactly as the instructions said. Pasted the contents of the install sql file and hit send, then the problems start. If I then copy and paste the uninstall sql file and hit send, problems gone.

8 Oct 2007, 6:14 AM
#354
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

For anyone else having this problem:

Warning: Variable passed to each() is not an array or object in /path/to/your catalog files/includes/classes/db/mysql/query_factory.php on line 114

The solution can be found here

Note: this error has nothing to do with the testimonial manager mod but rather with the db_cache table in the database.

8 Oct 2007, 6:22 AM
#355
karmacharms avatar

karmacharms

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

I was totally clueless but you figured it out and fixed it. THANK YOU for taking the time to help a newbie, one day I hope to be able to pay it forward!

15 Oct 2007, 7:17 PM
#356
butterfliege avatar

butterfliege

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

I have got problems to install this module. When I cut and paste the code of install_testimonials_manager.sql and press 'send', I always get this error:

1136 Column count doesn't match value count at row 1
in:
[INSERT INTO zen_configuration_group VALUES (NULL, 'Testimonials Manager', 'Testimonials Manager Display Settings', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Can you help me? What did I wrong?

15 Oct 2007, 11:42 PM
#357
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Butterfliege:

I have got problems to install this module. When I cut and paste the code of install_testimonials_manager.sql and press 'send', I always get this error:

Can you help me? What did I wrong?

Try running this: just copy the code and paste it into admin -> tools -> install sql patches and press the send button.

SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id 
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager'
LIMIT 1;

DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;

INSERT INTO configuration_group VALUES (NULL, 'Testimonials Manager', 'Testimonials Manager Display Settings', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;

INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display in Latest Testimonials box', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES', '5', 'Set the number of testimonials to display in the Latest Testimonials box.', @configuration_group_id, 1, NULL, now(), NULL, NULL);

INSERT INTO configuration VALUES (NULL, 'Testimonial Title Minimum Length', 'ENTRY_TESTIMONIALS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @configuration_group_id, 2, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Minimum Length', 'ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH', '10', 'Minimum length of link description.', @configuration_group_id, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Contact Name Minimum Length', 'ENTRY_TESTIMONIALS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @configuration_group_id, 4, NULL, now(), NULL, NULL);

INSERT INTO configuration VALUES (NULL, 'Display Truncated Testimonials in Sidebox', 'DISPLAY_TESTIMONIALS_MANAGER_TRUNCATED_TEXT', 'true', 'Display truncated text in sidebox', @configuration_group_id, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO configuration VALUES (NULL, 'Length of truncated testimonials to display', 'TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH', '150', 'If Display Truncated Testimonials in Sidebox is true - set the amount of characters to display from the Testimonials in the Testimonials Manager sidebox.', @configuration_group_id, 6, NULL, now(), NULL, NULL);

INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display on all testimonials page', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS', '5', 'Set the number of testimonials to display on the all testimonials page.', @configuration_group_id, 7, NULL, now(), NULL, NULL);

INSERT INTO configuration VALUES (NULL, 'Display Date Published on Testimonials page', 'DISPLAY_TESTIMONIALS_DATE_PUBLISHED', 'true', 'Display date published on testimonials page', @configuration_group_id, 8, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO configuration VALUES (NULL, 'Display View All Testimonials Link In Sidebox', 'DISPLAY_ALL_TESTIMONIALS_TESTIMONIALS_MANAGER_LINK', 'true', 'Display View All Testimonials Link In Sidebox', @configuration_group_id, 9, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO `configuration` VALUES (NULL, 'Display Add New Testimonial Link In Sidebox', 'DISPLAY_ADD_TESTIMONIAL_LINK', 'true', 'Display Add New Testimonial Link In Sidebox', @configuration_group_id, 10, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO `configuration` VALUES (NULL, 'Testimonial Image Width', 'TESTIMONIAL_IMAGE_WIDTH', '80', 'Set the Width of the Testimonial Image', @configuration_group_id, 11, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Testimonial Image Height', 'TESTIMONIAL_IMAGE_HEIGHT', '80', 'Set the Height of the Testimonial Image', @configuration_group_id, 12, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Testimonial Image Directory', 'TESTIMONIAL_IMAGE_DIRECTORY', 'testimonials/', 'Set the Directory for the Testimonial Image', @configuration_group_id, 13, NULL, '2007-08-21 12:04:10', NULL, NULL);
 
INSERT INTO `configuration` VALUES (NULL, 'Display Company Name field', 'TESTIMONIALS_COMPANY', 'true', 'Display Company Name field', @configuration_group_id, 14, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO `configuration` VALUES (NULL, 'Display City field', 'TESTIMONIALS_CITY', 'true', 'Display City field', @configuration_group_id, 15, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO `configuration` VALUES (NULL, 'Display Country field', 'TESTIMONIALS_COUNTRY', 'true', 'Display Country field', @configuration_group_id, 16, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO configuration VALUES (NULL, 'Only registered customers may submit a testimonial', 'REGISTERED_TESTIMONIAL', 'true', 'Only registered customers may submit a testimonial', @configuration_group_id, 17, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

INSERT INTO `configuration` VALUES (NULL, 'Define Testimonial', 'DEFINE_TESTIMONIAL_STATUS', '1', 'Enable the Defined Testimonial Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 999, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');


DROP TABLE IF EXISTS testimonials_manager;
CREATE TABLE testimonials_manager (
  `testimonials_id` int(11) NOT NULL auto_increment,
  `testimonials_title` varchar(64) NOT NULL default '',
  `testimonials_url`  VARCHAR( 255 ) NULL DEFAULT NULL,
  `testimonials_name` text NOT NULL,
  `testimonials_image` varchar(254) NOT NULL default '',
  `testimonials_html_text` text,
  `testimonials_mail` text NOT NULL,
  `testimonials_company` VARCHAR( 255 ) NULL DEFAULT NULL,
  `testimonials_city` VARCHAR( 255 ) NULL DEFAULT NULL,
  `testimonials_country` VARCHAR( 255 ) NULL DEFAULT NULL,
  `testimonials_show_email` char(1) default '0',
  `status` int(1) NOT NULL default '0',
  `date_added` datetime NOT NULL default '0000-00-00 00:00:00',
  `last_update` datetime NULL default NULL,
  PRIMARY KEY  (`testimonials_id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;

INSERT INTO `testimonials_manager` VALUES (1, 'Great', '', 'Clyde\'s Test Site', '', 'This is just a test submission to show you how it looks, great, eh?', '[email protected]', NULL, NULL, NULL, 0, 1, now(), '0000-00-00 00:00:00');
16 Oct 2007, 7:10 AM
#358
butterfliege avatar

butterfliege

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

I have done it, and now I get tihs error:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p_id=0' at line 1
in:
[p_id=0;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

16 Oct 2007, 10:53 AM
#359
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Butterfliege:

I have done it, and now I get tihs error:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p_id=0' at line 1
in:
[p_id=0;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

p_id=0 does NOT exist in the SQL statement provided for Testimonials Manager.

URL to your site please

16 Oct 2007, 11:51 AM
#360
butterfliege avatar

butterfliege

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Sorry, the site is on my local system, so I can't give you a url.
Do you have any ideas?