Elxis CMS Forum

Support => Administration => Topic started by: yiannisK on February 01, 2011, 00:06:52

Title: Re: Error in Backend "Invalid argument supplied for foreach()" [SOLVED]
Post by: yiannisK on February 01, 2011, 00:06:52
Hello there  :)

In my last project i am facing problem with the tmpr folder (i suppose)
Backend> When i am trying to use tools, create new menu item, install a new module i have errors messages like these:

Code: [Select]
URI: index2.php
Path: includes/Core/filemanager.class.php
Line: 358
Invalid argument supplied for foreach()

Code: [Select]
URI: index2.php?option=com_admin&task=tools
Path: includes/Core/filemanager.class.php
Line: 358
Invalid argument supplied for foreach()

I thing that this is a problem with the tmpr folder but checked the permissions "777", user "test_user", group "apache". Safe mode is off, the server have a lot of elxis sites without this problem.

I deleted the tmpr folder, created a new manually.
I see something strange... all files/folders created by Elxis in the tmpr folder are "755" for folders, "600" for files and the owner changes to "apache" instead of "test_user"  ???. Is this normal?
I have enabled the ftp settings in configuration.php file
I am sure that i make a mistake on my server settings... but what...  >:(
Title: Re: Error in Backend "Invalid argument supplied for foreach()"
Post by: webgift on February 01, 2011, 00:10:12
Hello Yianni ,
Have you checked that article regarding the recommended PHP Settings (http://wiki.elxis.org/wiki/PHP_settings) and Elxis ?

Edited :
As i can see on the source code of this file there is an (if) statement on which passes when we have enabled the FTP access on administrator area. Have you checked that ?
Title: Re: Error in Backend "Invalid argument supplied for foreach()"
Post by: yiannisK on February 01, 2011, 00:23:25
Thx Stavros, yes i know these settings from the php.ini file. This is the only site with problem  ???

Code: [Select]
allow_url_fopen = Off
short_open_tag = Off
register_globals = Off
display_errors = Off
magic_quotes_gpc = Off
date.timezone = "Europe/Athens"
session.save_path = "/absolute/path/to/folder/one_level_up_of/public_html"
disable_functions = "system, exec, passthru, shell_exec, suexec, dbmopen, popen, proc_open, disk_free_space, diskfreespace, set_time_limit, leak"

In the error log of the server there is nothing..
Title: Re: Error in Backend "Invalid argument supplied for foreach()"
Post by: webgift on February 01, 2011, 00:26:06
i have edited my previous post. Please verify me that FTP works.
Title: Re: Error in Backend "Invalid argument supplied for foreach()" [SOLVED]
Post by: yiannisK on February 01, 2011, 00:28:40
Ok i am stupid.... i am very tired, i had safe mode=ON!!

I need rest....
Thx anyway
Title: Re: Error in Backend "Invalid argument supplied for foreach()"
Post by: webgift on February 01, 2011, 00:30:54
:) My first thought is that.
Anyway ... "τελος καλό όλα καλά" ;D