Leave me not to access the results of a project

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

Moderator: And_One

User avatar
Piceo2k
.
Posts: 69
Joined: Wed Aug 14, 2013 7:57 pm
Joomleague version: 2.0.x
Location: Las Palmas
Contact:

Leave me not to access the results of a project

Postby Piceo2k » Sat Sep 19, 2015 3:26 pm

access attempt to put the result of a project and I release the following error attachment image
You do not have the required permissions to view the files attached to this post.
--
WebMaster CD Lomo Blanco SJA
Las Palmas

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

Re: Leave me not to access the results of a project

Postby Bluefox » Sat Sep 19, 2015 5:36 pm

@Piceo2k

am not sure what view you are referring to but will take a look.
Is it the matches view?

//
did you get the error with the 3.01 version at Github or are you getting it with the Gitlab version?
Help can be asked in the forum

User avatar
Piceo2k
.
Posts: 69
Joined: Wed Aug 14, 2013 7:57 pm
Joomleague version: 2.0.x
Location: Las Palmas
Contact:

Re: Leave me not to access the results of a project

Postby Piceo2k » Sat Sep 19, 2015 7:51 pm

Attached image of what I say, when I give this icon to give me the error that indicated, in the other projects fails. The version is Github
You do not have the required permissions to view the files attached to this post.
--
WebMaster CD Lomo Blanco SJA
Las Palmas

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

Re: Leave me not to access the results of a project

Postby Bluefox » Sat Sep 19, 2015 8:07 pm

The version is Github
ah, the thing is that it was fixed in the Gitlab version.

The problem is most likely due to the file: administrator/components/com_joomleague/helpers/joomleaguehelper.php and then function "GetMatchDate". The placeholders shouldn't be "x" as the date functions don't know what to do with it.

it's like

Code: Select all

/**
    * getMatchDate
    */
   public static function getMatchDate($match, $format = 'Y-m-d')
   {   
      return $match->match_date ? $match->match_date->format($format, true) : "xxxx-xx-xx";
   }

   
   /**
    * getMatchTime
    */
   public static function getMatchTime($match, $format = 'H:i')
   {
      return $match->match_date ? $match->match_date->format($format, true) : "xx:xx";
   }

   
   /**
    * getMatchStartTimestamp
    */
   public static function getMatchStartTimestamp($match, $format = 'Y-m-d H:i')
   {
      return $match->match_date ? $match->match_date->format($format, true) : "xxxx-xx-xx xx:xx";
   }




You can try to change it to below and see what happens then.

Code: Select all

/**
    * getMatchDate
    */
   public static function getMatchDate($match, $format = 'Y-m-d')
   {   
      return $match->match_date ? $match->match_date->format($format, true) : "0000-00-00";
   }

   
   /**
    * getMatchTime
    */
   public static function getMatchTime($match, $format = 'H:i')
   {
      return $match->match_date ? $match->match_date->format($format, true) : "00:00";
   }

   
   /**
    * getMatchStartTimestamp
    */
   public static function getMatchStartTimestamp($match, $format = 'Y-m-d H:i')
   {
      return $match->match_date ? $match->match_date->format($format, true) : "0000-00-00 00:00";
   }

Help can be asked in the forum

User avatar
Piceo2k
.
Posts: 69
Joined: Wed Aug 14, 2013 7:57 pm
Joomleague version: 2.0.x
Location: Las Palmas
Contact:

Re: Leave me not to access the results of a project

Postby Piceo2k » Sat Sep 19, 2015 8:25 pm

Thank you Thank you Thank you !!! fixed :)
--
WebMaster CD Lomo Blanco SJA
Las Palmas


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

Who is online

Users browsing this forum: No registered users and 2 guests