I'd like to suggest that as one of the future development priorities, the Dolphin 7 team do something about error and failure scenario handling.
This blog is not about solving a particular issue -- I don't need help for this, and I especially don't need to be directed to forums for this as a heads up for those of you about to tell me so. =) This is a general point and development suggestion about the need for proper error handling and common quirk/fubar scenario elimination.
To illustrate a very unhelpful scenario, I have just thrown in a fresh D7.0.0 bundle on my local test server just to dump out some variables to have a reference point for helping out a user who's working on an auto-login modification (discussed in the other blog by Mike). I clicked along happily and thought I'll finally be able to do a graceful install, but alas at the end the screenshot below is what I faced. (See full size.)
And that is not helpful or well-handled. Now I realize this is probably because you are still using those <? short form tags somewhere, but you should be prepared for scenarios like this as short form tags are very commonly switched off, and check at the start of the installer whether no short-form tags might result in catastrophic failure. (Incidentally why do the developers not keep their test servers at the most common hosting configurations to maximize compatibility?) And may I also point out that I have actually seen this same error before, many moons ago, and pointed it out for fixing when another Dolphin user bumped against the very same wall.
You see in the above that the first thing blurted out is "register globals is On", while I can guarantee it is absolutely off (and someone turning it on on my machine will face serious consequences), and mb_string is on as well. My test box is a very common Apache/PHP setup with D7 dependencies already on. (Except for the short tag form which is not on by default, and also not listed as a requirement.) It's not that hard to have your installer script check the necessary php.ini settings that would avoid catastrophic failures. (I still have that simple stand-alone requirement checker script ripped from the D7 installer if someone wants to take it on and start developing.)
In this scenario, I am receiving misleading error messages, no means of going back to see what might have gone wrong, a link to a Troubleshooter that is useless for this purpose, and I am forced to just start from a scratch (after correcting the installer code myself to proper form). Now I bet a lot of people bump into this view, because as noted it's a very common server configuration this is being installed on.
Please try and fix these simple little things that cause these FUBAR level situations, try to get in some sort of error handling (and even capture+logging) together, whichsoever way you may do it, and turn it into something that's actually informative and helpful for your users. You could even link these error situations directly to the relevant online tutorial for rescue and recovery, instead of serving out a generic link to a hundred FAQs.
Now I'm heading out for a smoke, then I'm wiping out the database, then mailing off an educated guess instead of tested info to that modder whom I was trying to help out here (that's why I was installing), and then continuing with my regular work. I don't have time to run into walls right now unfortunately, and I suppose that's why I have not done as much as I might have on the D7 extension frontier. Let's give it another go tomorrow and see how the birds chirp. I don't think I've ever gotten a Dolphin install to work out of the box at the first shot, with all these versions I've tested over the last year... Right now it's tasting a tad bit salty here.
If the Dolphin 7 developer team are interested in suggestions for simple architectural improvements and error handling solutions that shouldn't take too long to implement (and yes, not generic but specifically for the problems in your software), please feel free to contact me anytime.
------------------------------------
How humorous... Speak of the devil! (Screenshot) Now I am trying to post this, and I have also picked 10 tags for the post, but I'm being told to "Please enter at least 100 characters" and "Please enter at least one tag word, min 3 alphanumeric characters." I guess them error message stars just ain't in the correct alignment today on me Boonex sky!
------------------------------------
Trying in Chrome... I get this sort of view; the blog rules popup box doesn't pop open, but just jams mid-screen as a blank bar and blocks the view. Finally discovered what caused the "100 characters" error message. I use m-dash often in my text -- it's the long dash you see in proper printed text instead of a cheap online double dash, you get it with ALT+0151 -- and that resets your counter, making it think it's under 100 characters. And the tag error is caused by a period in the tag (I had php.ini as one).
Pardon the volley of grumble; you're doing great see more
http://www.boonex.com/trac/dolphin/ticket/1845
----------------------------
This directive determines whether or not PHP will recognize code between <? and ?> tags as PHP source which should be processed as such. It's been recommended for several years that you not use the short tag "short cut" and instead to use the full <?php and ?> see more
http://codesatori.com/hosted/dolphin_7_no_db_connection.png
Not quite sure see more
Notice the areas I have have highlighted and blurred in the screenshot; all MySQL connection details, and every other sort of sensitive data got dumped on the screen. If this had been on a production server, and the database glitch caused by whichever reason while the admin wasn't around, every visitor would have 1) had their browsers freeze, and 2) it would have exposed every sort of sensitive data in the system. (Including FTP passwords if some were saved, see bottom right.)
If the var_dump see more
Little Matthew's car has got a tire that went flat,
A tire that went flat, a tire that went flat,
Little Matthew's car has got a tire that went flat,
And we took a bit of chewing gum to patch!
| Cannot complete query (getAll):
| Got error 127 from storage engine
| Call stack: getAll[/home/boonex/public_html/unity/modules/Blog/classes/BxBlgSql.php5, 915] ....
For the record, error 127 generally has to do with a table corruption exception MySQL throws in, and can be caused by anything from an unexpectedly killed script to a hardware failure. You may want to optimize your comments see more
well i had to say it, you expected it, and i see that no ball busters have come by to haunt you on this. (of course you know i am kidding) issues like this should be front and center. and they should be addressed. however, as has been the experience from many of us, when you bring up issues of this nature, you will quickly find that you can no longer find your blog post. it gets ruffled to the bottom of the pile, and there is no way to revive see more
I am of course familiar with all these PHP directives, and as noted my configuration is already correct. The point of it in my screenshot is that none of the scribble that you see on the screen is in any way relevant; it's just an undifferentiated blurt-out of raw code that hasn't been properly parsed because of the see more
http://www.boonex.com/unity/blog/home/?start=10
http://www.boonex.com/unity/blog/home/?start=20
http://www.boonex.com/unity/blog/home/?start=30
http://www.boonex.com/unity/blog/home/?start=40
http://www.boonex.com/unity/blog/home/?start=50
http://www.boonex.com/unity/blog/home/?start=60
http://www.boonex.com/unity/blog/home/?start=70
http://www.boonex.com/unity/blog/home/?start=80
http://www.boonex.com/unity/blog/home/?start=90
http://www.boonex.com/unity/blog/home/?start=100
Would see more
i was busting your shoes bud. i know you know what all the directives are, just thought i would post them in case somebody else read them that was facing the same issue and was just completely lost.
its all good bro, just having fun. you are one of the few who wont fall out of your tree (not that you live in a tree). geez im shutting up.
Regards,
DosDawg
your questions deserve an answer. doubt you will ever get one. but your answers are concise and as a community member, there should be some accountability to the community from the developers.
Repost your inquiry front and center again, and maybe you will get an answer. ( again doubtful ) well maybe if you paid for the information you could get that.
Regards,
DosDawg
Or at least used to live in the strangest places, including a cave on a mountain peak and a nearby abandoned Buddhist shrine near Kathmandu, keeping company with an old holy man who had lived in the hollow of a tree for half a decade. I wouldn't mind living in a tree at all, if only see more