hello Please helpe me I become folowing errors in the log files
my domain is:
Thank you
- MSAnswered
Hello,
Please download the latest file and replace
app/core/MY_Input.php
with latest OR replace the contents of the file with below<?php (defined('BASEPATH')) or exit('No direct script access allowed'); class MY_Input extends CI_Input { public function __construct() { parent::__construct(); } protected function _fetch_from_array(&$array, $index = null, $xss_clean = null) { is_bool($xss_clean) or $xss_clean = $this->_enable_xss; // If $index is NULL, it means that the whole $array is requested isset($index) or $index = array_keys($array); // allow fetching multiple keys at once if (is_array($index)) { $output = []; foreach ($index as $key) { $output[$key] = $this->_fetch_from_array($array, $key, $xss_clean); } return $output; } if (isset($array[$index])) { $value = $array[$index]; } elseif (($count = preg_match_all('/(?:^[^\[]+)|\[[^]]*\]/', $index, $matches)) > 1) { // Does the index contain array notation $value = $array; for ($i = 0; $i < $count; $i++) { $key = trim($matches[0][$i], '[]'); if ($key === '') { // Empty notation will return the value as array break; } if (isset($value[$key])) { $value = $value[$key]; } else { return null; } } } else { return null; } if (is_array($value)) { return $this->security->xss_clean($value); } return ($xss_clean === true) ? addSlashes(stripslashes($this->security->xss_clean($value))) : addSlashes(stripslashes($value)); } }
Let me know the result.
Thank you
- AHAnswered
Hello Mian Saleem Thank You very much for your support. I tried replced your code in My_Input.php. But still not working.
- MSAnswered
Hello,
What is the error now? Please check error logs again.
Thank you
- AHAnswered
again…
Attachments - MSAnswered
Hello,
There is no other error. Please check your server error logs or with your server admin about what causing the 500 error.
Let me know, the error or admin response.
Thank you
- AHAnswered
I called them Server Provider, they said it’s no matter on the server. It’s Only the Code Problem and they show me how to activated the logs-file with a code in php.ini but still not working . So tomorrow I called them again and ask them about the phi.ini. If it’s work I get more Server Information. So I can tell you more. But now the code is after intallation still not working and I don’t know How to do ? !
- MSAnswered
Hello,
The same code is being used by many others and on demo. But still if your server admins says that it’s code, let me know the server details to check.
Thank you
- AHAnswered
Hello Mian Saleem I Installed again this Software, I send you new Logs, may be can you find the Error. I am waiting for new Information from Admins Server. Thank you
Attachments - MSAnswered
Hello,
Logs has only database connection errors. Let me know the server details in private reply. I will help you check.
Thank you
- MSAnswered
Hello,
.htaccess
file should have these contents. If not you can edit it and change.DirectoryIndex index.php index.html <IfModule mod_rewrite.c> RewriteEngine On # RewriteBase /basepath/ RewriteCond $1 !^(index\.php|assets|install|update) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # For godady Shared Hosting Server uncomment the line below RewriteRule ^(.*)$ index.php?/$1 [L] # Please comment this if you have uncommented the above # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] </IfModule>
Thank you
- Login to Reply