⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Error loading content.. PATHS PROBLEMS?



wildfandango
  • profile picture
  • Member

Posted 03 July 2017 - 17:46 PM

 
Hello everyone. My problem is with the paths.
 
I have installed GROCERYCRUD on an IIS server and when I connect I get this error message (in my dev env. with XAMPP runs OK):
 
PHP Error was encountered
Severity: Warning
Message: include (assets / grocery_crud / languages ​​/ spanish.php): failed to open stream: No such file or directory
Filename: libraries / Grocery_CRUD.php
Line Number: 4025
 
The issue is that the route exists I imagine that it will be some configuration problem but I do not know how to solve it:
 
The routes and domains are real belong to development site with test data ... login (admin / amin)
 
Virtualhost aims to:
C:\inetpub\atlantice\CIIES.AC2.ES\codeigniter
 
My web.config file contains:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>


     <rewrite>
          <rules>
              <rule name="Index">
              <match url="^(.*)$" />
              <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
                    <action type="Rewrite" url="index.php/{R:1}" />
            </rule>
          </rules>
        </rewrite>
    </system.webServer>
</configuration>
 
My index.php file contains:
$system_path = 'C:\inetpub\atlantice\CIIES.AC2.ES\codeigniter\system';
$application_folder = 'C:\inetpub\atlantice\CIIES.AC2.ES\codeigniter\application';
$view_folder = '';
 
My config.php file contains:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$config['base_url'] = 'http://ciies.ac2.es';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
$config['url_suffix'] = '';
$config['language'] = 'spanish';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['composer_autoload'] = FALSE;
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
$config['allow_get_array'] = TRUE;
$config['log_threshold'] =1;
$config['log_path'] = '';
$config['log_file_extension'] = '';
$config['log_file_permissions'] = 0644;
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['error_views_path'] = '';
$config['cache_path'] = '';
$config['cache_query_string'] = FALSE;
$config['encryption_key'] = '';
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly']  = FALSE;
$config['standardize_newlines'] = FALSE;
$config['global_xss_filtering'] = FALSE;
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();
$config['compress_output'] = FALSE;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = FALSE;
$config['proxy_ips'] = '';
 
I am very lost I would appreciate some help ...
THX in advance...
 
 
 
 
 
 
 
 

 


wildfandango
  • profile picture
  • Member

Posted 04 July 2017 - 17:10 PM

Hello after several tests I solved the problem that was originated in the system of Windows permissions of IIS: The following index.php lines can be left by default if we have not renamed the folder ... which is my case.

$system_path = 'system';
$application_folder = 'application';

But in reality the problem is in permissions of the Windows folder that in the case of CODEIGNITER and IIS have to be for ALL_USERS and IUSR at least:

READ and LIST FOLDER CONTETS

Hello after several tests I solved the problem that was originated in the system of permissions of IIS: The following index.php lines can be left by default if we have not renamed the folder ... which is my case. But in reality the problem was casuado by permissions of the folder that in the case of CODEIGNITER and IIS have to be for ALL_USERS and IUSR at least READ and LIST FOLDER CONTETS