[SOLVED] Widget does not exist error after using unset to remove form fields in Symfony 1.x

I am getting started with Symfony 1.4 and I learnt that form elements can be removed by using unset. However, I got error similar to the following after using unset:

Widget ‘x’ does not exist

This was because the module still consisted of files referencing to those elements. So, it is necessary to re-generate module after making the changes. For example, if you are using Propel and if the module name is job and class name is JobeetJob in frontend, the following command should be run to re-generate module:

php symfony propel:generate-module --with-show frontend job JobeetJob

Hope this helps.

[SOLVED] Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

While trying to run a single-file php script in my Fedora 15 installation, I got a very strange error:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required ‘/var/www/html/test/filename.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in Unknown on line 0

To get rid of this error, right click and go to Properties. Then, in Permissions, make sure it is readable by other users and it has a SELinux context httpd_user_content_t. That should do it.

[SOLVED] “[[WARNING]] The posix_isatty() is available: FAILED *** Install and enable the php_posix extension (used to colorized the CLI output) ***”

I ran the Symfony PHP Framework configuration check script in Fedora 15 and got the following error:

[[WARNING]] The posix_isatty() is available: FAILED
*** Install and enable the php_posix extension (used to colorized the CLI output) ***

To enable this extension, you should install php-process from Add/Remove Software or using yum.

su -c 'yum install php-process'

Run the check_configuration.php again and you should not see this warning again.

UPDATE: If you also see the following:

[[WARNING]] A PHP accelerator is installed: FAILED
*** Install a PHP accelerator like APC (highly recommended) ***

and want to have a PHP accelerator, you can install php-pecl-apc:

su -c 'yum install php-pecl-apc'

[HOWTO] Import photos from Facebook to Google Plus

Google Plus is still not available for public but is only available to invited users. However, many of you already have accounts via invitation. So, you may want to have all your photos from Facebook to Google+. Here is how you can do it.

Download data from Facebook
Login to your Facebook account and click on Account>Account Settings and click “learn more” link to next to Download Your Information. In that page, request to download your information. It might take a while for Facebook to gather all your information and send you a link in your email.

Extract and select photos for upload
Extract the archive and separate out photos if you don’t want every photo to be in your Google Plus account.

Upload to Google Plus
Login to Google Plus, click on the photos icon and then click on Upload New Photos button. Then click Select Photos From Your Computer button. You can select multiple files from the same folder by holding Ctrl or Shift. You can also select all files from the same folder by pressing Ctrl+A. After selecting files, don’t forget to enter album name. When done uploading, click on Create Album.

Hope this helps. Enjoy the Google+ experience.