Data Display Problem

Archived from the Xataface Users forum.

rwzhao — Sun Feb 08, 2009 11:28 pm

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.

  1. 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


shannah — Mon Feb 09, 2009 12:06 am

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


rwzhao — Mon Feb 09, 2009 11:02 am

ini_set(‘display_errors’, ‘on’);

error_reporting(E_ALL);

Add the above to turn on error report?


rwzhao — Mon Feb 09, 2009 12:08 pm

I don’t see any Php error.


rwzhao — Mon Feb 09, 2009 1:46 pm

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


shannah — Mon Feb 09, 2009 3:00 pm

Increase the memory limit by adding

Code: Select all
ini_set('memory_limit', '32M');

at the beginning of your index.php file.


rwzhao — Mon Feb 09, 2009 3:11 pm

It works!

Thanks.