TagMeta and PHP 5.4/5.5
-
Dawn
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
10 years 7 months ago - 10 years 7 months ago #2332
by Dawn
Hi,
First of all thanks a lot for your great plugin. It's very very usefull. I've got a tiny problem now: My hoster forces all clients to move to PHP 5.4 and your plugin drops a warning at every page.
Strict Standards: Only variables should be assigned by reference in /home/sitename/public_html/plugins/system/tagmeta/tagmeta.php on line 618
Is it possible to fix this? Or should I do this myself because the developement is stopped?
Best regards and thanks a lot again,
Dawn
Last edit: 10 years 7 months ago by Dawn.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 7 months ago - 10 years 7 months ago #2333
by admin
Hi,
can you tell me which version are you using or just post me the line 618 of code?
Probably it is already fixed in the last version (not released yet) because I'm working on a 5.4 with all notification enabled...
Kind regards,
Luigi
Last edit: 10 years 7 months ago by admin.
Please Log in or Create an account to join the conversation.
-
Dawn
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
10 years 7 months ago #2334
by Dawn
I'm using Version 1.7.1.
Line 618 is the first line (getDocument) of:
public function onAfterDispatch()
{
$document =& JFactory::getDocument();
$docType = $document->getType();
// Get the application object
$app = JFactory::getApplication();
// Make sure we are not in the administrator
if ( $app->isAdmin() ) return;
// Only site pages that are html docs
if ( JRequest::getBool('no_html') === true ) return;
// Set sitename
$sitename = $app->getCfg('sitename');
$currenturi_encoded = self::getRequestURI( $this->params->get('redirect', 0) ); // Raw (encoded): with %## chars
// Remove the base path
$basepath = trim($this->params->def('basepath', ''), ' /'); // Decoded: without %## chars (now you can see spaces, cyrillics, ...)
$basepath = urlencode(utf8_encode($basepath)); // Raw (encoded): with %## chars
$basepath = str_replace('%2F', '/', $basepath);
$basepath = str_replace('%3A', ':', $basepath)
....
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 7 months ago #2335
by admin
Ah, ok.
Just change removing &:
$document = JFactory::getDocument();
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
Dawn
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 6
-
Thank you received: 0
-
-
10 years 7 months ago #2336
by Dawn
Thanks a lot for your very fast reply Luigi, this fixed my problem. Have a nice day!
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 7 months ago #2337
by admin
Thanks to you.
I will release fixed version as soon as possible. I am just busy with my new extension but is almost ready to be released, and then I will update ReDJ and Tag Meta too.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds