Welcome, Guest
Username: Password: Remember me

TOPIC: Error 500 if not logged

Error 500 if not logged 19 Jul 2013 08:16 #10523

  • Frederic
  • Frederic's Avatar
  • Offline
  • Senior Member
  • Posts: 56
  • Karma: 0
Hi,

I know this has been discussed before but as it seems it was solved maybe it's another problem...

I get an error 500 when I try to display a front end layout item with the "not allowed to access this ressource message". I don't have the message when I am logged.

I have seen where to comment a part of the code to make the component working but it would be cleaner to find the origin of the problrm.

Any idea where to search for ?

My local Joomla website run 2.5.11.

Thanks in advance,
Best regards,

Fred
The administrator has disabled public write access.

Error 500 if not logged 19 Jul 2013 20:32 #10529

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Does your item has Accesslevel or unpublished item ?

Which PTL ? (Project / Table / Layout)
Coding is now a piece of cake
The administrator has disabled public write access.

Error 500 if not logged 20 Jul 2013 06:51 #10535

  • Frederic
  • Frederic's Avatar
  • Offline
  • Senior Member
  • Posts: 56
  • Karma: 0
Hi Admin,

Thank you for taking care.

Project : catjoo
Table : event
Layout : Frontend/Item/All

I added the access level but the problem was already there. I have tried to publish/unpublish some records with no difference.

Best,
Fred
The administrator has disabled public write access.

Error 500 if not logged 20 Jul 2013 22:56 #10536

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Should be better now.
Coding is now a piece of cake
The administrator has disabled public write access.

Error 500 if not logged 21 Jul 2013 17:21 #10544

  • Frederic
  • Frederic's Avatar
  • Offline
  • Senior Member
  • Posts: 56
  • Karma: 0
Great !! Thank you very much... What was wrong ?

Best regards,

Fred
The administrator has disabled public write access.

Error 500 if not logged 21 Jul 2013 23:12 #10545

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
When you load an item, even only for fly, the item contains the params : access-edit, access-view, ...
So it was only because canEdit() was registering error in the model, when it is simply called to populate these params.

And in the view file, when the model contains an error, it is blocking.
Coding is now a piece of cake
The administrator has disabled public write access.

Error 500 if not logged 22 Jul 2013 19:15 #10549

  • Frederic
  • Frederic's Avatar
  • Offline
  • Senior Member
  • Posts: 56
  • Karma: 0
Was it something I could have fixed by myself ?
The administrator has disabled public write access.
Time to create page: 0.076 seconds

Get Started