Jump to content

URL Rewrite, Friendly URL, and .htaccess problem after 1.5 upgrade


Recommended Posts

Hello everyone,

Yall have been very helpful to me in the past and I hope you can help me now.

 

Ever since I upgraded my store to 1.5, my clients and I have had an issue pulling up categories when clicking them.

 

I believe it's an issue with my htaccess as I have an error beside the button to turn on Friendly URL's that says...

"URL rewriting (mod_rewrite) is not active on your server. If you want to use Friendly URLs you must activate this mod."

 

My webhost has told me the URL Rewriting is on, so it is probably something to do with my htaccess file.

When I click a category name, it pulls up a blank page without any error readout, even after turning on debug in the config.php file.

 

Can you please help?

 

Thanks!

-Dave

www.smallpetfeeders.com

 

My htaccess file...

 

# For security reasons, Option followsymlinks cannot be overridden.

#Options FollowSymLinks

Options SymLinksIfOwnerMatch

 

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE

# http://www.ps150shop.com - http://www.ps150shop.com/forums

 

 

<IfModule mod_rewrite.c>

# URL rewriting module activation

RewriteEngine on

 

# URL rewriting rules

RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L]

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L]

RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L]

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg [L]

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$1$2$3.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L]

RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L]

RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [L]

RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]

RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L]

RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L]

RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L]

RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L]

RewriteRule ^page-not-found$ /404.php [QSA,L]

RewriteRule ^address$ /address.php [QSA,L]

RewriteRule ^addresses$ /addresses.php [QSA,L]

RewriteRule ^authentication$ /authentication.php [QSA,L]

RewriteRule ^best-sales$ /best-sales.php [QSA,L]

RewriteRule ^cart$ /cart.php [QSA,L]

RewriteRule ^contact-us$ /contact-form.php [QSA,L]

RewriteRule ^discount$ /discount.php [QSA,L]

RewriteRule ^guest-tracking$ /guest-tracking.php [QSA,L]

RewriteRule ^order-history$ /history.php [QSA,L]

RewriteRule ^identity$ /identity.php [QSA,L]

RewriteRule ^manufacturers$ /manufacturer.php [QSA,L]

RewriteRule ^my-account$ /my-account.php [QSA,L]

RewriteRule ^new-products$ /new-products.php [QSA,L]

RewriteRule ^order$ /order.php [QSA,L]

RewriteRule ^order-follow$ /order-follow.php [QSA,L]

RewriteRule ^quick-order$ /order-opc.php [QSA,L]

RewriteRule ^order-slip$ /order-slip.php [QSA,L]

RewriteRule ^password-recovery$ /password.php [QSA,L]

RewriteRule ^prices-drop$ /prices-drop.php [QSA,L]

RewriteRule ^search$ /search.php [QSA,L]

RewriteRule ^sitemap$ /sitemap.php [QSA,L]

RewriteRule ^stores$ /stores.php [QSA,L]

RewriteRule ^supplier$ /supplier.php [QSA,L]

</IfModule>

 

# Catch 404 errors

ErrorDocument 404 /404.php

 

<IfModule mod_expires.c>

ExpiresActive On

ExpiresByType image/gif "access plus 1 month"

ExpiresByType image/jpeg "access plus 1 month"

ExpiresByType image/png "access plus 1 month"

ExpiresByType text/css "access plus 1 week"

ExpiresByType text/javascript "access plus 1 week"

ExpiresByType application/javascript "access plus 1 week"

ExpiresByType application/x-javascript "access plus 1 week"

ExpiresByType image/x-icon "access plus 1 year"

</IfModule>

 

FileETag INode MTime Size

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE text/javascript

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

</IfModule>

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# http://www.prestashop.com - http://www.prestashop.com/forums

 

<IfModule mod_rewrite.c>

 

# Disable Multiviews

Options -Multiviews

 

RewriteEngine on

 

RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L]

 

