HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


An error has occurred - adding a post to a forum

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#94394 (In Topic #18819)
Avatar

Community saint

Hi,

On our site we have a classifieds section for selling cars - it is configured to allow some usergroups to post a Topic but no one is allowed to post follow up posts to the topics (stops bumping).

It worked fine for a few days, but now only Admin can post topics, everyone else gets this error:

Either you ("****") have lost access between the time of the link you clicked appearing and now, you have found a bug, or you are jumping into URLs.

where **** was the username of the user.

The stack trace looks like this:
Either you ("****") have lost access between the time of the link you clicked appearing and now, you have found a bug, or you are jumping into URLs. (version: 9.0.4, PHP version: 5.3.20, URL: /forum/index.php?page=topics&type=_add_reply&keep_fatalistic
=1&keep_su=ans4r)
Stack trace…

File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 788
Function -> 'die_html_trace'
Args -> array
File -> '/home/vwgolfm/public_html/sources/global2.php'
Line -> 1011
Function -> '_fatal_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 240
Function -> 'fatal_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/global2.php'
Line -> 971
Function -> '_generic_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 1127
Function -> 'warn_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/permissions.php'
Line -> 100
Function -> '_access_denied'
Args -> array ( 0 => 'I_ERROR', 1 => '', 2 => false, )
File -> '/home/vwgolfm/public_html/sources/ocf_posts_action.php'
Line -> 181
Function -> 'access_denied'
Args -> array ( 0 => 'I_ERROR', )
File -> '/home/vwgolfm/public_html/forum/pages/modules/topics.php'
Line -> 2039
Function -> 'ocf_make_post'
Args -> array ( 0 => 149775, 1 => 'Test', 2 => 'ee', 3 => 0, 4 => true, 5 => 1, 6 => 0, 7 => NULL, 8 => NULL, 9 => NULL, 10 => NULL, 11 => NULL, 12 => NULL, 13 => NULL, 14 => true, 15 => true, 16 => NULL, 17 => true, 18 => 'Test', 19 => 0, 20 => NULL, 21 => false, 22 => false, 23 => false, 24 => false, 25 => NULL, )
Function -> '_add_reply'
Class -> 'Module_topics'
Object -> Module_topics::__set_state(array( ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/forum/pages/modules/topics.php'
Line -> 158
Function -> 'call_user_func'
Args -> array ( 0 => array ( 0 => Module_topics::__set_state(array( )), 1 => '_add_reply', ), )
File -> '/home/vwgolfm/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'Module_topics'
Object -> Module_topics::__set_state(array( ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/sources/site.php'
Line -> 840
Function -> 'load_module_page'
Args -> array ( 0 => 'forum/pages/modules/topics.php', 1 => 'topics', )
File -> '/home/vwgolfm/public_html/sources/site.php'
Line -> 629
Function -> 'request_page'
Args -> array ( 0 => 'topics', 1 => true, )
File -> '/home/vwgolfm/public_html/forum/index.php'
Line -> 39
Function -> 'do_site'
Args -> array ( )

I have checked and double checked the Permissions Tree and it is correct, I even added the ability to post back in but it still errors.

The only change that was made to this forum was that a description banner was added as you enter the forum and a template was included - these have both been backed out but it still errors.

As an admin it works fine !!

Any ideas ?

Cheers
Ade
Back to the top
 
Posted
Rating:
#94407
Avatar

It worked fine for a few days, but now only Admin can post topics, everyone else gets this error:

Think you meant "post in topics".


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#94409
Avatar

Community saint

Yes - sorry

Only Admin can create new topics in this one particular forum, the car for sale one. Everyone else gets the error. Posting against the topics is already disabled for everyone except Admin and Mods
Back to the top
 
Posted
Rating:
#94410
Avatar

I think maybe you'd changed a permission, while still having an old tab open, and then put through the reply.

Essentially the error is saying "you shouldn't have seen an option to do this". But if the option had already been opened before a permission change, then of course someone could have tried to use it.

Or possibly the reply form was manually linked to. I'm not sure if form applies a check, it may just be the button to it.

I just ran a test as one of your users, and put through a reply ok.

Two things can disallow posting:
  • Lack of lowrange content submit permission (i.e. posting/replying permission)
  • If double post privilege is not enabled and you were the last poster


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#94412
Avatar

Community saint

Weird, I just tried again using Dano and a couple of other users in the "Cars For Sale" Forum and got the same error every time.

Critical error - bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
Either you ("Dano") have lost access between the time of the link you clicked appearing and now, you have found a bug, or you are jumping into URLs. (version: 9.0.4, PHP version: 5.3.20, URL: /forum/index.php?page=topics&type=_add_reply&keep_fatalistic
=1&keep_su=dano)
Stack trace…

File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 788
Function -> 'die_html_trace'
Args -> array
File -> '/home/vwgolfm/public_html/sources/global2.php'
Line -> 1011
Function -> '_fatal_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 240
Function -> 'fatal_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/global2.php'
Line -> 971
Function -> '_generic_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/failure.php'
Line -> 1127
Function -> 'warn_exit'
Args -> array
File -> '/home/vwgolfm/public_html/sources/permissions.php'
Line -> 100
Function -> '_access_denied'
Args -> array ( 0 => 'I_ERROR', 1 => '', 2 => false, )
File -> '/home/vwgolfm/public_html/sources/ocf_posts_action.php'
Line -> 181
Function -> 'access_denied'
Args -> array ( 0 => 'I_ERROR', )
File -> '/home/vwgolfm/public_html/forum/pages/modules/topics.php'
Line -> 2039
Function -> 'ocf_make_post'
Args -> array ( 0 => 149789, 1 => 'Test', 2 => 'sds', 3 => 0, 4 => true, 5 => 1, 6 => 0, 7 => NULL, 8 => NULL, 9 => NULL, 10 => NULL, 11 => NULL, 12 => NULL, 13 => NULL, 14 => true, 15 => true, 16 => NULL, 17 => true, 18 => 'Test', 19 => 0, 20 => NULL, 21 => false, 22 => false, 23 => false, 24 => false, 25 => NULL, )
Function -> '_add_reply'
Class -> 'Module_topics'
Object -> Module_topics::__set_state(array( ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/forum/pages/modules/topics.php'
Line -> 158
Function -> 'call_user_func'
Args -> array ( 0 => array ( 0 => Module_topics::__set_state(array( )), 1 => '_add_reply', ), )
File -> '/home/vwgolfm/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'Module_topics'
Object -> Module_topics::__set_state(array( ))
Type -> '->'
Args -> array ( )
File -> '/home/vwgolfm/public_html/sources/site.php'
Line -> 848
Function -> 'load_module_page'
Args -> array ( 0 => 'forum/pages/modules/topics.php', 1 => 'topics', )
File -> '/home/vwgolfm/public_html/sources/site.php'
Line -> 637
Function -> 'request_page'
Args -> array ( 0 => 'topics', 1 => true, )
File -> '/home/vwgolfm/public_html/forum/index.php'
Line -> 39
Function -> 'do_site'
Args -> array ( )

Back to the top
 
Posted
Rating:
#94413
Avatar

Ah, I can see now. You were right the first time, it is posting topics. I think this may be having topic posting permission but not post posting permission, in this particular forum. I'll take a look.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#94414
Avatar

I have tweaked the forum permission layout to make it clear (minus sign was too similar to the 'not set' dash)…



I'll have to resolve this contradiction in ocPortal somehow. I think I'll let posts through if they are the initial post for a topic.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#94415
Avatar

I think I'll let posts through if they are the initial post for a topic.

Done


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#94416
Avatar

Community saint

Perfect my friend.

Cheers
Ade
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: