RSS Feeds on home page and Language Selection FIXED IN V3.3

Post Reply
RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

RSS Feeds on home page and Language Selection FIXED IN V3.3

Post by RWAP » Mon Aug 26, 2013 7:09 pm

Having upgraded to v3.2 and even with v3.2 running on a new server, the RSS feeds on the home page and the language selection are no longer working

I think that this may be linked to something in PHP v5.4, although I am not certain, as one of my sites actually works but is running on PHP 5.2

Can anyone confirm this issue on another server - the demo site also has the same problem - Enuuk are aware, but it is hard to pin down what is causing the issue...

RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: RSS Feeds on home page and Language Selection - FIXED BE

Post by RWAP » Tue Aug 27, 2013 7:45 am

The answer lies in class\Core\Contrroller.php

The lines

Code: Select all

        if(strpos($url,'?')){ 
            $url = strstr($url,'?',true); //removes "?xx=xx&..." part
        }
Should read:

Code: Select all

        if(strpos($url,'?')!==FALSE){
	        $tmpUrl=explode("?", $url);
    	    $url = array_shift($tmpUrl); //remove "?xx=xx&..."
        }
The first line was causing the issue.

The other change is required to enable v3.2 to work on PHP v5.2

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest