Sef Advance and PHP 5.3.X

14 years 3 months ago #5560 by Greg
Hello Emir

Just want to ask you if you could, make (at least) the plugin of Sef advance full compliant with PHP 5.3.x.

I mean that at each upgrade, I change this file /plugins/system/sef_advance.php

line 24:
if ( eregi( 'format=pdf', JRequest::getURI() ) ) {

by this
if ( preg_match( '/format=pdf/i', JRequest::getURI() ) ) {

And perhaps there's some other cases of ereg or eregi in the ioncube encoded part...but I can't see that, so I don't know ^^.

I also noticed that my log is full of:
"Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0" (whatever the requested uri)

But I've checked all the code with Eclipse, and there's already a conditional test for the magic quotes functions everywhere. And I've disabled it too in my php.ini since a long time.
So perhaps, I wonder if this warning  couldn't throw up from the ioncube part of Sef advance.
This could explain the "greater in Unknown on line 0" part ?

Anyway, this is just a simple question, not an affirmation  :)

Thanks by advance

Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43

Please Log in or Create an account to join the conversation.

14 years 3 months ago #5561 by Saka
It will be made compliant soon. In the meantime just turn deprecated messages off. As said before, they are not errors, just notices and should not be displayed on a production site anyway.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

14 years 3 months ago #5562 by Greg
Thanks,

yes I know they are not errors.

But on php5.3.x , even if you put that:
error_reporting = E_WARNING & E_ERROR & ~E_DEPRECATED & ~E_NOTICE

Warnings for depecated are still shows up because unfortunately E_DEPRECATED is included in E_WARNING.

Or I've missed something...

Joomla 3.4.3 / SefAdvance 1.8.0 / AJAX Register 1.8.8 / virtuemart 3.0.9.4 / PHP 5.4.43

Please Log in or Create an account to join the conversation.

14 years 3 months ago #5563 by Saka
error_reporting = E_ALL & ~E_DEPRECATED
works for me.

Also .htaccess
php_value error_reporting 22527

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

14 years 1 month ago #5745 by apoliemans
I installed v2.3.7 on J1.5.21. All was OK.
Next I upgraded to PHP 5.3 and now I get blank screens in the site, and in the SEF Advance panels.

I have tried all error reporting suggestions listed here.
Had to fallback to PHP5.2 to get site back up.
Must solve this before 01-Nov-2010 when my provider migrates to PHP 5.3.

It will be made compliant soon.


Can you please be more specific? Date or version? Does your site have a change log for SEF Advance?

Thanks

Please Log in or Create an account to join the conversation.

14 years 1 month ago #5746 by Saka
Activate the error reporting so you can see the errors and not just the blank screen.
Have you upgraded your ionCube loaders when you upgraded PHP? Because this is most likely your problem.

Regarding the notices in PHP 5.3 described in this thread, that's not big problem. SEF Advance works fine and won't cause errors, you just turn off the notices.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch