Despite my best intentions of backing up all the files and taking a backup of the database I do not seem to be able to roll back the installation to the state it was in prior to attempting to install recaptcha addon.
I'm running 1.3.9h and installed "pickupman-zencart-recaptcha-2157d716cab4" being the latest version I could find.
After installation and configuring keys I tried the "contact us" page and recaptcha worked fine.
Problem 1:
After installing recaptcha the first casualty was an error when undertaking a search. The following replaces the search results page:
Checking in the logs I obtained the following: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 'order by p.products_sort_order, pd.products_name limit 10' at line 1
in:
[SELECT DISTINCT p.products_image, p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price_sorter, p.products_qty_box_status, p.master_categories_id FROM (zen_products p LEFT JOIN zen_manufacturers m USING(manufacturers_id), zen_products_description pd, zen_categories c, zen_products_to_categories p2c ) LEFT JOIN zen_meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%sea%' OR p.products_model LIKE '%sea%' OR m.manufacturers_name LIKE '%sea%' OR (mtpd.metatags_keywords LIKE '%sea%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%sea%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%sea%') )) order by p.products_sort_order, pd.products_name order by p.products_sort_order, pd.products_name limit 10]
There were other error messages broadly similar.[23-Apr-2011 09:29:47] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/[path deleted]/zc_admin/includes/functions/extra_functions/recaptcha_functions.php:42) in /home/[pathe deleted]/includes/functions/sessions.php on line 114
[23-Apr-2011 09:29:47] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/[path deleted]/zc_admin/includes/functions/extra_functions/recaptcha_functions.php:42) in /home/path deleted]/zc_admin/includes/init_includes/init_templates.php on line 28
Problem 2
I decided to uninstall recaptcha. I renamed all the recaptcha installation files and restored the original files. Login, Contact Us and Search all produced blank pages. I finally removed completely all the renamed recaptcha files so that all files were original install files.
The error logs now show"
[23-Apr-2011 11:20:00] PHP Warning: require(includes/classes/recaptchalib.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/..../includes/modules/pages/advanced_search/header_php-recaptcha-broken.php on line 14
[23-Apr-2011 11:20:00] PHP Warning: require(includes/classes/recaptchalib.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/...../includes/modules/pages/advanced_search/header_php-recaptcha-broken.php on line 14
[23-Apr-2011 11:20:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/classes/recaptchalib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/..../includes/modules/pages/advanced_search/header_php-recaptcha-broken.php on line 14
After removing the files, Search and Advanced Search produce the SQL error output shown above when there is a search result hit. Advanced Search, the page displaying "At least one of the fields in the search form must be entered." and the page "There is no product that matches the search criteria." all appear correctly. Login now works as does Contact Us.
Problem 3
Breadcrumbs on three pages are still incorrect: Search, Contact Us, Login. Breadcrumbs show multiple instances:
andHome :: Advanced Search :: Advanced Search
I have tried searching on "SELECT DISTINCT p.products_image, p.products_quantity"... etc in Tools --> Developers Toolkit without success.Home :: Advanced Search :: Search Results :: Advanced Search :: Search Results
Any suggestions as to what's happening and what I've missed?
Thanks,
Ric


Reply With Quote

