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.


Is this a bug or did I do something wrong?

Login / Search

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

Fan in action

Hi,
My db tables are named mybb_ocp7_, also the mybb_users table has the changes which I've seen before on previous test sites.

On first login:

"Unfortunately a query has failed [SELECT tag_parameters,tag_replace,tag_tag,tag_dangerous_tag,tag_blo
ck_tag,tag_textual_tag FROM mybb_custom_comcode WHERE (tag_enabled=1) ] [Table 'abc14.mybb_custom_comcode' doesn't exist] (version: 7.1.5, PHP version: 5.3.5, URL: /ahome/adminzone/index.php?page=start)"

…so OCP is "looking for" the table without adding ocp7_ after mybb_

I've done this before, and didn't have similar issues:
Is it a bug or did I do something wrong?
Thank you
Back to the top
 
Posted
Rating:
#76447
Avatar

Hi,

This is a bug. Could you post the stack trace please. We've actually fixed it in github but I can't remember which file the fix is in, the stack trace will help me.


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

Fan in action

Sure here:

File'/var/www/html/gurupros.com/ahome/sources/failure.php'
Line'674'
Function'get_html_trace'
Args 

File'/var/www/html/gurupros.com/ahome/sources/global2.php'
Line'969'
Function'_fatal_exit'
Argsobject


File'/var/www/html/gurupros.com/ahome/sources/database/mysqli.php'
Line'245'
Function'fatal_exit'
Argsobject


File'/var/www/html/gurupros.com/ahome/sources/database.php'
Line'1,069'
Function'db_query'
Class'Database_Static_mysqli'
ObjectDatabase_Static_mysqli::__set_state(array( ))
Type'->'
Args…NULL

NULL

false

false

false

false


File'/var/www/html/gurupros.com/ahome/sources/database.php'
Line'913'
Function'_query'
Class'database_driver'
Objectdatabase_driver::__set_state(array( 'table_prefix' => 'mybb_', 'connection_read' => array ( 0 => mysqli::__set_state(array( 'affected_rows' => NULL, 'client_info' => NULL, 'client_version' => NULL, 'connect_errno' => NULL, 'connect_error' => NULL, 'errno' => NULL, 'error' => NULL, 'field_count' => NULL, 'host_info' => NULL, 'info' => NULL, 'insert_id' => NULL, 'server_info' => NULL, 'server_version' => NULL, 'sqlstate' => NULL, 'protocol_version' => NULL, 'thread_id' => NULL, 'warning_count' => NULL, )), 1 => 'abc14', ), 'connection_write' => array ( 0 => false, 1 => 'abc14', 2 => 'localhost', 3 => 'root', 4 => '(password removed)', 5 => false, ), 'text_lookup_original_cache' => array ( ), 'text_lookup_cache' => array ( ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysqli::__set_state(array( )), ))
Type'->'
Args'SELECT tag_parameters,tag_replace,tag_tag,tag_dangerous_tag,tag_block_tag,tag_textual_tag FROM mybb_custom_comcode WHERE (tag_enabled=1) '

NULL

NULL

false

false

NULL

''


File'/var/www/html/gurupros.com/ahome/sources/comcode_renderer.php'
Line'116'
Function'query_select'
Class'database_driver'
Objectdatabase_driver::__set_state(array( 'table_prefix' => 'mybb_', 'connection_read' => array ( 0 => mysqli::__set_state(array( 'affected_rows' => NULL, 'client_info' => NULL, 'client_version' => NULL, 'connect_errno' => NULL, 'connect_error' => NULL, 'errno' => NULL, 'error' => NULL, 'field_count' => NULL, 'host_info' => NULL, 'info' => NULL, 'insert_id' => NULL, 'server_info' => NULL, 'server_version' => NULL, 'sqlstate' => NULL, 'protocol_version' => NULL, 'thread_id' => NULL, 'warning_count' => NULL, )), 1 => 'abc14', ), 'connection_write' => array ( 0 => false, 1 => 'abc14', 2 => 'localhost', 3 => 'root', 4 => '(password removed)', 5 => false, ), 'text_lookup_original_cache' => array ( ), 'text_lookup_cache' => array ( ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysqli::__set_state(array( )), ))
Type'->'
Args'custom_comcode'

array ( 0 => 'tag_parameters', 1 => 'tag_replace', 2 => 'tag_tag', 3 => 'tag_dangerous_tag', 4 => 'tag_block_tag', 5 => 'tag_textual_tag', )

array ( 'tag_enabled' => 1, )


File'/var/www/html/gurupros.com/ahome/sources/comcode_text.php'
Line'281'
Function'_custom_comcode_import'
Args

File'/var/www/html/gurupros.com/ahome/sources/comcode_text.php'
Line'913'
Function'comcode_text_to_tempcode'
Args…false

false

false

false

false

NULL

NULL


File'/var/www/html/gurupros.com/ahome/sources/comcode_renderer.php'
Line'202'
Function'comcode_text_to_tempcode'
Args…false

false

false

false

false

NULL

NULL


File'/var/www/html/gurupros.com/ahome/sources/comcode.php'
Line'189'
Function'_comcode_to_tempcode'
Args…1

true

60

NULL

NULL

false

false

false

false

false

NULL

NULL


File'/var/www/html/gurupros.com/ahome/sources/site2.php'
Line'303'
Function'comcode_to_tempcode'
Args…1

true

60

NULL


File'/var/www/html/gurupros.com/ahome/sources/site.php'
Line'1,330'
Function'_load_comcode_page_not_cached'
Args'adminzone/pages/comcode/EN/start.txt'

'adminzone'

'start'

'/var/www/html/gurupros.com/ahome'

NULL

array ( 'the_zone' => 'adminzone', 'the_page' => 'start', 'p_parent_page' => '', 'p_validated' => 1, 'p_edit_date' => NULL, 'p_add_date' => 1320125484, 'p_submitter' => NULL, 'p_show_as_edit' => 0, )

false


File'/var/www/html/gurupros.com/ahome/sources/site.php'
Line'992'
Function'load_comcode_page'
Args'adminzone/pages/comcode/EN/start.txt'

'adminzone'

'start'

NULL

false


File'/var/www/html/gurupros.com/ahome/sources/site.php'
Line'753'
Function'request_page'
Args'start'

true


File'/var/www/html/gurupros.com/ahome/adminzone/index.php'
Line'51'
Function'do_site'
Args 

Thanks again
Back to the top
 
Posted
Rating:
#76464
Avatar

Ah yes. The quick fix is to remove the custom_comcode addon. (Admin Zone > Setup > Addons). If you need it, I'll need to give you a specific code fix.

Basically there was a bug fix to the code which made a bad assumption about the forum running on a network of OCF forums if the site database is not the same as the forum database. That's clearly wrong, which is why it's failing.


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

Fan in action

Download from github is almost 70% done, what top-level folder would it be in? I could just upload a whole folder, to keep it simple..
Back to the top
 
Posted
Rating:
#76466
Avatar

It's sources/comcode_renderer.php, and putting that in might work, but I can't say with confidence it won't be incompatible. If I could, I'd have just sent the file would be easier  :lol:. As you're taking the techie route, try it :)!


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

Fan in action

OK, The error in the Admin zone is gone, haven't tried any custom comcode yet, but it's a working test site.

Thanks Chris  :)
Back to the top
 
Posted
Rating:
#76897
Avatar

Fan in training

Hi Guys, is there a solution for this?

What code needs to be edited, I've got the exact same error on my test-site
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: