Error after create match

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 after create match

Postby chulega » Wed Sep 16, 2015 11:27 pm

Hello,
First of all... The Best Component for manager sports.
I already use for joomla 2.5, and now I'm triing for 3.0.
Everuthing goes well on instalations, club an team creation.
After create round and create firts game of that round, I have this error:
DateTime::__construct() expects parameter 1 to be string, object given
And canot open or sea any match.
I already try in other rounds, but it's always teh same error.

Any suggestion?

PHP Version 5.4.43
Joomla! Version Joomla! 3.4.4 Stable

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

Re: Error after create match

Postby Bluefox » Thu Sep 17, 2015 9:12 am

did you install the latest files?

It can happen if the timezone is null or passing an incorrect value to the date function.

Some info:

administrator/components/com_joomleague/models/matches.php, function getData.
This function is making a call to a function in joomleaguehelper called "convertMatchDateToTimezone". That function is looking for a project timezone but it's not checking if the value is null. If the value is null it will be taken as timezone but doing so can lead to problems.

default_massadd.php
in there we have a $date variable that's using timezone but there should be a check if the timezone isn't null.

default_matches
in here we're making a call to function "getMatchDate" in the helper but that function was returning text like "xx-xx-xxxx". when that value was returned it was passed to JHtml::calendar but that one doesn't know what to do with it so it would return an error.
Help can be asked in the forum

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

Re: Error after create match

Postby chulega » Thu Sep 17, 2015 7:08 pm

Time zone it's the same in Joomla and Joomleague project. The error keeps apearing. I send PM with login acess

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

Re: Error after create match

Postby chulega » Tue Sep 22, 2015 10:04 pm

Hello,

Version v3.0.0.e6c7e4d correct the problem

Thank you
:thx:


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

Who is online

Users browsing this forum: No registered users and 1 guest

cron