View Issue Details

IDProjectCategoryView StatusLast Update
0001217OXID eShop (all versions)5. ------ UpdateApp / Update ------public2009-08-21 12:42
Reporterexo Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.5 revision 21618 
Fixed in Version4.1.6 revision 22740 
Summary0001217: 2 warnings in updateApp
DescriptionWarning: array_merge() [function.array-merge
http://www.emotion-moebel.de/updateApp/function.array-merge> ]: Argument #1 is
not an array in /www/htdocs/w00ad185/oxid413/updateApp/core/updateConfig.php on
line 49
 
Warning: Invalid argument supplied for foreach() in
/www/htdocs/w00ad185/oxid413/updateApp/core/updateConfig.php on line 49


TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

sarunas_valaskevicius

2009-08-19 14:31

reporter   ~0001451

Reminder sent to: exo

Hi,

the problem is that glob function did not return an array.
One possible reason for this is that updateApp/updates/php directory was not created while extracting archive (for this release, it should be empty).

for quick solving of your case, pls could you check if this directory is created and if not, create it empty?

exo

2009-08-19 14:42

reporter   ~0001452

Hi,

in the last release of the oxid pe shop and the first with the updateApp i`ve uploaded the complete updateApp folder. In this release the php-directory is empty.

sarunas_valaskevicius

2009-08-19 14:59

reporter   ~0001453

Reminder sent to: exo

Hi,

could you pls check if permissions allow to execute that directory ? (read + execute for web server user).

if permissions are ok, and problem still persists, try to create any (not number based) php file in that dir (e.g. x.php).

Regards,

exo

2009-08-19 15:03

reporter   ~0001454

Ok, the permissions have no effect on the error.

The solve is to make a file in the php-dir. the error is gone while i have put an empty file in it, but is this good so?

sarunas_valaskevicius

2009-08-19 15:15

reporter   ~0001455

Reminder sent to: exo

this bug will still be fixed (glob result handling - as on some systems it returns false instead of empy array),

but as this error is gone, you should be able to use updateApp normally. Because created file name is of letters, and not numbers only, updateApp wont take it for execution.

sarunas_valaskevicius

2009-08-21 12:42

reporter   ~0001479

glob result checked - if it did not return an array, empty array is used