# Images

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ img/p/$1-$2$3$4.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9]+)\-([0-9]+)(-[0-9]+)?/.+\.jpg$ img/p/$1-$2$3.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$1$2$3.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$1$2$3$4.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-\.*]*)(-[0-9]+)?/.+\.jpg$ img/c/$1$2$3.jpg [L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ img/c/$1$2.jpg [L]

 

# Dispatcher

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^.*$ - [NC,L]

RewriteCond %{HTTP_HOST} ^shop.smallpetfeeders.com$

RewriteRule ^.*$ index.php [NC,L]

</IfModule>

 

<IfModule mod_expires.c>

ExpiresActive On

ExpiresByType image/gif "access plus 1 month"

ExpiresByType image/jpeg "access plus 1 month"

ExpiresByType image/png "access plus 1 month"

ExpiresByType text/css "access plus 1 week"

ExpiresByType text/javascript "access plus 1 week"

ExpiresByType application/javascript "access plus 1 week"

ExpiresByType application/x-javascript "access plus 1 week"

ExpiresByType image/x-icon "access plus 1 year"

</IfModule>

 

FileETag INode MTime Size

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE text/javascript

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

</IfModule>

 

#If rewrite mod isn't enabled

ErrorDocument 404 /index.php?controller=404

 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

 

# protecttpl

<Files ~ "\.tpl$">

Order allow,deny

Deny from all

</Files>

Link to comment
Share on other sites

Oh wow... big issue...

 

PHP error_log:

/home6/smallpet/public_html/ps150/admin150/error_log: [01-Oct-2012 15:49:11] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 15:50:30] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 15:50:44] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:21:54] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:22:03] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:22:41] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:23:02] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:23:54] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:28:01] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:28:10] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:28:44] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:32:20] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:32:56] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [01-Oct-2012 20:33:03] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [02-Oct-2012 02:54:21] PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home6/smallpet/public_html/ps150/modules/blocktestimonial/blocktestimonial.php on line 488 [02-Oct-2012 01:21:04] PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in /home6/smallpet/public_html/ps150/cache/class_index.php on line 599 [02-Oct-2012 18:04:41] PHP Warning: str_repeat() [<a href='function.str-repeat'>function.str-repeat</a>]: Second argument has to be greater than or equal to 0 in /home6/smallpet/public_html/ps150/cache/smarty/compile/675f175670d9895767ec3725834e9bd513092c28.file.form.tpl.php on line 369 [02-Oct-2012 18:04:51] PHP Warning: str_repeat() [<a href='function.str-repeat'>function.str-repeat</a>]: Second argument has to be greater than or equal to 0 in /home6/smallpet/public_html/ps150/cache/smarty/compile/675f175670d9895767ec3725834e9bd513092c28.file.form.tpl.php on line 369 [02-Oct-2012 18:05:41] PHP Warning: str_repeat() [<a href='function.str-repeat'>function.str-repeat</a>]: Second argument has to be greater than or equal to 0 in /home6/smallpet/public_html/ps150/cache/smarty/compile/675f175670d9895767ec3725834e9bd513092c28.file.form.tpl.php on line 369 [02-Oct-2012 18:06:31] PHP Warning: str_repeat() [<a href='function.str-repeat'>function.str-repeat</a>]: Second argument has to be greater than or equal to 0 in /home6/smallpet/public_html/ps150/cache/smarty/compile/675f175670d9895767ec3725834e9bd513092c28.file.form.tpl.php on line 369 [02-Oct-2012 21:31:53] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [02-Oct-2012 21:32:02] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [02-Oct-2012 21:32:11] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658 [02-Oct-2012 22:58:03] PHP Warning: require_once(/home6/smallpet/public_html/ps150/modules/autoupgrade/autoupgrade.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home6/smallpet/public_html/ps150/controllers/admin/AdminModulesController.php on line 1008 [02-Oct-2012 22:58:03] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home6/smallpet/public_html/ps150/modules/autoupgrade/autoupgrade.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home6/smallpet/public_html/ps150/controllers/admin/AdminModulesController.php on line 1008 [02-Oct-2012 22:38:15] PHP Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home6/smallpet/public_html/ps150/cache/class_index.php on line 189 [02-Oct-2012 22:38:15] PHP Parse error: syntax error, unexpected $end, expecting ')' in /home6/smallpet/public_html/ps150/cache/class_index.php on line 189 [03-Oct-2012 11:53:35] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/followup/followup.php on line 208 [03-Oct-2012 23:51:07] PHP Warning: require_once(/home6/smallpet/public_html/ps150/modules/autoupgrade/autoupgrade.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home6/smallpet/public_html/ps150/controllers/admin/AdminModulesController.php on line 1008 [03-Oct-2012 23:51:07] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home6/smallpet/public_html/ps150/modules/autoupgrade/autoupgrade.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home6/smallpet/public_html/ps150/controllers/admin/AdminModulesController.php on line 1008 /home6/smallpet/public_html/ps150/modules/ccpayment/error_log: [02-Oct-2012 10:15:37] PHP Warning: Missing argument 1 for Smarty_Internal_Data::assign(), called in /home6/smallpet/public_html/ps150/modules/tabfbcomment/tabfbcomment.php on line 150 and defined in /home6/smallpet/public_html/ps150/tools/smarty/sysplugins/smarty_internal_data.php on line 54 [02-Oct-2012 10:15:38] PHP Warning: Missing argument 1 for Smarty_Internal_Data::assign(), called in /home6/smallpet/public_html/ps150/modules/tabfbcomment/tabfbcomment.php on line 157 and defined in /home6/smallpet/public_html/ps150/tools/smarty/sysplugins/smarty_internal_data.php on line 54 [02-Oct-2012 14:46:15] PHP Warning: Missing argument 1 for Smarty_Internal_Data::assign(), called in /home6/smallpet/public_html/ps150/modules/tabfbcomment/tabfbcomment.php on line 150 and defined in /home6/smallpet/public_html/ps150/tools/smarty/sysplugins/smarty_internal_data.php on line 54 [02-Oct-2012 14:46:34] PHP Warning: Missing argument 1 for Smarty_Internal_Data::assign(), called in /home6/smallpet/public_html/ps150/modules/tabfbcomment/tabfbcomment.php on line 157 and defined in /home6/smallpet/public_html/ps150/tools/smarty/sysplugins/smarty_internal_data.php on line 54 [02-Oct-2012 14:48:11] PHP Warning: Missing argument 1 for Smarty_Internal_Data::assign(), called in /home6/smallpet/public_html/ps150/modules/tabfbcomment/tabfbcomment.php on line 150 and defined in /home6/smallpet/public_html/ps150/tools/smarty/sysplugins/smarty_internal_data.php on line 54 [02-Oct-2012 14:48:30] PHP Warning: Missing argument 1 for Smarty_Internal_Data::assign(), called in /home6/smallpet/public_html/ps150/modules/tabfbcomment/tabfbcomment.php on line 157 and defined in /home6/smallpet/public_html/ps150/tools/smarty/sysplugins/smarty_internal_data.php on line 54 [02-Oct-2012 14:48:34] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home6/smallpet/public_html/ps150/tools/tcpdf/tcpdf.php on line 17592 /home6/smallpet/public_html/ps150/modules/cron/error_log: [02-Oct-2012 10:13:25] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [02-Oct-2012 10:35:50] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [02-Oct-2012 12:00:15] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [02-Oct-2012 12:35:36] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 11:22:51] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 11:48:04] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 11:51:13] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 11:55:54] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 13:14:51] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 13:16:28] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 13:22:26] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 22:42:38] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 22:42:38] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 22:51:16] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 23:22:29] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 /home6/smallpet/public_html/ps150/modules/paypal/express_checkout/error_log: [02-Oct-2012 23:10:28] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [02-Oct-2012 23:10:28] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 /home6/smallpet/public_html/ps150/modules/paypal/error_log: [03-Oct-2012 01:32:59] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [03-Oct-2012 01:32:59] PHP Fatal error: Class 'BWDisplay' not found in /home6/smallpet/public_html/ps150/modules/paypal/about.php on line 37 [04-Oct-2012 07:32:35] PHP Fatal error: Class 'BWDisplay' not found in /home6/smallpet/public_html/ps150/modules/paypal/about.php on line 37 /home6/smallpet/public_html/ps150/modules/followup/error_log: [03-Oct-2012 11:20:27] PHP Parse error: syntax error, unexpected T_VARIABLE in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 10 [03-Oct-2012 11:20:31] PHP Parse error: syntax error, unexpected T_VARIABLE in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 10 [03-Oct-2012 13:21:27] PHP Fatal error: Using $this when not in object context in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 14 [03-Oct-2012 13:21:58] PHP Fatal error: Using $this when not in object context in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 14 [03-Oct-2012 13:24:24] PHP Fatal error: Using $this when not in object context in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 14 [03-Oct-2012 13:24:27] PHP Fatal error: Using $this when not in object context in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 14 [03-Oct-2012 13:25:52] PHP Fatal error: Using $this when not in object context in /home6/smallpet/public_html/ps150/modules/followup/test.php on line 14 [03-Oct-2012 13:40:13] PHP Fatal error: Uncaught Unknown column 'id_cart' in 'where clause'<br /><br /><pre> SELECT * FROM `ps_fedex_cache` WHERE `id_cart` = 2729 AND `id_carrier` = 136 AND `hash` = '1e5645530a5ed5d21e6af4075ffcba60' LIMIT 1</pre> thrown in /home6/smallpet/public_html/ps150/classes/db/Db.php on line 606 [03-Oct-2012 13:41:52] PHP Fatal error: Uncaught Unknown column 'id_cart' in 'where clause'<br /><br /><pre> SELECT * FROM `ps_fedex_cache` WHERE `id_cart` = 2729 AND `id_carrier` = 136 AND `hash` = '1e5645530a5ed5d21e6af4075ffcba60' LIMIT 1</pre> thrown in /home6/smallpet/public_html/ps150/classes/db/Db.php on line 606 /home6/smallpet/public_html/ps150/error_log: #0 /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php(1748): SoapClient->SoapClient('/home6/smallpet...', Array) #1 /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php(1568): FedexCarrier->getFedexShippingCost(Array) #2 /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php(1623): FedexCarrier->getWebserviceShippingCost(Array) #3 /home6/smallpet/public_html/ps150/classes/Cart.php(2631): FedexCarrier->getOrderShippingCost(Object(Cart), 22.97) #4 /home6/smallpet/public_html/ps150/classes/Carrier.php(568): CartCore->getPackageShippingCost(140, false) #5 /home6/smallpet/public_html/ps150/classes/Carrier.php(1191): CarrierCore::getCarriersForOrder(9, Array, Object(Cart)) #6 /home6/smallpet/public_html/ps150/classes/Cart.php(1642): CarrierCore::getAvailab in /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php on line 1748 [04-Oct-2012 16:02:02] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16130 bytes) in /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php on line 1786 [04-Oct-2012 16:02:05] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:02:12] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:02:17] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:02:41] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437 [04-Oct-2012 16:03:51] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home6/smallpet/public_html/ps150/cache/smarty/compile/72566a84c146531ab48165e9757cd82b416b4e0d.file.shopping-cart.tpl.php on line 146 [04-Oct-2012 16:04:38] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home6/smallpet/public_html/ps150/cache/smarty/compile/72566a84c146531ab48165e9757cd82b416b4e0d.file.shopping-cart.tpl.php on line 146 [04-Oct-2012 16:05:14] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 79 bytes) in /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php on line 1748 [04-Oct-2012 16:05:14] PHP Fatal error: Uncaught SoapFault exception: [WSDL] Allowed memory size of 67108864 bytes exhausted (tried to allocate 79 bytes) in /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php:1748 Stack trace: #0 /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php(1748): SoapClient->SoapClient('/home6/smallpet...', Array) #1 /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php(1568): FedexCarrier->getFedexShippingCost(Array) #2 /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php(1623): FedexCarrier->getWebserviceShippingCost(Array) #3 /home6/smallpet/public_html/ps150/classes/Cart.php(2631): FedexCarrier->getOrderShippingCost(Object(Cart), 2.99) #4 /home6/smallpet/public_html/ps150/classes/Cart.php(1859): CartCore->getPackageShippingCost('140', false, Object(Country), Array) #5 /home6/smallpet/public_html/ps150/classes/Cart.php(2216): CartCore->getDeliveryOptionList(NULL, true) #6 /home6/smallpet/public_html/ps150/controllers/front/ParentOrderController. in /home6/smallpet/public_html/ps150/modules/fedexcarrier/fedexcarrier.php on line 1748 [04-Oct-2012 16:06:09] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home6/smallpet/public_html/ps150/cache/smarty/compile/72566a84c146531ab48165e9757cd82b416b4e0d.file.shopping-cart.tpl.php on line 146 [04-Oct-2012 16:06:29] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:06:43] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:07:36] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:08:34] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/modules/blocklayered/blocklayered.php on line 2608 [04-Oct-2012 16:10:22] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home6/smallpet/public_html/ps150/cache/smarty/compile/72566a84c146531ab48165e9757cd82b416b4e0d.file.shopping-cart.tpl.php on line 146

Link to comment
Share on other sites

MAIN error_log:

[Thu Oct 04 14:32:23 2012] [error] [client 187.83.108.175] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Thu Oct 04 14:32:23 2012] [error] [client 187.83.108.175] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [error] [client 91.226.89.29] sendmail: No recipients found, aborting...

[Thu Oct 04 14:32:25 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

[Thu Oct 04 14:32:38 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

[Thu Oct 04 14:32:43 2012] [error] [client 99.8.180.185] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:32:43 2012] [error] [client 99.8.180.185] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:32:43 2012] [error] [client 99.8.180.185] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:32:43 2012] [error] [client 99.8.180.185] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:32:43 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

[Thu Oct 04 14:32:49 2012] [error] [client 66.249.73.140] Not a JPEG file: starts with 0x47 0x49

[Thu Oct 04 14:32:49 2012] [error] [client 66.249.73.140] Not a JPEG file: starts with 0x47 0x49

[Thu Oct 04 14:32:49 2012] [error] [client 66.249.73.140] Not a JPEG file: starts with 0x47 0x49

[Thu Oct 04 14:33:07 2012] [error] [client 67.231.196.11] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:33:07 2012] [error] [client 67.231.196.11] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:33:16 2012] [error] [client 157.55.32.186] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Thu Oct 04 14:33:16 2012] [error] [client 157.55.32.186] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Link to comment
Share on other sites

