-
AuthorPosts
-
georgeroth Friend
georgeroth
- Join date:
- March 2014
- Posts:
- 29
- Downloads:
- 2
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 7 times in 3 posts
August 12, 2014 at 10:37 pm #200475Hi,
I’m setting up a system where users can create their own content on the site. I dwelled deep into the permissions and everything looked pretty good, until I tried to test creating a featured article from the frontend.
If I create a featured article on the frontend using the content submission form, the site breaks down with the following:
PHP Fatal error: Call to a member function get() on a non-object in /home/fs_local/x000345/web/managerzone.hu/templates/ja_smashboard/html/com_content/featured/default_item.php on line 25
It only happens when the article I’m creating is set as featured. If it’s not set as featured, the article appears fine.
If I do the exact same featured article in the admin backend, with the same super user, it works fine.
I left both articles up on the site, you can check them in the admin backend — this of course means that the frontend of the site is giving the white screen of death until the bugged article is deleted or edited from the backend (feel free to do so for experimenting). If you want to recreate the bug, you can create a new article in the frontend on the top right from the user menu clicking the 3rd blue button called “Létrehozás”.
Thanks a lot for your help in advance!
georgeroth Friendgeorgeroth
- Join date:
- March 2014
- Posts:
- 29
- Downloads:
- 2
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 7 times in 3 posts
August 13, 2014 at 1:16 am #545736Taking a look in the database the problem seems to be that the “attribs”, “metadata” and “xreference” cells of the problematic articles say NULL instead of their default value. I’m not the biggest guru in MySQL + php + Joomla programming, so that’s as far as I can get I’m afraid. Hope you can figure something out, thanks for your help in advance!
georgeroth Friendgeorgeroth
- Join date:
- March 2014
- Posts:
- 29
- Downloads:
- 2
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 7 times in 3 posts
August 13, 2014 at 1:23 am #545737Well it seems that line 25 wants to get the xreference, which is somehow mistakenly NULL, so I can fix the problem by just removing that line… I’m not sure if that’s a viable fix though. Now the site is working, but can you give me some info whether this is viable as it is? Also it might be worth if someone with more experience in Joomla + MySQL + php looked into the issue. Thanks guys!
Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
August 13, 2014 at 6:57 am #545790Hi georgeroth,
I just checked in your site and found that I can create a feature article and display it successfully.
Let me know if you still need help on this.
georgeroth Friendgeorgeroth
- Join date:
- March 2014
- Posts:
- 29
- Downloads:
- 2
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 7 times in 3 posts
August 13, 2014 at 9:28 am #545814Hi,
yes, removing line 25 from the default_item.php solves the problem on the surface i. e. the articles display. They still look weird in the database though, so it might be worth looking at it when working on the next version of the template later.
Also, can you please look at the following thread? That one I couldn’t fix:
http://www.joomlart.com/forums/topic/javascript-breaking-working-after-reload/Thank you!
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by georgeroth 10 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum