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.


Can not validat posts

Login / Search

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

Community saint

Code

An error has occurred
Unfortunately a query has failed [SELECT id,p_title FROM spyderhoe_f_posts WHERE p_validated=0] [Table 'ck5171_hoo.spyderhoe_f_posts' doesn't exist] (version: 4.2.0, PHP version: 5.2.5, URL: /adminzone/index.php?page=admin_unvalidated)

Here is the stack trace:Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home/ck5171/public_html/spyderhoe.ca/sources/failure.php'Line'509'Function'get_html_trace'Args

File'/home/ck5171/public_html/spyderhoe.ca/sources/global2.php'Line'751'Function'_fatal_exit'Args
object


File'/home/ck5171/public_html/spyderhoe.ca/sources/database/mysql.php'Line'227'Function'fatal_exit'Args
object


File'/home/ck5171/public_html/spyderhoe.ca/sources/database.php'Line'744'Function'db_query'Class'Database_Static_mysql'ObjectDatabase_Static_mysql::__set_state(array( ))Type'->'Args
'SELECT id,p_title FROM spyderhoe_f_posts WHERE p_validated=0'

array ( 0 => NULL, 1 => 'ck5171_hoo', )

NULL

NULL

false

false


File'/home/ck5171/public_html/spyderhoe.ca/sources/database.php'Line'674'Function'_query'Class'database_driver'Objectdatabase_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'ck5171_hoo', ), 'connection_write' => array ( 0 => NULL, 1 => 'ck5171_hoo', ), ))Type'->'Args
'SELECT id,p_title FROM spyderhoe_f_posts WHERE p_validated=0'

NULL

NULL

false


File'/home/ck5171/public_html/spyderhoe.ca/adminzone/pages/modules/admin_unvalidated.php'Line'74'Function'query'Class'database_driver'Objectdatabase_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'ck5171_hoo', ), 'connection_write' => array ( 0 => NULL, 1 => 'ck5171_hoo', ), ))Type'->'Args
'SELECT id,p_title FROM spyderhoe_f_posts WHERE p_validated=0'


File'/home/ck5171/public_html/spyderhoe.ca/sources/zones.php'Line'331'Function'run'Class'Module_admin_unvalidated'ObjectModule_admin_unvalidated::__set_state(array( ))Type'->'Args

File'/home/ck5171/public_html/spyderhoe.ca/sources/site.php'Line'880'Function'load_module_page'Args
'adminzone/pages/modules/admin_unvalidated.php'

'admin_unvalidated'


File'/home/ck5171/public_html/spyderhoe.ca/sources/site.php'Line'701'Function'request_page'Args
'admin_unvalidated'

true


File'/home/ck5171/public_html/spyderhoe.ca/adminzone/index.php'Line'51'Function'do_site'Args
Back to the top
 
Posted
Rating:
#55117
Avatar

Community saint

A little more info…

On my main site I can but not on the other.

On the site I get this error on I had made a couple test post and then deleted them in the forums without validating them. On the main site I have 0 submissions showing on the status page of the admin zone, can click on the validate submissions link and it works. On the other site I have 3 submission showing need validation. When I click the link I get the above error.
Back to the top
 
Posted
Rating:
#55132
Avatar

Does this fix your problem?

Attachment
adminzone/pages/modules/admin_unvalidated.php
» Download: admin_unvalidated.php (4 Kb, 172 downloads so far)


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:
#55152
Avatar

Community saint

That did the trick, thanks!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: