Dataface_Table::loadTable() expected first argument to be a string but received 'Dataface_Table'

42 views
Skip to first unread message

daniel....@gmail.com

unread,
Jan 15, 2018, 7:35:20 AM1/15/18
to Xataface
I've had a working application for a couple of weeks now. I added a login screen, and then decided to remove it again until i've finished development. I now can't get the application to work at all, getting an error code: Dataface_Table::loadTable() expected first argument to be a string but received 'Dataface_Table'.....

I've tried removing the entire application, re-downloading the latest Xataface, and building my database from scratch using the original SQL code. I've created the bare minimum .htaccess, conf.ini and index.php files and tried to start it. same issue.

full error-

Fatal error: Uncaught Exception: In Dataface_Table::loadTable() expected first argument to be a string but received 'Dataface_Table' in /var/www/html/1/xataface/Dataface/Table.php:487 Stack trace:
#0 /var/www/html/1/xataface/Dataface/Record.php(343): Dataface_Table::loadTable(NULL)
#1 /var/www/html/1/xataface/public-api.php(291): Dataface_Record->Dataface_Record(NULL, Array)
#2 /var/www/html/1/xataface/Dataface/AuthenticationTool.php(400): df_get_record(NULL, Array)
#3 /var/www/html/1/xataface/Dataface/Table.php(2647): Dataface_AuthenticationTool->getLoggedInUser()
#4 /var/www/html/1/xataface/Dataface/Table.php(863): Dataface_Table->setSecurityFilter()
#5 /var/www/html/1/xataface/Dataface/Table.php(506): Dataface_Table->postInit()
#6 /var/www/html/1/xataface/Dataface/Application.php(2167): Dataface_Table::loadTable('Orders')
#7 /var/www/html/1/xataface/Dataface/Application.php(2578): Dataface_Application->handleRequest(false)
#8 /var/www/html/1/xataface/Dataface/Application.php(2447): Dataface_Application->_display(false, in /var/www/html/1/xataface/Dataface/Table.php on line 487

conf.ini-
[_database]
    host=localhost
    name=CustomerSupport
    user=dan
    password=password
    driver=mysqli

[_tables]
    ;; This section lists the tables to include in your application menu
Orders=Orders

there are a number of other tables of course, but i'm just trying to get it working with the bare minimum

cheers,
Dan

Steve Hannah

unread,
Jan 15, 2018, 8:12:31 AM1/15/18
to xata...@googlegroups.com
What does the [_auth] section of your conf.ini file look like.  It sounds like it may be missing the "users_table" directive.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at https://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/b6d89f45-10e3-4931-84ac-ca267ff377d7%40googlegroups.com.



--
Steve Hannah
Web Lite Solutions Corp.
Reply all
Reply to author
Forward
0 new messages