Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • georgeroth Friend
    #200475

    Hi,

    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 Friend
    #545736

    Taking 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 Friend
    #545737

    Well 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 Friend
    #545790

    Hi 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 Friend
    #545814

    Hi,

    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!

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  georgeroth 10 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum