Fatal error: Call to a member function getPoints() on a non-

Status: Finished
Branch: https://gitlab.com/joomleague/joomleague/tree/1.6.0

Moderator: And_One

User avatar
farzad123
.
Posts: 171
Joined: Thu Nov 29, 2007 9:18 pm

Fatal error: Call to a member function getPoints() on a non-

Postby farzad123 » Thu Jun 21, 2012 11:02 pm

hi ,
i get this error on NextMatch page:

Code: Select all

Fatal error: Call to a member function getPoints() on a non-object in /home/*****/public_html/***/components/com_joomleague/views/nextmatch/tmpl/default_stats.php on line 191


what is the matter ?

is this bug ?

-------------------
JoomLeague - v1.6.0.9826ddb
Joomla 1.5.26

User avatar
farzad123
.
Posts: 171
Joined: Thu Nov 29, 2007 9:18 pm

Re: Fatal error: Call to a member function getPoints() on a

Postby farzad123 » Sat Jun 23, 2012 8:47 am

any help ?
Joomla version : 1.5.26
Joomleague version: 1.6.0.9826ddb

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Fatal error: Call to a member function getPoints() on a

Postby timoline » Sat Jun 23, 2012 9:49 am

how to reproduce?
Joomla 1.5.x
Joomleague 1.5.....latest git version

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Fatal error: Call to a member function getPoints() on a

Postby timoline » Sat Jun 23, 2012 1:19 pm

I have a feeling it has something to do with divisions...I'm not sure thats implemented in nextmatch view
Joomla 1.5.x
Joomleague 1.5.....latest git version

User avatar
farzad123
.
Posts: 171
Joined: Thu Nov 29, 2007 9:18 pm

Re: Fatal error: Call to a member function getPoints() on a

Postby farzad123 » Sat Jun 23, 2012 1:40 pm

First Please remove my site link from your post. thanks.

what do you exactly want to know about my project ?

Code: Select all

Project Name: Euro 2012
Project type : Divisions League
Master Template : Independent Template
Joomla Server Timezone, Joomleague Timezone , Project Time zone : +3.5
Automatic current matchday : Based on round start
Change current matchday after (min) : 2800
Over time [OT] or penalties possible {SO]? yes


and Next match template set attached.
jl1.jpg

jl2.jpg

jl3.jpg


and in Advanced Options:
Expiry time for current match? 0
You do not have the required permissions to view the files attached to this post.
Joomla version : 1.5.26
Joomleague version: 1.6.0.9826ddb

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Fatal error: Call to a member function getPoints() on a

Postby timoline » Sat Jun 23, 2012 1:45 pm

I have a feeling it has something to do with divisions...I'm not sure thats implemented in nextmatch view
Joomla 1.5.x
Joomleague 1.5.....latest git version

User avatar
farzad123
.
Posts: 171
Joined: Thu Nov 29, 2007 9:18 pm

Re: Fatal error: Call to a member function getPoints() on a

Postby farzad123 » Sat Jun 23, 2012 1:59 pm

timoline wrote:I have a feeling it has something to do with divisions...I'm not sure thats implemented in nextmatch view


yes it is true , this is because 2 teams of different divisions .
Joomla version : 1.5.26
Joomleague version: 1.6.0.9826ddb

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Fatal error: Call to a member function getPoints() on a

Postby timoline » Sat Jun 23, 2012 2:15 pm

exactly, those 2 teams are from different divisions

But please add it to the bugtracker
Joomla 1.5.x
Joomleague 1.5.....latest git version

User avatar
farzad123
.
Posts: 171
Joined: Thu Nov 29, 2007 9:18 pm

Re: Fatal error: Call to a member function getPoints() on a

Postby farzad123 » Sat Jun 23, 2012 4:58 pm

i can fix it , this is very little problem,

in models folder edit nextmatch.php

on line 133 , we have :

Code: Select all

$this->divisionid = $team1->division_id;


replace with :

Code: Select all

$this->division_id = $team1->division_id;


yes , only one underline ;)

but now we have another problem with current ranking in H2H stats.
it shows rank of team for ranking of all divisions.
if i can fix it , i will post it here.
Joomla version : 1.5.26
Joomleague version: 1.6.0.9826ddb


Return to “1.6.0-nathalie (Joomla: 1.5.x) - not supported”

Who is online

Users browsing this forum: No registered users and 2 guests