Jump to content

 

tweaker

Member Since 03 Aug 2007
Offline Last Active Mar 18 2014 04:00 PM
-----

Topics I've Started

Images Not Loading On Import

04 February 2014 - 08:25 PM

I'm running 4.1.2 on a fresh installation of CS-Cart. I have my images and thumbnails in the folder /var/exim/backup/images/. When I do Import Data -> Products, then select my local file, tab delimited, none of my product images or thumbnails appear.

Example: I can access them directly with no problem.

http://50.62.78.221/...mages/50630.jpg

However the corresponding product has no image or thumbnail.

http://50.62.78.221/...ck-monster.html



My import data is the following (by example).

Set name Number Product code Language Category List price Price Status Quantity Weight Min Quantity Shipping freight Downloadable Ship downloadable Inventory tracking Out of stock actions Free shipping Feature comparison Zero price action Thumbnail Detailed image Product name Description Short description Meta keywords Meta description Search words Page title Features Secondary categories Store
THS 62 50630 en Standard///Theros Block///Theros 0.03 0.03 A 0 0 0 0 N N B S Y N R 50630-thumb.jpg 50630.jpg Sealock Monster Purchase Sealock Monster from the Theros set at Cardhoarder. Buy millions of MTGO cards, tickets, foils, including Theros and more. Sealock Monster MTGO Cardhoarder, Magic the Gathering Online Card - Sealock Monster [THS] Version: S[Normal]; Cardhoarder


I looked at my error_log file and I have a bunch of these statements:

[Tue Feb 04 13:29:43 2014] [warn] [client 68.4.133.21] mod_fcgid: stderr: PHP Warning: reset() expects parameter 1 to be array, null given in /var/www/vhosts/cardhoarder.com/httpdocs/app/schemas/exim/products.functions.php on line 468, referer: http://50.62.78.221/...ection=products

Don't know if there's any relevance to this problem or not.


Tweaker

Keep Alive

06 November 2013 - 05:53 PM

This is my full .htaccess file, modified utilizing the recommendations of gtmetrix.com.


DirectoryIndex index.html index.php

## ENABLE ETAGS

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Wed, 31 Dec 2014 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>


## ENABLE KEEP ALIVE

<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>


## ENABLE GZIP COMPRESSION

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

# compress text, HTML, JavaScript, CSS, and XML
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

# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>

# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>

# 2 HOURS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>


<IfModule mod_headers.c>
<IfModule mod_rewrite.c>
AddEncoding gzip .gz
RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
</IfModule>

<FilesMatch .*\.css.gz$>
ForceType text/css
Header set Content-Encoding: gzip
Header set Cache-control: private
</FilesMatch>

<FilesMatch .*\.js.gz$>
ForceType text/javascript
Header set Content-Encoding: gzip
Header set Cache-control: private
</FilesMatch>

<FilesMatch "\.(ttf|ttc|otf|eot|woff|css)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
# Please note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
# RewriteBase /
Options -MultiViews

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteRule api/(.*)$ api.php?_d=$1&ajax_custom=1 [L,QSA]

RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)\/(.*)$ $2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]

</IfModule>


I'm being notified that I need to use persistent connections (keep alive) with a score of 85/100 with the following errors noted:Is there something I have configured wrong on my .htaccess file? This is a stock 4.0.3 with demo, fresh installation.

Thomas

API ReadOnly?

06 November 2013 - 02:57 AM

How do I give someone access to the API but ReadOnly? I don't want to enable someone for API access and they instantly have the ability to start changing my prices and inventory.

Thomas

Buy Together howto?

29 October 2013 - 08:09 PM

Does anyone in the CS-Cart community use combined products feature? I'd love to see how this is actually done.

Thomas

Eliminate render-blocking JavaScript and CSS in above-the-fold content

28 October 2013 - 03:15 PM


Can someone explain to me what this means and if it can be fixed?


Your page has 1 blocking script resources and 1 blocking CSS resources. This causes a delay in rendering your page.


  • None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
  • Remove render-blocking JavaScript:
    • http://dev.cardhoarder.com/var/cache/misc/statics/js/tygh/scripts-eacb35dd2359e399bd2c1e8edc3d6ea01382472622.js?ver=4.0.2
  • Optimize CSS Delivery of the following:
    • http://dev.cardhoarder.com/var/cache/misc/statics/design/themes/basic/css/standalone.54d7


Thomas