1.02 won't install on J2.5.3

mbrando
13 years, 1 month ago
Hi,

Mobile joomla says there is an update but the update from 1.01 to 1.02 fails on J2.5.3

Unknown Archive type
Update path does not exist
JInstaller: :Install: Cannot find XML setup file
Unable to detect manifest file

Updating COM_INSTALLER_TYPE_TYPE_ was successful.



Then if I manually download and update it does nothing. Goes through the motions of uploading and installing but only takes you back the install screen with no update applied.

Thoughts?
dryabov
13 years, 1 month ago
Just tested update from 1.0.1 to 1.0.2 on clear J2.5.3 website, and it's worked well.
mbrando wrote:
Goes through the motions of uploading and installing but only takes you back the install screen with no update applied.

Do you have warnings in error_log that could be related to the issue?
mbrando
13 years, 1 month ago
Hi,

Error Log info:

[20-Mar-2012 09:16:02] PHP Warning: substr() expects parameter 1 to be string, array given in /home/account/public_html/subsites/beta/libraries/joomla/installer/helper.php on line 61
[20-Mar-2012 09:16:02] PHP Warning: substr() expects parameter 1 to be string, resource given in /home/account/public_html/subsites/beta/libraries/joomla/installer/helper.php on line 61
[20-Mar-2012 09:51:56] PHP Warning: substr() expects parameter 1 to be string, array given in /home/account/public_html/subsites/beta/libraries/joomla/installer/helper.php on line 61
[20-Mar-2012 09:51:56] PHP Warning: substr() expects parameter 1 to be string, resource given in /home/account/public_html/subsites/beta/libraries/joomla/installer/helper.php on line 61


helper File issue?

Thanks,
Mike
dryabov
13 years, 1 month ago
This error most likely mean that you use one of early PHP5 versions (5.0 or 5.1). Joomla consider that PHP's function stream_get_meta_data returns http headers of request in array element ['wrapper_data'], but seems in early PHP it was ['wrapper_data']['headers'] element. Unfortunately, this issue is almost unknown (and even isn't documented on php.net), so Joomla doesn't check it.

What PHP version do you use?
mbrando
13 years, 1 month ago
Hi,

PHP Version 5.3.6

- Mike
dryabov
13 years, 1 month ago
OK, I'll look at php sources. Maybe it depends on php options. You can patch Joomla:
libraries/joomla/installer/helper.php, line 59
		foreach ($meta_data['wrapper_data'] as $wrapper_data)

should be replaced by
		$wrappers = is_array($meta_data['wrapper_data']['headers']) ? $meta_data['wrapper_data']['headers'] : $meta_data['wrapper_data'];
foreach ($wrappers as $wrapper_data)


PS. I found discussion of similar issue in Wordpress: core.trac.wordpress.org/ticket/8476
with the same solution.
mbrando
13 years, 1 month ago
Hi,

Thanks, I'll try that.
mbrando
13 years, 1 month ago
Now I get this.

Warning: Invalid argument supplied for foreach() in /home/account/public_html/subsites/beta/libraries/joomla/installer/helper.php on line 62
ok
mbrando
13 years, 1 month ago
It did allow me to manually updated though. Very strange.

- Mike

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.