-
AuthorPosts
-
September 20, 2014 at 12:04 am #201470
Hi there,
I just uploaded and installed the JA Playmag quickstart for Joomla 2.5. But I seem to be getting an quite annoying error message from time to time, when loading the front-end website. Below there is a screenshot of the problem:Does anybody know why this is happening and how I can solve this ?
Thank you for your time
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 22, 2014 at 9:11 am #550361I could not duplicate that bug at my end, you can pm me URL of your site, admin login and FTP credentials. I will help you to check it further
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 24, 2014 at 8:06 am #550599I could not access back-end of your site but you can try to fix this bug with my solution below
Open templates/ja_playmag/templateHelper.php file
Find and change
$yt = $media->children('http://gdata.youtube.com/schemas/2007');
$attrs = $yt->duration->attributes();
$obj->length = $attrs['seconds'];
To
$yt = $entry->xpath('//yt:duration[@seconds]');
$obj->length = (int) $yt[0]->attributes()->seconds;Let me know if it helps
September 24, 2014 at 8:18 pm #550660Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 25, 2014 at 6:47 am #550692How can I see this bug on your site? I just tested it over 10times but I could not find it on your site.
September 25, 2014 at 8:02 pm #550778I have fixed the problem, thats why you cant see it anymore. I just simply deleted these lines:
$yt = $media->children('http://gdata.youtube.com/schemas/2007');
$attrs = $yt->duration->attributes();
$obj->length = $attrs['seconds'];Like this the website has gotten faster with loading and there is no more error.
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by limaeasy 10 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum