Part of the EllisLab Network
   
1 of 3
1
Godaddy problems
Posted: 12 August 2007 11:46 AM   [ Ignore ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

Hello,
I am facing some series of problems in the godaddy server.
1. Its giving problem ‘404 Page Not Found’ when requesting default route.

2. Request with full url with controller gives ‘No input file specified’. Which was solved by putting ‘index.php?’ in the config file. But i want to remove the index.php from the url. Have tried all the .htaccess settings suggested in the forum.

3. All the database transaction gives a error:

A PHP Error was encountered

Severity
Warning

Message
mysql_real_escape_string() expects parameter 2 to be resourceboolean given

Filename
mysql/mysql_driver.php

Line Number
227 

Please help me some one. Its urgent, as i have developed clients system in CI, fully functional. Now its giving problem for installation in the live server.

Thank you all.

Profile
 
 
Posted: 12 August 2007 09:51 PM   [ Ignore ]   [ # 1 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

Try re-ftping CI up to your server.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 12 August 2007 11:04 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007
Derek Allard - 13 August 2007 01:51 AM

Try re-ftping CI up to your server.

Thanks Derek, for the suggestion.
I have tried that for several times. No luck. Any more ideas?

any one godaddy users out there?

Profile
 
 
Posted: 12 August 2007 11:08 PM   [ Ignore ]   [ # 3 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

There’s some helpful advice here?

http://codeigniter.com/user_guide/installation/troubleshooting.html

What happens if you put a ? after index.php?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 13 August 2007 03:59 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

Thanks again Derek.
I have tried all the suggestions mentioned here:
http://codeigniter.com/user_guide/installation/troubleshooting.html

which actually solved my problem No. 1, the 404 error for the default controller.
they worked for:

$config['uri_protocol']    "QUERY_STRING";
and
$config['uri_protocol']    "ORIG_PATH_INFO"

But other settings either failed or was giving me the default controller for all the url.

Its still working with the following for all the pages for settings:

$config['index_page'"index.php?"

But failed to remove the index.php with all the suggestions in the forum. which is problem No. 2

My major problem is the No. 3, all the database insertion is giving the problem mentioned in No. 3

Isn’t there any godaddy user who is using live CI there?
Please helpppppppppppp. :D

Take care.
AdnaN

Profile
 
 
Posted: 13 August 2007 04:11 PM   [ Ignore ]   [ # 5 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

could you post the code that you are using to insert?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 13 August 2007 04:21 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

Sure. But just to inform you, this code is perfectly working in my local server as well as in my live server.
its just causing problem in my clients godaddy server.

$data = array(
         
'name' => $this->input->post('name'
        );
            
$this->db->insert('categories'$data); 

nothing much there. table has id and name fields.

Profile
 
 
Posted: 13 August 2007 04:32 PM   [ Ignore ]   [ # 7 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

What version of PHP?  Is it running in safe mode, or is there anything else notable or unusual about its setup?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 13 August 2007 04:34 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

you can see the php versions and others in here:
http://www.sharpenedges.com/v1.2/testing.php

Profile
 
 
Posted: 13 August 2007 04:41 PM   [ Ignore ]   [ # 9 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

Wow, sorry, but I’m stumped.  So everything BUT inserts work?  What if you do a manual insert (ie: write out the full SQL and run a $this->db->query();?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 13 August 2007 05:47 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

haven’t checked rest. i was stuck with this one. as i have clean database for the installation.
full sql gives same error if i use the “$this->db->escape()”. If not used, it does not give any error, but no data is inserted to database. I am getting mad :(

same problem with this:
$this->db->query("INSERT INTO categories (name) VALUES(".$this->db->escape($this->input->post('name')).")");

no problembut no data inserted as well:
$this->db->query("INSERT INTO categories (name) VALUES(".$this->input->post('name').")"); 

database connection is ok, or it supposed to give error at the script initialization.

Profile
 
 
Posted: 13 August 2007 06:08 PM   [ Ignore ]   [ # 11 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

What version of CI is this?  1.5.4?  Odd.

I’m sorry, short of tracing through your code, I can’t think of anything else to do.  It sounds very, very much like you need to re-upload your files, but I know you’ve already done that.  I’m stumped.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 13 August 2007 06:22 PM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

Yep, its the latest 1.5.4
will re upload. what else i can do now? smile

isn’t there any godaddy users here? using CI?

Profile
 
 
Posted: 13 August 2007 06:37 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  16
Joined  03-22-2007

nope, no luck. same problems sick  confused

Profile
 
 
Posted: 14 August 2007 01:38 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  234
Joined  03-12-2007

I just received the same error while testing locally.  I was trying to perform a delete.

EDIT: I was having this problem because I had set my db config to use my production database and forgot to switch back to my development db when I was testing locally (genius I know…).  So to the OP, check your db config and make sure you are connecting to the correct database.

Profile
 
 
Posted: 14 August 2007 02:19 PM   [ Ignore ]   [ # 15 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2280
Joined  07-30-2007

Don’t use GoDaddy for hosting?

Sorry, I know it doesn’t help your situation, but for real - they suck for anything beyond domain management. smile

 Signature 

Follow me on twitter here.
MichaelWales.com | MichaelWales.info

Profile
 
 
   
1 of 3
1