Jump to content

deple

Clients
  • Posts

    14
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by deple

  1. Error: Class name must be a valid object or a string (0) #0/public_html/system/Theme/Dev/Template.php(171): IPS\Theme\theme_core_front_tables_rows(Object(IPS\Helpers\Table\Db), Array, Array) #1 /public_html/system/Theme/Theme.php(4625) : eval()'d code(513): IPS\Theme\Dev\_Template->__call('rows', Array) #2 /public_html/system/Theme/Dev/Template.php(171): IPS\Theme\theme_core_front_tables_table(Object(IPS\Helpers\Table\Db), Array, Array, NULL, false) #3 /public_html/system/Helpers/Table/Table.php(579): IPS\Theme\Dev\_Template->__call('table', Array) #4 /public_html/system/Theme/Theme.php(4625) : eval()'d code(422): IPS\Helpers\Table\_Table->__toString() #5 /public_html/system/Theme/Dev/Template.php(171): IPS\Theme\theme_core_front_global_globalTemplate(' - Invision Com...', Object(IPS\Helpers\Table\Db), Array) #6 /public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\Dev\_Template->__call('globalTemplate', Array) #7 /public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish() #8 /public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish() #9 /public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #10 /public_html/index.php(13): IPS\_Dispatcher->run() #11 {main} I probably have an incorrectly connected external database in $table $connection = \IPS\Db::i( 'external', array( 'sql_host' => 'localhost', 'sql_user' => 'username', 'sql_pass' => 'password', 'sql_database' => 'database_name', 'sql_port' => 3306, 'sql_socket' => '/var/lib/mysql.sock', 'sql_utf8mb4' => true, ) ); $database = \IPS\Db::i('external'); $tablee = 'table_db'; $baseUrl = \IPS\Http\Url::internal( 'app=test&module=test&controller=test' ); $table = new \IPS\Helpers\Table\Db($tablee, $baseUrl, NULL, NULL, $database); $table->include = array( 'id', 'id_name' ); \IPS\Output::i()->output = $table;
  2. I have connect, but how i must use $table? $connection = \IPS\Db::i( 'external', array( 'sql_host' => 'localhost', 'sql_user' => 'username', 'sql_pass' => 'password', 'sql_database' => 'database_name', 'sql_port' => 3306, 'sql_socket' => '/var/lib/mysql.sock', 'sql_utf8mb4' => true, ) ); $table = new IPS\Helpers\Table\Db( 'core_test', 'app=core&module=test&section=test1', NULL, NULL, $connection);
  3. Hello, how can I extract data from an external database to a table? ($table)
  4. on anonymous mode in the browser it works, thanks a lot
  5. Yes, logs in using the email address provided in the installer
  6. Hello, I have a problem with the test installer, I can't log in to the account created by the installer and an error is displayed: Sorry, you do not have permission for that! 2S119/1 Something went wrong. Please try again.
×
×
  • Create New...