Post by motion2082 » Sun Jun 10, 2018 12:02 pm

OC 3.0.2.0

Hey guys,

Have a PHP Error in my Error Log and I have a feeling it's from my htaccess file

Code: Select all

2018-06-10 3:54:59 - PHP Warning:  Division by zero in /home/storage/cache/c1/c1ef03ef351d2b3bb4c3088ddc3caeadc2b95ed837f2df7a6136ba0e350ec75c.php on line 82
Copy of .htaccess

Code: Select all

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

# Prevent Directoy listing
Options +FollowSymlinks

RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.website.com.au/$1 [R=301,L]

# Custom Error Page 
ErrorDocument 404 /page404.html

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

RedirectMatch 301 (.*)summernote/summernote.js(.*) $1ckeditor/ckeditor.js$2
RedirectMatch 301 (.*)summernote/opencart.js(.*) $1ckeditor/opencart.js$2
RedirectMatch 301 (.*)summernote/summernote.css(.*) $1ckeditor/summernote.css$2
#RedirectMatch 301 (.*)journal2/lib/ckeditor/(.*) $1javascript/ckeditor/$2
RedirectMatch 301 (.*)summernote/summernote.min.js(.*) $1ckeditor/ckeditor.js$2
RedirectMatch 301 (.*)summernote/summernote-image-attributes.js(.*) $1ckeditor/summernote-image-attributes.js$2
#RedirectMatch 301 (.*)journal2/lib/require/(.*) $1javascript/lib/require/$2
#RedirectMatch 301 (.*)journal2/journal.js(.*) $1javascript/lib/journal.js$2
AddHandler application/x-httpd-php56 .php .php5 .php4 .php3

# GOOGLE PAGE SPEED MODS BELOW pddesign 3rd June 2018 

# Keep the TCP connection active one time instead of multiple times
# TN START ENABLE KEEP ALIVE
<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>
# TN END ENABLE KEEP ALIVE

# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE text/text
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon

# Remove browser bugs (only for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/

# cache gif, jpg, and png files for one week
<FilesMatch ".(gif|jpg|jpeg|png)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>

<IfModule mod_expires.c>
ExpiresActive on

# Your document html
ExpiresByType text/html "access plus 0 seconds"

# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"

# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"

# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"

# Media: images, video, audio
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType video/ogg "access plus 1 week"
ExpiresByType audio/ogg "access plus 1 week"
ExpiresByType video/mp4 "access plus 1 week"
ExpiresByType video/webm "access plus 1 week"

# HTC Files (css3pie)
ExpiresByType text/x-component "access plus 1 month"

# CSS and JavaScript
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-font-ttf "access plus 1 week"
ExpiresByType font/opentype "access plus 1 week"
ExpiresByType application/x-font-woff "access plus 1 week"
ExpiresByType image/svg+xml "access plus 1 week"
ExpiresByType application/vnd.ms-fontobject "access plus 1 week"

# Webfonts
ExpiresByType application/x-font-ttf "access plus 1 week"
ExpiresByType font/opentype "access plus 1 week"
ExpiresByType application/x-font-woff "access plus 1 week"
ExpiresByType image/svg+xml "access plus 1 week"
ExpiresByType application/vnd.ms-fontobject "access plus 1 week"
</IfModule>

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header unset ETag
FileETag None
</FilesMatch>


Active Member

Posts

Joined
Tue May 12, 2015 8:48 pm

Post by kestas » Sun Jun 10, 2018 3:25 pm

HI,
not from .htaccess
from this file: /home/storage/cache/c1/c1ef03ef351d2b3bb4c3088ddc3caeadc2b95ed837f2df7a6136ba0e350ec75c.php on line 82
Some extension cause this problem where are some formula with division.

Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: No registered users and 37 guests