Hi, It's my first post so please be nice...

I can sucessfully use the $scaffold variable to get add and delete
functionality, but view and edit are behaving strangely. I first
thought it was a rewrite problem with some kind of recursion going on
because the main problem is that (always for Edit, but only sometimes
for View) I get dropped server connections and the apache error log
shows lines like this:

>[Sat Aug 05 17:12:15 2006] [notice] child pid 16518 exit signal Segmentation 
>fault (11)

When View renders a page instead of choking on the dropped server
error, it shows an error at the top:

Undefined index : data

That appears to me to be be a problem with getting the data from MySQL.
So, then I began suspecting mysql and I rebuilt the database,
reinstalled the latest cake code, followed the tutorial again and got
the same Segmentation fault and dropped connection errors. I then tried
the several table types that mysql offers MyISAM, ISAM and INNODB all
with the same result.

Here's my set up:

Mac OSX.3
Apache
PHP 4.3.6
MySQL 4.0.18
cake_1.1.6.3264
Safari 2.0.4(419.03)

Safari tells me this error:

Safari can't open the page.
Safari can't open the page "http://domain.com/x/urls/view/2/";.
The error was: "lost network connection" (NSURLErrorDomain:-1005)
Please choose Report Bug to Apple from the Safari menu, note the error
number, and describe what you did before you saw this message.

When I cross check it from curl I see "curl: (52) Empty reply from
server" and Firefox shows me a blank page, so I know it is not a Safari
problem.

mod_rewrite installed and functioning properly on cake and other php
code. I can also move the PHP pretty URLs mode that CakePHP offers and
see the same set of errors and odd CRUD behavior.

I followed the blog tutorial and modified it to start my own
application which is a clone of tinyurl and snurl services but for my
own private set of urls.

Database created with this SQL:
# phpMyAdmin SQL Dump
# version 2.5.6
# http://www.phpmyadmin.net
#
# Table structure for table `urls`
#

CREATE TABLE `urls` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `linkname` varchar(50) default NULL,
  `uri` text,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_I

I've been working on this for quite a while and I feel like it is very
close to a breakthrough and I'd appreciate it if anyone could lend me a
hand or turn my head toward a good debugging tactic. I've tried peeling
away code and inserting print statements but the code base is so large
and spread out it is hard for a newbie to really get a handle on it and
find exactly where the Edit and View steps are failing in scaffolding.

TIA,
BakeryBoy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to