Current Record: Installation #53

News

Current Record: Installation #53

News

Click to minimize this section Details

News id 53
Headline Installation
Content I've decided to update this post (done on Nov 29th) to add all the problems I've had with the installation of dataface and following that "Getting Started" tutorial. So below is a list of them:<br /><br /><span style="font-weight:bold;">Nothing shows up in the dataface_info.php file</span> <br />So I followed the instruction on the dataface site (the getting started article), but nothing even shows up! What the? Turns out the actual file relies on short tags (ie. <? and not <?php) to echo some statements. And I had short tags turned off in my php.ini file. So just go into your php.ini file and then set short tags to "On" and everything should work.<br /><br /><br /><span style="font-weight:bold;">session_save_path is not set</span><br />So when first setting up Dataface, I always ran into this stupid problem that it says that my session_save_path is never set...<br />And then it refers you to line 531 of the Application class. Here you see the code:<br /><br />$sessdir = ini_get('session.save_path');<br /> if ( !$sessdir ) $sessdir = '/tmp';<br /> $sessdir .= "/dataface";<br /><br />So basically it tries to grab the ini config value session.save_path from the php.ini file...and if it isn't set then it sets it to /tmp/dataface.<br /><br />Now the thing is on windows, the session.save_path value is not set by default, so it attempts to set this to /tmp/dataface...only we are using windows and not linux (windows has paritions where linux treats the /tmp to be the root directory)<br /><br />So the solution is basically just make some folder location on your windows hard drive and then in the php.ini file look for the variable session.save_path and set it to that location. <br /><br />This should solve the problem.<br /><br /><span style="font-weight:bold;">Unable to insert a new record</span><br />So after getting past the initial steps of installing and having dataface create the front end. You can then start adding some records. But when you try to add a new record into the course table, I ended up with this sql error saying that the PDF outline column has no default value. I went into phpmyadmin and looked up the column and sure enough the column was set to not allow NULL. I guess this might have been an intended feature, but in the form no red box is beside that field to even indicate that. Maybe a bug? In any case, the solution is to simply make that column NULLABLE.<br /><br /><span style="font-weight:bold;">Complaining about invalid character (eg. /) in a file when it doesn't exis</span><br />I was on the trigger part of the tutorial making a course.php delegate file. But when I made the file, I originally set it as a Rich Text Document. I didn't think this would be a problem as I just renamed it into a .php extension. So did all my work and then tried to reload my wwebapp. Bam! These errors about invalid characters in my course.php. Odd...I was looked inside to find nothing and I even got rid of everything and had the basic:<br /><br /><blockquote><?<br />class tables_Course {<br />}<br />?></blockquote><br /><br />And still errors!!! And then it occurred to me that maybe when I made it as a rich text document it added some additional crap in the file that I can see. So I deleted the entire file and remade it as a plain text document (.txt) and everything worked!
Image (Empty)
Date posted Thu Apr 3 17:09:00 2008
Posted by noreply@blogger.com (Fong Chun Chan)
Status Approved
Categories Blog
Source id Fong's Blog
Source url http://fongxataface.blogspot.com/2008/04/installation.html
Powered by Xataface
(c) 2005-2024 All rights reserved