ushahidi / Ushahidi_Web

Ushahidi v2. A platform that allows information collection, visualization and interactive mapping, allowing anyone to submit information through text messaging using a mobile phone, email or web form.
http://www.ushahidi.com
Other
899 stars 624 forks source link

admin/stats page return Error #1419

Open ssharoni opened 9 years ago

ssharoni commented 9 years ago

The system using this setup BUT i still get the same error when trying to use "admin/stats" And Public Listing not working: ERROR application/libraries/HttpClient.php [92]:

curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set

Subsection Directive Info Value Language Options asp_tags Allow ASP-style <% %> tags. Off File Uploads file_uploads Whether to allow HTTP file uploads. On Paths and Directories include_path Windows: "\path1;\path2" c:\php\includes" .:/usr/lib/php:/usr/local/lib/php Resource Limits max_execution_time 30 Resource Limits max_input_time 60 Resource Limits memory_limit 32M Data Handling register_globals You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. Off Language Options safe_mode Off File Uploads upload_max_filesize Maximum allowed size for uploaded files. 10M

main session.save_path Argument passed to save_handler. In the case of files, this is the path where data files are stored. Note: Windows users have to change this variable in order to use PHP's session functions. As of PHP 4.0.1, you can define the path as: session.save_path = "N;/path" where N is an integer. Instead of storing all the session files in /path, what this will do is use subdirectories N-levels deep, and store the session data in those directories. This is useful if you or your OS have problems with lots of files in one directory, and is a more efficient layout for servers that handle lots of sessions. NOTE 1: PHP will not create this directory structure automatically. You can use the script in the ext/session dir for that purpose. NOTE 2: See the section on garbage collection below if you choose to use subdirectories for session storage /tmp

<<<<<<

When try to open page : http://mydomain/ushahidi/admin/stats getting an error An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator. application/libraries/HttpClient.php [92]:

curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set

brianherbert commented 9 years ago

Take a look here: http://stackoverflow.com/questions/6918623/curlopt-followlocation-cannot-be-activated - This should help you get that working. It's a PHP safemode issue.

ssharoni commented 9 years ago

Hi thanks for the quick reply : this is the php setting on my server version native (5.4) safe mode is off server url http://chosen.org.il/ushahidi/ if you willing i can send you logIn I try to switch map source no help.. Public listing does not work as well. thanks shlomo sharoni

SubsectionDirectiveInfoValueLanguage Optionsasp_tagsAllow ASP-style <% %> tags.OffFile Uploadsfile_uploadsWhether to allow HTTP file uploads.OnPaths and Directoriesinclude_pathWindows: "\path1;\path2" c:\php\includes" .:/usr/lib/php:/usr/local/lib/phpResource Limitsmax_execution_time30Resource Limitsmax_input_time60Resource Limitsmemory_limit32MData Handling register_globalsYou should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of.OffLanguage Optionssafe_modeOffFile Uploadsupload_max_filesizeMaximum allowed size for uploaded files.10Mmainsession.save_pathArgument passed to save_handler. In the case of files, this is the path where data files are stored. Note: Windows users have to change this variable in order to use PHP's session functions. As of PHP 4.0.1, you can define the path as: session.save_path = "N;/path" where N is an integer. Instead of storing all the session files in /path, what this will do is use subdirectories N-levels deep, and store the session data in those directories. This is useful if you or your OS have problems with lots of files in one directory, and is a more efficient layout for servers that handle lots of sessions. NOTE 1: PHP will not create this directory structure automatically. You can use the script in the ext/session dir for that purpose. NOTE 2: See the section on garbage collection below if you choose to use subdirectories for session storage/tmp

ssharoni@gmail.com

M: +972-50-8481888


This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not distribute or copy this e-mail. This communication is strictly prohibited and may be unlawful. Please notify the sender immediately by e-mail, if you have received this e-mail by mistake, and delete this e-mail from your system. Thank you.


On Thu, Jan 29, 2015 at 5:44 PM, Brian Herbert notifications@github.com wrote:

Take a look here: http://stackoverflow.com/questions/6918623/curlopt-followlocation-cannot-be-activated

  • This should help you get that working. It's a PHP safemode issue.

— Reply to this email directly or view it on GitHub https://github.com/ushahidi/Ushahidi_Web/issues/1419#issuecomment-72046469 .