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.


Upgrade problems 4.1.8 to 5.0.3

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#64507 (In Topic #13898)
srl
Avatar

Fan in action

After doing a upgrade to 5.0.3 I get the following errors when I click on Admin Zone

Please Help!!!!

An error has occurred

Unfortunately a query has failed [SELECT count(id) FROM ocp4_shopping_order WHERE (order_status='ORDER_STATUS_payment_received') LIMIT 1] [Table 'srlresou_ocportal.ocp4_shopping_order' doesn't exist] (version: 5.0.3, PHP version: 5.2.14, URL: /adminzone/index.php?page=start)

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'/home1/srlresou/public_html/sources/failure.php'
Line'604'
Function'get_html_trace'
Args

File'/home1/srlresou/public_html/sources/global2.php'
Line'920'
Function'_fatal_exit'
Argsobject


File'/home1/srlresou/public_html/sources/database/mysql.php'
Line'238'
Function'fatal_exit'
Argsobject


File'/home1/srlresou/public_html/sources/database.php'
Line'1,060'
Function'db_query'
Class'Database_Static_mysql'
Type'->'
ObjectDatabase_Static_mysql::__set_state(array( ))
Args'SELECT count(id) FROM ocp4_shopping_order WHERE (order_status=\'ORDER_STATUS_payment_received\') '

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

1

NULL

false

false

false

false


File'/home1/srlresou/public_html/sources/database.php'
Line'910'
Function'_query'
Class'database_driver'
Type'->'
Objectdatabase_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'srlresou_ocportal', ), 'connection_write' => array ( 0 => NULL, 1 => 'srlresou_ocportal', ), 'text_lookup_original_cache' => array ( 1456 => '', 1457 => '', 34 => 'Administrators', 35 => 'Site director', 10525 => 'Admin Zone', 73 => '', 74 => '', 78 => 'Download of the week', 79 => 'The best downloads in the download system, chosen every week.', ), 'text_lookup_cache' => array ( 1456 => '', 1457 => '', 34 => '', 35 => '', 10525 => '', 73 => '', 74 => '', 78 => '', 79 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), ))
Args'SELECT count(id) FROM ocp4_shopping_order WHERE (order_status=\'ORDER_STATUS_payment_received\') '

1

NULL

false

false

array ( )

''


File'/home1/srlresou/public_html/sources/database.php'
Line'613'
Function'query_select'
Class'database_driver'
Type'->'
Objectdatabase_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'srlresou_ocportal', ), 'connection_write' => array ( 0 => NULL, 1 => 'srlresou_ocportal', ), 'text_lookup_original_cache' => array ( 1456 => '', 1457 => '', 34 => 'Administrators', 35 => 'Site director', 10525 => 'Admin Zone', 73 => '', 74 => '', 78 => 'Download of the week', 79 => 'The best downloads in the download system, chosen every week.', ), 'text_lookup_cache' => array ( 1456 => '', 1457 => '', 34 => '', 35 => '', 10525 => '', 73 => '', 74 => '', 78 => '', 79 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), ))
Args'shopping_order'

array ( 0 => 'count(id)', )

array ( 'order_status' => 'ORDER_STATUS_payment_received', )

''

1

NULL

false


File'/home1/srlresou/public_html/sources/hooks/blocks/main_staff_checklist/ecommerce_orders.php'
Line'30'
Function'query_value_null_ok'
Class'database_driver'
Type'->'
Objectdatabase_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'srlresou_ocportal', ), 'connection_write' => array ( 0 => NULL, 1 => 'srlresou_ocportal', ), 'text_lookup_original_cache' => array ( 1456 => '', 1457 => '', 34 => 'Administrators', 35 => 'Site director', 10525 => 'Admin Zone', 73 => '', 74 => '', 78 => 'Download of the week', 79 => 'The best downloads in the download system, chosen every week.', ), 'text_lookup_cache' => array ( 1456 => '', 1457 => '', 34 => '', 35 => '', 10525 => '', 73 => '', 74 => '', 78 => '', 79 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), ))
Args'shopping_order'

'count(id)'

array ( 'order_status' => 'ORDER_STATUS_payment_received', )


File'/home1/srlresou/public_html/sources/blocks/main_staff_checklist.php'
Line'189'
Function'run'
Class'Hook_checklist_ecommerce_orders'
Type'->'
ObjectHook_checklist_ecommerce_orders::__set_state(array( ))
Args

File'/home1/srlresou/public_html/sources/zones.php'
Line'597'
Function'run'
Class'Block_main_staff_checklist'
Type'->'
ObjectBlock_main_staff_checklist::__set_state(array( ))
Argsarray ( 'block' => 'main_staff_checklist', )


File'/home1/srlresou/public_html/sources/tempcode.php'
Line'722'
Function'do_block'
Args'main_staff_checklist'

array ( 'block' => 'main_staff_checklist', )


File'/home1/srlresou/public_html/sources/tempcode.php'
Line'960'
Function'handle_symbol_preprocessing'
Argsarray ( 0 => array ( ), 1 => 0, 2 => 'BLOCK', 3 => array ( 0 => 'block=main_staff_checklist', ), )

NULL


File'/home1/srlresou/public_html/sources/tempcode.php'
Line'754'
Function'handle_symbol_preprocessing'
Class'ocp_tempcode'
Type'->'
Objectobject
Args

File'/home1/srlresou/public_html/sources/tempcode.php'
Line'960'
Function'handle_symbol_preprocessing'
Args…NULL


File'/home1/srlresou/public_html/sources/site.php'
Line'787'
Function'handle_symbol_preprocessing'
Class'ocp_tempcode'
Type'->'
Objectobject
Args

File'/home1/srlresou/public_html/adminzone/index.php'
Line'51'
Function'do_site'
Args

Back to the top
 
Posted
Rating:
#64522
Avatar

I'm not sure exactly how you did the upgrade or what set of addons you have installed, but I can say a quick fix would be to delete…

sources/hooks/systems/main_staff_checklist/ecommerce_orders.
php

It seems you don't have the shopping addon installed, but this file is from the shopping addon. I don't know if maybe you did the upgrade of a site where the shopping addon had been uninstalled by manually extracting the files, but if you do that you need to be careful to not put on any files from uninstalled addons.


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: