Welcome Guest, Not a member yet? Register   Sign In
Error at the beginning
#1

[eluser]aboni[/eluser]
Hello,

I use Windows XP with SP 2
Apache/2.0.63 (Win32)
PHP/4.4.8
mod_fastcgi/2.4.2
Server at 127.0.0.1 Port 80

I downloaded the lastest version of CodeIgniter and when I tried to run (http://127.0.0.1/code/index.php), the browser show this error:

Warning: Too many arguments for function pathinfo: 1 accepted, 2 provided. in C:\Arquivos de programas\Apache Group\Apache2\htdocs\code\index.php on line 96

Warning: Too many arguments for function pathinfo: 1 accepted, 2 provided. in C:\Arquivos de programas\Apache Group\Apache2\htdocs\code\index.php on line 98

Runtime error in file C:\Arquivos de programas\Apache Group\Apache2\htdocs\code\index.php on line 123: couldn't find include file C:/Arquivos de programas/Apache Group/Apache2/htdocs/code/system/codeigniter\CodeIgniter.Array (include path was C:/roadsend/projects;./)
Stack trace:
File C:\Arquivos de programas\Apache Group\Apache2\htdocs\code\index.php line 123: require_once(C:/Arquivos de progr...)

I updated the config.php file at \system\application\config to
$config['base_url'] = "http://127.0.0.1/code/";
$config['index_page'] = "index.php?";

Someone can help me?

thks

aboni
#2

[eluser]Gavin Blair[/eluser]
Try upgrading to PHP5?
#3

[eluser]wiredesignz[/eluser]
@aboni, there is no code to fail on line 96 of CodeIgniter index.php, nor is there on line 98, and there is no line 123 at all.

I think you are trying to run the wrong application.

Welcome to CI forums and Good luck.
#4

[eluser]aboni[/eluser]
wiredesignz / Gavin Blair ,

thanks to your anwsers.

Ok. My mistake. The errors are in these lines:

define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION)); -- line 88

and

define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); -- line 90

Follow bellow the code block
/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT - The file extension. Typically ".php"
| FCPATH - The full server path to THIS file
| SELF - The name of THIS file (typically "index.php)
| BASEPATH - The full server path to the "system" folder
| APPPATH - The full server path to the "application" folder
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');

Please, remmeber that I put the CodeIgniter Application under htdocs\code. This index page not work.

thks,
#5

[eluser]aboni[/eluser]
I will try PHP version 5.0 until the end of day.
#6

[eluser]aboni[/eluser]
Hi,

I changed the PHP version for 5.2.6 and now I can see index page.

Thks for help.




Theme © iAndrew 2016 - Forum software by © MyBB