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.


[RESOLVED] Possible 9.0.15 bug

Login / Search

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

Honoured member

I tested this on two separate sites that are hosted by two completely separate companies, so there was zero chance of anything hardware related.  Both sites are running 9.0.15 and both generate the same error.

When using the website cleanup tools, all work fine with the exception of:

If that option is selected either alone or in combination with others, both sites return this result:

An error has occurred

Unfortunately a query has failed [UPDATE ocp_f_members SET m_cache_warnings=0 WHERE (id=1 AND w_is_warning=1) LIMIT 1] [Unknown column 'w_is_warning' in 'where clause'] (version: 9.0.15, PHP version: 5.3.29, URL: /adminzone/index.php?page=admin_cleanup&type=rebuild)

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/supyro/public_html/sources/failure.php'
Line '843'
Function 'get_html_trace'
Args  
File '/home/supyro/public_html/sources/global2.php'
Line '1,053'
Function '_fatal_exit'
Args

object

File '/home/supyro/public_html/sources/database/mysql.php'
Line '253'
Function 'fatal_exit'
Args

object

File '/home/supyro/public_html/sources/database.php'
Line '1,134'
Function 'db_query'
Class 'Database_Static_mysql'
Object Database_Static_mysql::__set_state(array( ))
Type '->'
Args

'UPDATE ocp_f_members SET m_cache_warnings=0 WHERE (id=1 AND w_is_warning=1) '

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

1

NULL

false

false

false

false

File '/home/supyro/public_html/sources/database.php'
Line '764'
Function '_query'
Class 'database_driver'
Object database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'supyro_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'supyro_ocp', ), 'text_lookup_original_cache' => array ( 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 8 => 'Admin Zone', 2 => 'Admin Zone', ), 'text_lookup_cache' => array ( 72 => '', 73 => '', 34 => '', 35 => '', 8 => '', 2 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Type '->'
Args

'UPDATE ocp_f_members SET m_cache_warnings=0 WHERE (id=1 AND w_is_warning=1) '

1

NULL

false

false

File '/home/supyro/public_html/sources/hooks/modules/admin_cleanup/ocf_members.php'
Line '69'
Function 'query_update'
Class 'database_driver'
Object database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'supyro_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'supyro_ocp', ), 'text_lookup_original_cache' => array ( 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 8 => 'Admin Zone', 2 => 'Admin Zone', ), 'text_lookup_cache' => array ( 72 => '', 73 => '', 34 => '', 35 => '', 8 => '', 2 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Type '->'
Args

'f_members'

array ( 'm_cache_warnings' => 0, )

array ( 'id' => 1, 'w_is_warning' => 1, )

''

1

File '/home/supyro/public_html/sources/view_modes.php'
Line '519'
Function 'run'
Class 'Hook_ocf_members'
Object Hook_ocf_members::__set_state(array( ))
Type '->'
Args  
File '/home/supyro/public_html/adminzone/pages/modules/admin_cleanup.php'
Line '185'
Function 'ocportal_cleanup'
Args

array ( 0 => 'ocf_members', )

File '/home/supyro/public_html/adminzone/pages/modules/admin_cleanup.php'
Line '103'
Function 'do_rebuild'
Class 'Module_admin_cleanup'
Object Module_admin_cleanup::__set_state(array( ))
Type '->'
Args  
File '/home/supyro/public_html/sources/zones.php'
Line '425'
Function 'run'
Class 'Module_admin_cleanup'
Object Module_admin_cleanup::__set_state(array( ))
Type '->'
Args  
File '/home/supyro/public_html/sources/site.php'
Line '878'
Function 'load_module_page'
Args

'adminzone/pages/modules/admin_cleanup.php'

'admin_cleanup'

File '/home/supyro/public_html/sources/site.php'
Line '660'
Function 'request_page'
Args

'admin_cleanup'

true

File '/home/supyro/public_html/adminzone/index.php'
Line '39'
Function 'do_site'
Args  

Parameters

label_for__mysql
Optimise/fix database tables
tick_on_form__mysql
0
require__mysql
0
label_for__broken_urls
Broken URLs
tick_on_form__broken_urls
0
require__broken_urls
0
label_for__orphaned_uploads
Orphaned uploads
tick_on_form__orphaned_uploads
0
require__orphaned_uploads
0
label_for__orphaned_lang_strings
Language strings that were orphaned (unused)
tick_on_form__orphaned_lang_strings
0
require__orphaned_lang_strings
0
label_for__criticise_mysql_fields
Correct MySQL schema issues
tick_on_form__criticise_mysql_fields
0
require__criticise_mysql_fields
0
label_for__image_thumbs
Image thumbnails
tick_on_form__image_thumbs
0
require__image_thumbs
0
label_for__page_stats
Delete page access statistics
tick_on_form__page_stats
0
require__page_stats
0
label_for__stats
Statistics cache
tick_on_form__stats
0
require__stats
0
label_for__tags
Orphaned tags
tick_on_form__tags
0
require__tags
0
label_for__ocf_members
Members
ocf_members
1
tick_on_form__ocf_members
0
require__ocf_members
0
label_for__comcode
Comcode field pre-calculations
tick_on_form__comcode
0
require__comcode
0
label_for__language
Language cache
tick_on_form__language
0
require__language
0
label_for__admin_theme_images
Theme images
tick_on_form__admin_theme_images
0
require__admin_theme_images
0
label_for__comcode_pages
Comcode pages
tick_on_form__comcode_pages
0
require__comcode_pages
0
label_for__blocks
Block cache
tick_on_form__blocks
0
require__blocks
0
label_for__ocf
Forums
tick_on_form__ocf
0
require__ocf
0
label_for__ocf_topics
Topics
tick_on_form__ocf_topics
0
require__ocf_topics
0
label_for__templates
Template cache
tick_on_form__templates
0
require__templates
0

Since this exact same error happens on two independent 9.0.15 sites, I have to suspect that there's something amiss.  Figured I'd put it out here for the masses to chew on.

Cheers


Last edit: by superiorpyro
Back to the top
 
Posted
Rating:
#105538
Avatar



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

Honoured member

Thanks Chris!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: