I've installed drupal 6.6 on my OSX laptop, and configured a site, including customizing a subtheme in Zen.

I copied it to my dedicated webhost server.

It produces the errors shown below.

To copy the site from OSX to webhosting server, I used phpMyAdmin to dump the drupal database to an sql file at the root of the local site, then used OSX Finder to compress (zip) root of local site, then sftp'd to server, unzipped, and used mysql command line to load database.

Suggestions?

It produces these errors:

warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 443.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 448.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 443.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 448.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 443.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 448.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 889.
warning: array_map() [function.array-map]: Argument #2 should be an array in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/modules/system/system.module on line 975.
warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 1728.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 1728.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'zen_breadcrumb' was given in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'zen_menu_item_link' was given in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'zen_menu_item_link' was given in /var/www/vhosts/accordalliance.org/subdomains/staging/httpdocs/includes/theme.inc on line 597.

The environment on my server is:

Drupal 6.6, 2008-10-22

-bash-3.2$ php --version
PHP 5.1.6 (cli) (built: Jul 16 2008 19:53:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

-bash-3.2$ more /etc/redhat-release
CentOS release 5.2 (Final)

-bash-3.2$ /usr/sbin/httpd -V
Server version: Apache/2.2.3
Server built: Nov 12 2008 10:41:27
Server's Module Magic Number: 20051115:3
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

-bash-3.2$ mysql -V
mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i686) using readline 5.0

The environment on my OSX laptop is:

Drupal 6.6, 2008-10-22

@68 ~ % php --version
PHP 5.2.6 (cli) (built: Jul 17 2008 23:04:49)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

OSX 10.5.5

@68 ~ % /usr/sbin/httpd -V
Server version: Apache/2.2.9 (Unix)
Server built: Sep 18 2008 21:54:05
Server's Module Magic Number: 20051115:15
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/bin/suexec"
-D DEFAULT_PIDLOG="/private/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/private/var/run/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/private/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/private/etc/apache2/httpd.conf"

@68 ~ % mysql -V
mysql Ver 14.12 Distrib 5.0.45, for apple-darwin9.1.0 (i686) using EditLine wrapper

Comments

cherylchase’s picture

I switched the theme to bluemarine, then back to my zen subtheme, and the problem seems to be resolved.

I did, however, have to use the advice on the page below to get rid of another error in theme.inc by casting result of variable_get().

http://drupal.org/node/67471

aaronbauman’s picture

i was using a custom zen-based theme, and got this error repeatedly and sporadically.
I checked my custom theme, and turns out my .info file was empty.