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.


Ecommerce error

Login / Search

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

Honoured member

I'm getting an error if I go to look at orders in the ecommerce. page is: http://www.spacomics.com/adminzone/admin_orders/show_orders.htm

An error has occurred

Unfortunately a query has failed [SELECT t1.*,(t3.p_quantity*t3.included_tax) as tax FROM ocp4_shopping_order t1 LEFT JOIN ocp4_shopping_order_details t3 ON t1.id=t3.order_id WHERE 1=1 GROUP BY t1.id ORDER BY t1.order_status='ORDER_STATUS_cancelled',t1.add_date ASC LIMIT 0,10] [Unknown column 't3.included_tax' in 'field list'] (version: 9.0.13, PHP version: 5.3.24, URL: /adminzone/admin_orders/show_orders.htm)

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/content/92/10010992/html/imprint/sources/failure.php'
Line '839'
Function 'get_html_trace'
Args  
File '/home/content/92/10010992/html/imprint/sources/global2.php'
Line '1,043'
Function '_fatal_exit'
Args

object

File '/home/content/92/10010992/html/imprint/sources/database/mysql.php'
Line '253'
Function 'fatal_exit'
Args

object

File '/home/content/92/10010992/html/imprint/sources/database.php'
Line '1,130'
Function 'db_query'
Class 'Database_Static_mysql'
Object Database_Static_mysql::__set_state(array( ))
Type '->'
Args

'SELECT t1.*,(t3.p_quantity*t3.included_tax) as tax FROM ocp4_shopping_order t1 LEFT JOIN ocp4_shopping_order_details t3 ON t1.id=t3.order_id WHERE 1=1 GROUP BY t1.id ORDER BY t1.order_status=\'ORDER_STATUS_cancelled\',t1.add_date ASC'

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

10

0

false

false

false

false

File '/home/content/92/10010992/html/imprint/sources/database.php'
Line '951'
Function '_query'
Class 'database_driver'
Object database_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'imprint2012', ), 'connection_write' => array ( 0 => NULL, 1 => 'imprint2012', ), 'text_lookup_original_cache' => array ( 8 => 'Admin', 2 => 'Admin', ), 'text_lookup_cache' => array ( 8 => '', 2 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Type '->'
Args

'SELECT t1.*,(t3.p_quantity*t3.included_tax) as tax FROM ocp4_shopping_order t1 LEFT JOIN ocp4_shopping_order_details t3 ON t1.id=t3.order_id WHERE 1=1 GROUP BY t1.id ORDER BY t1.order_status=\'ORDER_STATUS_cancelled\',t1.add_date ASC'

10

0

false

false

NULL

''

File '/home/content/92/10010992/html/imprint/adminzone/pages/modules/admin_orders.php'
Line '187'
Function 'query'
Class 'database_driver'
Object database_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'imprint2012', ), 'connection_write' => array ( 0 => NULL, 1 => 'imprint2012', ), 'text_lookup_original_cache' => array ( 8 => 'Admin', 2 => 'Admin', ), 'text_lookup_cache' => array ( 8 => '', 2 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Type '->'
Args

'SELECT t1.*,(t3.p_quantity*t3.included_tax) as tax FROM ocp4_shopping_order t1 LEFT JOIN ocp4_shopping_order_details t3 ON t1.id=t3.order_id WHERE 1=1 GROUP BY t1.id ORDER BY t1.order_status=\'ORDER_STATUS_cancelled\',t1.add_date ASC'

10

0

File '/home/content/92/10010992/html/imprint/adminzone/pages/modules/admin_orders.php'
Line '71'
Function 'show_orders'
Class 'Module_admin_orders'
Object Module_admin_orders::__set_state(array( ))
Type '->'
Args  
File '/home/content/92/10010992/html/imprint/sources/zones.php'
Line '425'
Function 'run'
Class 'Module_admin_orders'
Object Module_admin_orders::__set_state(array( ))
Type '->'
Args  
File '/home/content/92/10010992/html/imprint/sources/site.php'
Line '876'
Function 'load_module_page'
Args

'adminzone/pages/modules/admin_orders.php'

'admin_orders'

File '/home/content/92/10010992/html/imprint/sources/site.php'
Line '660'
Function 'request_page'
Args

'admin_orders'

true

File '/home/content/92/10010992/html/imprint/adminzone/index.php'
Line '39'
Function 'do_site'
Args  
Back to the top
 
Posted
Rating:
#103216
Avatar

Sorry for the delay.

This is an upgrade problem, a legacy/carry-over problem from quite a while back. Please type this into OcCLE:

Code

:$GLOBALS['SITE_DB']->add_table_field('shopping_order','tax_opted_out','BINARY',0);


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: