Data Display Problem

A place for users and developers of the Xataface to discuss and receive support.

Data Display Problem

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

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
rwzhao
 
Posts: 14
Joined: Mon Sep 01, 2008 10:04 pm

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Error Log

Postby 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
 
Posts: 14
Joined: Mon Sep 01, 2008 10:04 pm

Postby rwzhao » Mon Feb 09, 2009 12:08 pm

I don't see any Php error.
rwzhao
 
Posts: 14
Joined: Mon Sep 01, 2008 10:04 pm

Postby 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
rwzhao
 
Posts: 14
Joined: Mon Sep 01, 2008 10:04 pm

Postby 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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby rwzhao » Mon Feb 09, 2009 3:11 pm

It works!

Thanks.
rwzhao
 
Posts: 14
Joined: Mon Sep 01, 2008 10:04 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 8 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved