Welcome, Guest
Username Password: Remember me

1.02 won't install on J2.5.3
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: 1.02 won't install on J2.5.3

1.02 won't install on J2.5.3 12 years ago #8200

  • mbrando
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
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?

Re: 1.02 won't install on J2.5.3 12 years ago #8202

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
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?

Re: 1.02 won't install on J2.5.3 12 years ago #8203

  • mbrando
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
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

Re: 1.02 won't install on J2.5.3 12 years ago #8213

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
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?

Re: 1.02 won't install on J2.5.3 12 years ago #8215

  • mbrando
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Hi,

PHP Version 5.3.6

- Mike

Re: 1.02 won't install on J2.5.3 12 years ago #8216

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
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.

Re: 1.02 won't install on J2.5.3 12 years ago #8243

  • mbrando
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Hi,

Thanks, I'll try that.

Re: 1.02 won't install on J2.5.3 12 years ago #8245

  • mbrando
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
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

Re: 1.02 won't install on J2.5.3 12 years ago #8246

  • mbrando
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
It did allow me to manually updated though. Very strange.

- Mike
  • Page:
  • 1
Time to create page: 0.16 seconds

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.