This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Stuck in the Sandbox
icon9.gif  Stuck in the Sandbox [message #76873] Wed, 15 April 2009 16:23 Go to next message
roobroup  is currently offline roobroup
Messages: 4
Registered: April 2009
Location: Antwerp, Belgium
Junior Member
OK, I'd like to use Symphony, but even if I am quite experienced at php/mysql I find much of the documentation quite complicated (the docs assume every user has the same environment / setup / experience of the writer)

So I decided to install the sandbox and read the my-first-project

What happens : NOTHING. I just get an empty page when opening the pre-configured sandbox. (no HTML returned to the browser)

The index.php is properly executed (I injected some debug statements to check that)... but there is absolutely no output. No error messages (I have xdebug)

I am on a very straightforward platform with WAMP.
I am getting no error message, just a blank screen...

so I started looking into the php code, but sorry... this is no way to learn a new tool.. Index.php includes a file form another directory, which again includes a file from another directory... you just loose it quickly.

So how to go on ? How can I simply get to learn Symphony ???

Pascal.
Re: Stuck in the Sandbox [message #76874 is a reply to message #76873 ] Wed, 15 April 2009 16:31 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Try the debug mode - rather than the index.php, use the frontend_dev.php. This may output an error to suggest how to continue.


Remember Palestine
Re: Stuck in the Sandbox [message #76877 is a reply to message #76874 ] Wed, 15 April 2009 16:41 Go to previous messageGo to next message
roobroup  is currently offline roobroup
Messages: 4
Registered: April 2009
Location: Antwerp, Belgium
Junior Member
it says :
Fatal error: Class 'PDO' not found in
\sf_sandbox\lib\symfony\plugins\sfPropelPlugin\lib\vendor\pr opel\util\PropelPDO.php on line 42

Does the sandbox require additional stuff to be installed ?

P
Re: Stuck in the Sandbox [message #76933 is a reply to message #76873 ] Thu, 16 April 2009 11:21 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yep, although PDO should really be present on all PHP 5.2 installations, IMHO. Look inside your data/bin folder and you'll find a standalone script to run, which will check your configuration and let you know what needs to be changed/installed.


Remember Palestine
Re: Stuck in the Sandbox [message #76934 is a reply to message #76933 ] Thu, 16 April 2009 11:28 Go to previous messageGo to next message
roobroup  is currently offline roobroup
Messages: 4
Registered: April 2009
Location: Antwerp, Belgium
Junior Member
on my windows environment, PDO was not installed (and I didn't get it added easily), but on my Mac OS it was. So I was able to run the sandbox on Mac OS.

one more note : I share a web-server folder between windows and Mac OS,
so I copied the sandbox to it, then tried from windows to open it... it didn't work (due to missing PDO). Then I tried to open it from Mac OS, (the same files) and also it didn't work, because apparently the sandbox configures itself at first run with some paths as to where it is installed. So on my Mac OS, it was looking for a windows path... (absolute paths Sad ).

Then I deleted it all and reinstalled the sandbox on Mac OS and now it seems to be running.

OK, so I am moving again. Thanks for your support !

P
Re: Stuck in the Sandbox [message #76937 is a reply to message #76873 ] Thu, 16 April 2009 11:32 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Quote:

So on my Mac OS, it was looking for a windows path...

Yes, although these are somewhere inside /config/* and only two lines need to be changed - for lib and data folder locations. So a reinstall in this case was unnecessary - just tweak the config file by hand.


Remember Palestine
Re: Stuck in the Sandbox [message #76943 is a reply to message #76937 ] Thu, 16 April 2009 12:46 Go to previous messageGo to next message
roobroup  is currently offline roobroup
Messages: 4
Registered: April 2009
Location: Antwerp, Belgium
Junior Member
Stuck again, because apparently on Mac OS the MySQL PDO does not work from the command-line... (as can be learned from some forum msgs).

so, I could install MAMP to solve this.. (what happens when two apache/mysql are installed in parallel ?)

or I could switch back to windows and install WAMP there.

Just one remark from a user : this whole PDO thing does not make any sense to me... It is NOT make life any easier to my point of view.
to my experience MySQL is the DE FACTO standard, and there is no justification for abstracting the database brand if MySQL will be the only thing used in the end.

* web Hosting Providers all provide MySQL and mostly only MySQL
* All people I know who support applications on oracle and/or MSSQL all want to get rid of them and switch to MySQL

so my conclusion : PDO is not making life simpler, it's only making it more complicated with no real business justification to do so.

P
Re: Stuck in the Sandbox [message #76957 is a reply to message #76873 ] Thu, 16 April 2009 16:15 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I am sure on the Mac that PDO can be loaded in the CLI. If it works in the browser, then it should just be a case of editing the relevant php.ini file. However I am not a Mac user, so you will have to wait for a Mac fan to answer you on that one. I dare say some googling will turn up plenty of results.

You are however wrong on the PDO issue. The idea of an abstract interface is to make it easier for developers to switch db platforms, and PDO to a certain extent does do this. It does not do full query building, which is where tools such as Propel and Doctrine come in. MySQL is a great product, but I am not aware of people abandoning Oracle for it. Your frame of reference is shared hosting accounts, but many symfony users operate on dedicated/multiple servers where they can install their database system of choice.

In short, there is plenty of justification for using PDO, and I am sure it will cause you little trouble once you've worked out how to install it.


Remember Palestine
Previous Topic:[SOLVED] Symfony install for multiple domains with htaccess on same hosting account
Next Topic:Symfony on Webspace, how to modify link_to?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software