AudioJungle

freshizer - Custom WordPress Image Resizer with Cache

1706 posts YOU TOUCH IT YOU BUY IT
  • Bought between 50 and 99 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 250 000 and 1 000 000 dollars
freshface says

Thank you very much guys. Hehe, I would love to have a beer from you, anyway I’m from Europe, so I guess that I’ll have to wait a some amount of time to drink it :). Thank for the badge suggestion too, really appreciate it. I wrote it because I’m in middle of learning process of how to do the PHP stuff correctly. If you check the source code, you can see a lot of OOP concepts ( interfaces, abstract classes and other ), so it was a challenge for me. There will be a website about this project, when I’ll have a little more time.

I suppose from your reactions, that the script is 100% working ?

67 posts Be different!
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • United States
  • Has been a member for 2-3 years
  • Exclusive Author
UnitedThemes says

Hi,

we didn’t had the chance to do several tests on our client webpages, but there is one issue we already registered. Maybe it’s better to use

define('CACHE_TIME' , '604800');

instead of

CONST CACHE_TIME = 604800;

for the first 3 definitions in order to make it backward compatible for older PHP versions? I had one customer who was already not able to use the new version because of this.

Cheers UT

1706 posts YOU TOUCH IT YOU BUY IT
  • Bought between 50 and 99 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 250 000 and 1 000 000 dollars
freshface says

aaah, sry, I was using these constants inside of classes. After final minifying I just extract the lines and forgot to change to define.

thx for noticing

67 posts Be different!
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • United States
  • Has been a member for 2-3 years
  • Exclusive Author
UnitedThemes says

Hi,

no problem mate ;) But two other errors came up :crying:

Fatal error: Class 'fImgPathPredictor_Multisite' not found .... on line 1248

and

Fatal error: Can't inherit abstract function fIImgPathPredictor::predictPath() (previously declared abstract in fAImgPathPredictor) in ../wp-content/themes/aries/functions/freshizer.php on line 1222

Both customers are using PHP 5 .3+

For some reason these errors are not appearing in our test environment.

Best Regards UnitedThemes

1706 posts YOU TOUCH IT YOU BUY IT
  • Bought between 50 and 99 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 250 000 and 1 000 000 dollars
freshface says

Ahh, it was a small bug. I forgot to include this class when minifying. Anyway just added and uploaded the version to github. Testet with my local wp multisite installation and it works.

sorry for complications, cheers, freshface

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

Hey,

Hope u people would be fine!

Freshizer (v 1.5) is working fine except for one problem. One of my customer (using PHP 5 .2.17 on his server) is facing 500 internal server error whenever he opens his site. I’ve seen in ur latest theme ‘Edison’ comment section that some of your customers are also facing the same issue and you have updated the theme with fixed freshizer version.

I’ve also tried to follow ur instructions below …

A) Follow this short tutorial to fix it on your own http://pastebin.com/c58XA84f

B ) Download the whole freshizer file from here and replace your existing one with it http://pastebin.com/Eptvm3YC You can find that file in “edison/framework/engine/functions/freshizer.php”

But it does’nt seems to work in this case, customer is still facing 500 internal server error whenever he visits his site front end or even wordpress admin panel. And if i remove freshizer from my theme site opens correctly on his server. He has also sent me ‘error log’ of his server, which can be sent to you if required.

I hope you’ll find some time to look into the issue.

Cheers :)

1706 posts YOU TOUCH IT YOU BUY IT
  • Bought between 50 and 99 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 250 000 and 1 000 000 dollars
freshface says

Hi MsTrends!

would be great to see the log. 500 internal server error means that he is on production server, which is suppressing the errors. Could you please send me email through the contact form in my profile ?

thx and cheers, freshface

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

Hi MsTrends!

would be great to see the log. 500 internal server error means that he is on production server, which is suppressing the errors. Could you please send me email through the contact form in my profile ?

thx and cheers, freshface

Hey FreshFace,

I’ve just sent an email via ur profile with link to error log file.

Hope it helps :)

109 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
biyanpasau says

Hi Freshface,

I get the following error when trying to include freshizer.php in function.php

Fatal error: Can't inherit abstract function fIImgPathPredictor::predictPath() (previously declared abstract in fAImgPathPredictor) in C:\xampp\htdocs\wordpress\wp-content\themes\mythemename\inc\freshizer.php on line 1222
59 posts
  • Exclusive Author
  • Has been a member for 0-1 years
mailmilisku says

I’ll try. Thanks!

by
by
by
by
by