New logs...

 

MAIN error_log:

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:26 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:29 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:30 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:30 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:30 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:30 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:34 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:35 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:35 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

[Thu Oct 04 14:38:35 2012] [error] [client 162.129.248.3] Invalid method in request \x16\x03\x01

[Thu Oct 04 14:38:35 2012] [error] [client 162.129.248.3] File does not exist: /usr/local/apache/htdocs/501.shtml

Link to comment
Share on other sites

Hi I had some fault very similar but not quite and it turned out to be the Paypal module that I had enabled to run the mobile add-on theme.

 

As soon as I uninstalled the Paypal module---vupti problem solved.

 

So I think that would be worth a try in your case too.( that is if you have it installed)

Link to comment
Share on other sites

[01-Oct-2012 15:49:11] PHP Warning: Invalid argument supplied for foreach() in /home6/smallpet/public_html/ps150/classes/Product.php on line 1658

 

Found this error. This is line 1658 in Product.php...

 

/**

* Delete product attributes impacts

*

* @return Deletion result

*/

public function deleteAttributesImpacts()

{

return Db::getInstance()->execute(

'DELETE FROM `'._DB_PREFIX_.'attribute_impact`

WHERE `id_product` = '.(int)$this->id

);

}

 

/**

* Delete product features

Link to comment
Share on other sites

  • 5 weeks later...

I fixed the same problem. Not sure how or why it worked, but I clicked to Cache in the Smarty section of Advanced Parameters > Performance and saved it. Once I checked my site I turned it back off to work on it and it kept functioning.

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Hi, I have a similar problem, but quite different. After updating to 1.5 version (still in local server), the friendly url doesn't work properly, that is, initially I could not even see the product images, so I disabled and enabled the friendly url and the images appear.

The problem is the links to products, every product without category (only home) have in the url the "home":

localhost/myshop/home/product1.html

the right url should be without "home": localhost/myshop/product1.html

 

I have also tried to delete and re-create the .htaccess and clean the cache, but nothing change, the strange thing is that if i digit the url without "home" (or with anything else, i.e. localhost/myshop/xxxxx/product1.html) it work.

 

Any suggestion?

 

Thanks in advance

P.S. I'm following the manual step (http://doc.prestashop.com/pages/viewpage.action?pageId=5374295)

Link to comment
Share on other sites

  • 2 weeks later...

I'm facing the same problem.

 

The redirect loop problem and also previous product images are not showing anymore at FO.

 

Any idea how to solve this?

 

 

 

Updated:

Solve the redirect loop by disable "automatically redirect to canonical URL".

Then again, the product images still not showing tho. :/

 

 

 

2nd Update:

long url. some of my links happen to have long url.

for example, about-us page suppose to be about us but it shows

"http://miaowafupafu.com/index.php?id_cms=4&controller=cms"

Any idea why?

Edited by mainoknok (see edit history)
Link to comment
Share on other sites

  • 4 months later...

Help me pls...

I enabled my friendly url then my back office always redirect to an error "Manufacturer does not exist" so that i cant access my admin anymore when i edit .htaccess code and remove the line: RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L], the back office works fine but it always back when i do changes on SEO & URLS meta tags.

Link to comment
Share on other sites

Thanks for your reply Benjamin!

 

When i generate .htaccess i found it to my public_html folder then i copy, paste it to admin folder...

But when i edit any of my friendly url in Preferences->SEO & URLS and compare the two .htaccess code, the .htaccess inside admin folder does NOT changed and my original .htaccess changed.

my question is why do the admin folder needs .htaccess?

Link to comment
Share on other sites

  • 1 year later...

Good Evening,

 

I also lost a lot of time trying to understand why url rewriting (friendly url) was not working in all versions that i've tested (1.5.4.1 ; 1.5.6.2 and 1.6.0.11). The reason is simple:

 

... Windows hosting platform ...

 

Changed to Linux and worked well.

 

Im my opinion: when you create a website in windows server it's created a web.config file that somehow is going to mess with .htaccess

 

I installed a clean 1.5.4.1 version, changed the url rewriting to active and works like a charm.

 

Other thing that i changed was set mysql db to Innodb

 

Hope that helped,

 

Cheers

Edited by vjnunes (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...