Page 1 of 1

Data Display Problem

PostPosted: Sun Feb 08, 2009 11:28 pm
by rwzhao
Hi! Steve,

I have a couple of problems:

1. Click on a record in show all list view, prompt open index,php or save the file message
a. Data for a table will be shown in list view;
b. When click on a record, it will prompt to open index.php page or save the file.
c. Try the find tab, I will be able to click and see the detail of the record.
d. This is not apply all of the tables but some.

2. Record Detail is not shown correctly like this:
"Found 18096 or 18096 records in table shipments
Now Showing 3 of 18096"

These message only show at upper corner of the page and nothing else.

All the tables have primary key.

Any idea?

Richard

PostPosted: Mon Feb 09, 2009 12:06 am
by shannah
Click on a record in show all list view, prompt open index,php or save the file message


This generally means that PHP is segfaulting. Check your error log to confirm. Usually this is caused by an infinite recursion.

Try:
-removing all configuration for the table in question (i.e. if the 'foo' table is having this problem then remove the tables/foo directory temporarily and try again to see if it still happens). If this fixes it, then you likely have a problem somwhere in your delegate class. If not, read on.
- removing all files except .htaccess, conf.ini, and index.php and see if you still have the problem. If this fixes the problem you likely have a problem somewhere in one of your files... do debugging as necessary to find the issue.

If you still have this problem with a bare-bones application, let me know as many details about your environment as possible as it could be a PHP or Xataface bug. E.g. webserver, OS, PHP version, MySQL version. Relevant lines from the error log. etc..

-Steve

Error Log

PostPosted: Mon Feb 09, 2009 11:02 am
by rwzhao
ini_set('display_errors', 'on');
error_reporting(E_ALL);

Add the above to turn on error report?

PostPosted: Mon Feb 09, 2009 12:08 pm
by rwzhao
I don't see any Php error.

PostPosted: Mon Feb 09, 2009 1:46 pm
by rwzhao
Steve

I have this:

PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 72 bytes) in /xxxxxx/public_html/xataface-1.1.3/Dataface/DB.php on line 343, referer: http://xxxxxxx/administrator/index.php?-table=hts

PostPosted: Mon Feb 09, 2009 3:00 pm
by shannah
Increase the memory limit by adding
Code: Select all
ini_set('memory_limit', '32M');

at the beginning of your index.php file.

PostPosted: Mon Feb 09, 2009 3:11 pm
by rwzhao
It works!

Thanks.