bluestallion Posted May 23, 2003 Posted May 23, 2003 I installed the Product Description 1.2 Mod and got this error: Warning: wordwrap() expects parameter 2 to be long, string given in F:Domainsmyname.comwwwrootcatalogincludesmodulesproduct_listing.php on line 17 However, the product description listing works fine. How do I get rid of the error message and is there a serious error here? Any advice appreciated. Thanks.
xaglo Posted May 23, 2003 Posted May 23, 2003 did you load the supplied file 'product_description.sql' into your mySQL database and did you defined PRODUCT_LIST_DESCRIPTION_MAX_LENGTH in the admin well??
bluestallion Posted May 23, 2003 Author Posted May 23, 2003 I did not load supplied file 'product_description.sql' into mySQL database but I inserted the code in the 'product_description.sql' file directly into mysql_catalog.sql database file via HELM: The Web Hosting Control System. Is this method correct coz I'm don't know much about databases. And where and how do I define PRODUCT_LIST_DESCRIPTION_MAX_LENGTH? I tried checking catalog/admin but there are no such option for me to configure or define. Or should I edit the code directly in any php file, the 'advanced_search_result.php' perhaps? Please advice. Thanks.
xaglo Posted May 23, 2003 Posted May 23, 2003 I don't know HELM so I can't say you if your mySQL database is OK PRODUCT_LIST_DESCRIPTION_MAX_LENGTH would be in your database, you don't need a define() in yours php files. you would find it in your database and define it in your admin: Configuration->Maximum Values->Product Description-> Maximum number of caracters when displaying the product description in the product listing
bluestallion Posted May 23, 2003 Author Posted May 23, 2003 xaglo, I've found the PRODUCT_LIST_DESCRIPTION_MAX_LENGTH in my database file but I can't see any Product Description option in my admin: [Configuration->Maximum Values->Product Description->] Does the Product Description appear in the orginal admin?
xaglo Posted May 23, 2003 Posted May 23, 2003 yes, i think you didn't load the supplied file 'product_description.sql' into your mySQL database correctly you would have a Product Description line in Configuration->Maximum Values to select the Maximum number of caracters to display in the description in the product listing. # Insert configuration items into the configuration table. INSERT INTO configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added ) VALUES ( 'Display Product Description', 'PRODUCT_LIST_DESCRIPTION', 1, 'Include product description in the product listing. The product description will be included undef the product name. So, the product name has to be printed in the product listing', 8, now() ); # Insert configuration items into the configuration table. INSERT INTO configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added ) VALUES ( 'Product Description', 'PRODUCT_LIST_DESCRIPTION_MAX_LENGTH', 200, 'Maximum number of caracters when displaying the product description in the product listing', 3, now() ); :wink:
bluestallion Posted May 24, 2003 Author Posted May 24, 2003 Hi, when the instruction states load the 'product_description.sql' file into the mySQL database, what does it mean? Create a new table? Create a new database? Pls advice. Thanks.
xaglo Posted May 24, 2003 Posted May 24, 2003 what does it mean?Create a new table? Create a new database? Pls advice. No, how it's explain in the comment of the sql request, you only have to insert configuration items into the configuration table. I think, if you don't know what does it mean, that it's easier to load the file with a programm as phpmyadmin for exemple :roll:
bluestallion Posted May 24, 2003 Author Posted May 24, 2003 Thanks Xavier! :D You're a life saver man! The product description is working fine now. Now I know how I should load the sql file. Meaning, I just add new data values into the table named 'configuration'. It was so easy to see when I used mySQL Manager. It's the coolest app for tweaking sql stuff. You guys should check it out. Cheers!
bluestallion Posted May 24, 2003 Author Posted May 24, 2003 I appreciate your help :D and your English is fine :wink: Thanks again! 8)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.