Good day,
I have tried several times to successfully install OpenPublic onto my test server but have errors each and every time! I have set the parameters in my php.ini file to the suggestions found on the website and still I get errors. If I continue with these errors, I get errors all over the site! The errors that appear several times in a red box above the site information in the Configure Site dialog of the install are:
Notice: Array to string conversion in _menu_router_build() (line 3601 of C:\wamp\www\goe\includes\menu.inc).
Notice: Array to string conversion in menu_link_save() (line 3155 of C:\wamp\www\goe\includes\menu.inc).
I would like to use OpenPublic on a web site for a client but with these errors, I cannot do so. Can you please figure out what the issue is and let me know how to fix it?
I appreciate it and will thank anyone ahead of time that can help me with this.
Comments
Comment #1
photoshopman1972 commentedI have made some progress. I changed the version of WAMP to one that was using a older version of PHP. The one I was using came with version 5.4 but the one I used over the weekend has 5.3 and it seemed to do better!
Still having issues completing cleanly!
The error messages keep on complaining about time limits being reached even though in the PHP.ini file I jacked up the values to more than what the web site states is needed.
I'm now wondering if an PHP accelerator is required to install this? The very last time I tried to install OpenPublic, it most of the way installed and then had a error while it was doing site configuration. I for kicks tried to view the site. The site seems to have installed correctly except for one error message on the OpenPublic page of the site.
The error message is "Notice: Undefined index: title in _link_sanitize() (line 495 of C:\wamp\www\goe\profiles\openpublic\modules\contrib\link\link.module)."
I still do not know why this is causing a ton of errors! I have installed Drupal core many times and not had any issues. Guess it shows how green I am when it comes to a distribution other than core.
Any foresight here is greatly appreciated.
Thanks!
Comment #2
drupa11y commentedHaving similar issues with PHP 5.4.4 and XCache.
Using PHP 5.3.18 and APC solved the displayed errors, but the last step did also not work to finalise the installation. Just a blank white page appears.
The latest error I get from a new clean try to install:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://d7openpublic.dev/install.php?profile=openpublic&locale=en&id=1&op=do StatusText: Internal Server Error ResponseText:
Comment #3
drupa11y commentedAfter some trys and reloads, also use now PHP 5.2.17 with XCache, somehow the admin user was created and I could log in.
The last installationstep still returns a blank page.
Comment #4
drupert55 commentedsubscribed
Comment #5
randomblink commentedWhen I install on my host I get no INDEX.php file at all. It installs, connects to (but doesn't populate the db), and then comes back with a folder list of my host... ugh.
Comment #6
gilcreque commentedI can confirm switching from PHP 5.4.4 (to 5.2.17) and switching from XCache (to APC) got me through the OpenPublish install just fine. I also modified my php.ini by increasing my max_execution_time to 60 and memory_limit to 256M.
Mac OS X 10.8.2
MAMP 2.1.1
Comment #7
chartmann commentedMy install failed several times using uniserver and WAMP server, even along side of modifying the max_execution_time to 1500 and the memory limit to 256M. I made the same mods in php.ini and used XAMPP 1.8.1 (the latest) instead and it worked. I still receive the "Notice: Array to string conversion in _menu_router_build()" error, but at least I got it installed.
Comment #8
chartmann commentedI changed line 3618 in includes/menu.inc to "array_multisort($sort, SORT_NUMERIC, $menu, SORT_ASC);". The menus and breadcrumbs still work as expected, and the error is gone. I think it's because SORT_STRING assumes all array items are strings while SORT_ASC works for mixed arrays.
Please note that I have only a narrow grasp of PHP, and this is all based on my best guess of how things work. I would appreciate feedback if this simply makes no sense at all.
Thanks.
Comment #9
hefox commentedCore problem?
Re-open if still an issue