PHP errors after installation MAMP via MacPorts

Jasper Frumau jasperfrumau at gmail.com
Fri Jan 15 06:41:50 PST 2010


Like mentioned in the last thread I got Drupal running on my MAMP (Mac Book
Pro) built on MacPorts Apache, MySQL5 and PHP 5.3.1 . I got Wordpress
running as well but when I tried to install a theme I got:

*Warning*: Invalid argument supplied for foreach() in *
/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26/index.php*on
line
*5*

*Parse error*: syntax error, unexpected $end in *
/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26/header.php*on
line
*154

*In the theme preview and*

*a crashed Wordpress with a bunch of code and these warnings:*
*
*Warning*: session_start()
[function.session-start<http://localhost/wordpress/wp-admin/function.session-start>]:
Cannot send session cache limiter - headers already sent (output started at
/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26/admin/admin-options.php:293)
in *
/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26/functions.php
* on line *145*

*Warning*: Cannot modify header information - headers already sent by
(output started at
/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26/admin/admin-options.php:293)
in */opt/local/apache2/htdocs/wordpress/wp-includes/functions.php* on line *
790*

*Warning*: Cannot modify header information - headers already sent by
(output started at
/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26/admin/admin-options.php:293)
in */opt/local/apache2/htdocs/wordpress/wp-includes/functions.php* on line *
791*

after activating the theme.

I wonder if I forgot to install certain PHP extensions or there needs to be
done something in httpd.conf. Anybody?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100115/230eda5b/attachment.html>


More information about the macports-users mailing list