| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
HTML Catalog Cleaner - Removes excess white space | ||||
|
|
Thread Tools | Search this Thread |
#61
|
|||||||||
|
|||||||||
Need for SpEeD StrESS BuSTer ;)
Hi NuAlpha
While they are still developing the retail version of the Momentum Enerpak, maybe you would like a desktop tag/avitar like this: http://www.eotr.com/Light4Life/product.php?productid=189&cat=0&page=1 Or maybe your own design? (My preference is divided between: http://www.eotr.com/Light4Life/product.php?productid=295&cat=0&page=1 and http://www.eotr.com/Light4Life/product.php?productid=386&cat=0&page=1 ) For girls: http://www.eotr.com/Light4Life/product.php?productid=278&cat=0&page=1 To cybrgman I am using PHP 4.3.10 You may have some security issues with the older version. You may have to update yours. For everyone I wish the following: http://www.eotr.com/Light4Life/product.php?productid=193&cat=0&page=1 Regards Ing. Stephen Hatton
__________________
Apache Linux V1.3.33 PERL version: 5.8.0 PHP version: 4.3.11 MySQL version: 4.0.22-standard X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM |
|||||||||
#62
|
|||||||
|
|||||||
Quote:
I am suprised anyone is still using PHP 4.2.2. I would recommend upgrading to 4.3.10 if possible, if not...your solution is below. Add the following to a file named "file_get_contents.php" and put it in the same directory as the catalog cleaning script. Code:
Then add the following after the "register_shutdown_function" line: Code:
This has been pulled from the PEAR package PHP_Compat. And for anyone who is wondering, I am still working on version 2.0 of this script. Won't have the same title and cleaning the HTML catalog will be only a minor function compared to the overall feature pack I am adding to it. However, because this is taking so much work it could be one to two months down the line.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#63
|
|||||||
|
|||||||
Thanks NuAlpha worked great, sweet mod
I never really thought about upgrading PHP versions (I'm on a dedicated box w/ redhat 9 btw) What would be the benifit to upgrading versions .... if you don't mind my asking your opinion ?
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
#64
|
|||||||
|
|||||||
Quote:
More features, less bugs, better security.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#65
|
|||||||
|
|||||||
Hmmm, I applied this to my htaccess file in the store root:
Code:
which doubles the speed of my php pages (it needed it, even on a dedicated server!). With this line present, I get a blank page when I run the catalog cleaner. If I remove the line, it runs. I'm assuming there's a bit of conflict going on with this line in the script: Code:
It's OK to remove the htaccess line when I run the cleaner script and then reinstate it. but I'm wondering if this compression causes problems with X-Cart in general? I'm basing this notion on the fact that the cleaner script switches it off for a reason Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#66
|
|||||||
|
|||||||
I'm not sure why it would be showing a blank page unless output buffering is occuring and the the browser is just waiting for the script to show everything before loading anything. I have also experienced server 500 errors when I enter PHP values into the .htaccess files instead of a local php.ini file.
The catalog cleaner switches it off because is can cause problems with the Mozilla browser when trying to show a steady output of data.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#67
|
|||||||
|
|||||||
Quote:
Here is a fix for those of you seeing blank pages with items like catalog creation, cleaner mod, databse back up etc. Add the followig code to the following files and you will not have issues any longer. This code os to be added to the beginning of each of the php files. This will turn off the zlib compression that is causing the issues. If another file calls for the zlib compression, it will be used as normal via .htaccess file so no worries. I have had to do this myself due to these types of blank pages or what seemd to be lock ups. This has happened to me with the catalog creation, stock, custom and root. It has happened when trying to do a back up of database as well. Code:
I have not had the problem with the cleaner file, but it should be the same issues. Add this snippet of code after the <?php flag and it should make your problem disappear and all be normal. xcart root: admin: db_backup.php xcart root: admin: html_catalog.php xcart root: admin: html_catalog_root.php Hope this helps someone
__________________
vs 4.1.12 |
|||||||
#68
|
|||||||||
|
|||||||||
questions...
From the initial post of this mod to now, is there an update of the mod that includes all the changes / bug-fixes that have been talked about in this thread? I may have just missed it... if so, sorry.
And... does squishing up the code effect anything for SEO at all? -Scott
__________________
Version 4.0.12 |
|||||||||
#69
|
|||||||
|
|||||||
Re: questions...
Quote:
Better spidering, more speed / faster load time, yadda yaddda
__________________
vs 4.1.12 |
|||||||
#70
|
|||||||||
|
|||||||||
you forgot one thing... it strips the spaces in the titles.... wich is NOT good for seo people
http://www.electripoint.com/catalog/HiFi-bass-speakers-p-1-c-270064317.html look at the title, that is not good. Tho the mod itself is really good, speeds up the site alot..
__________________
----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se |
|||||||||
|
|||
X-Cart forums © 2001-2020
|