Error on layout

Status: under development
Branch: https://gitlab.com/joomleague/joomleague/tree/3.0.0

Moderator: And_One

chulega
Newbie
Posts: 10
Joined: Fri Dec 20, 2013 2:08 pm

Error on layout

Postby chulega » Sat Oct 03, 2015 12:07 pm

Hello,

I'm using Jommleague 3 and everything goes well on intallation.
I cant' use any layout ( results, ranking, team info..). I can use all modelues (that's the solution I find to solve the problem.
Everytime I try a new layout, I have errors.
For ex.
For club plan:
Fatal error: Can't use method return value in write context in /home/quintadeparamos/public_html/components/com_joomleague/models/clubplan.php on line 276

For match and results

Strict Standards: Declaration of JoomleagueModelResults::getDivision() should be compatible with JoomleagueModelProject::getDivision($id) in /home/quintadeparamos/public_html/components/com_joomleague/models/results.php on line 269

Strict Standards: Declaration of JoomleagueModelResults::getFavTeams() should be compatible with JoomleagueModelProject::getFavTeams() in /home/quintadeparamos/public_html/components/com_joomleague/models/results.php on line 269
Results & Classificação(ões): 1.ª Divisão 2015/16 AFPCE


Resultados da jornada - 1.ª Jornada (
Fatal error: Using $this when not in object context in /home/quintadeparamos/public_html/components/com_joomleague/helpers/html.php on line 204

The site is quintadeparamos.com
I create "test" item on top menu so it's possible to test.

Any sugestion?

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Error on layout

Postby Bluefox » Sat Oct 03, 2015 3:55 pm

@chulega

First a question: what version of Joomleague 3 are you using?
are you using the latetst files at Gitlab?
Help can be asked in the forum

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Error on layout

Postby Bluefox » Sat Oct 03, 2015 4:21 pm

will take a look at the front tomorrow, just to see if the problem can be replicated.

it's good possible that the problem won't be there anymore by that time as Aad is addressing the front-side and it's good possible that the problem is already fixed.
Help can be asked in the forum

chulega
Newbie
Posts: 10
Joined: Fri Dec 20, 2013 2:08 pm

Re: Error on layout

Postby chulega » Sat Oct 03, 2015 5:53 pm

HEllo,

I'm using last version v3.0.0.e6c7e4d and Joomla 3.4.4

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Error on layout

Postby Bluefox » Sat Oct 03, 2015 7:06 pm

Fatal error: Can't use method return value in write context in /home/quintadeparamos/public_html/components/com_joomleague/models/clubplan.php on line 276


this points to this line

Code: Select all

if (!empty($this->getTeams()))


The thing is that this way is not supported by PHP prior to version 5.5 (info) and we as developers are having a recent PHP version and doing so we can overlook things.

But to solve the problem we can change it to something like this

Code: Select all

$teams = $this->getTeam();
if (!empty($teams))




Fatal error: Using $this when not in object context in /home/quintadeparamos/public_html/components/com_joomleague/helpers/html.php on line 204


that points to

Code: Select all

echo JHtml::date($thisround->round_date_first .' UTC','COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE',
JoomleagueHelper::getTimezone($this->project, $this->overallconfig));


and there the problem is that the function was changed to a static function and doing so $this will have problems. Don't have solution for that problem now (can't test it out right now) but maybe you can try this


Code: Select all

$mdlProject = JModelLegacy::getInstance('project','JoomleagueModel');
$mdlProject->setProjectID($projectid);
$project = $mdlProject->getProject();

echo JHtml::date($thisround->round_date_first .' UTC','COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE',
JoomleagueHelper::getTimezone($project, $config->overallconfig));



The strict errors is something we are aware of and they will be solved but they are for now soft errors.
Help can be asked in the forum

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Error on layout

Postby Bluefox » Sun Oct 04, 2015 8:57 am

seems i can't edit posts,

but in the above message i meant

Code: Select all

$project = $mdlProject->getProject();

echo JHtml::date($thisround->round_date_first .' UTC','COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE',
JoomleagueHelper::getTimezone($project->timezone, $config->overallconfig));
Help can be asked in the forum

eu4ria
Newbie
Posts: 12
Joined: Tue Dec 10, 2013 12:19 pm

Re: Error on layout

Postby eu4ria » Thu Oct 08, 2015 10:12 pm

Bluefox wrote:seems i can't edit posts,

but in the above message i meant

Code: Select all

$project = $mdlProject->getProject();

echo JHtml::date($thisround->round_date_first .' UTC','COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE',
JoomleagueHelper::getTimezone($project->timezone, $config->overallconfig));


It shows now the same errore here
com_joomleague/helpers/html.php on line 214

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Error on layout

Postby Bluefox » Sat Oct 10, 2015 10:12 am

@eu4ria

maybe it helps if you install the latest files at Gitlab.
Help can be asked in the forum


Return to “3.0.22.57ae969-Blue (Joomla: 3.x)”

Who is online

Users browsing this forum: No registered users and 2 guests

cron