Simple cms doesn't seem to work on client pc??

Discussion in 'PHP' started by 123GoToAndPlay, May 7, 2007.

  1. #1
    Hi all,

    I made a very simple cms with just two functions ( addContent and editContent), but on the client's computer it doesn't seem to worK??? And I don't get it.

    My client says they run a firewall, could this be problem???And how could i resolve this???

    regards
     
    123GoToAndPlay, May 7, 2007 IP
  2. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #2
    what do u mean it doesnt work ?

    you gave him a url where the cms is installed and he can't open it ?

    you installed the cms on his local machine ?
     
    commandos, May 7, 2007 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    A couple of more questions.

    Did you develope this on a local machine?

    Is it now on a local machince or web sever?

    Did you compare the php settings on both machines?
     
    Colbyt, May 7, 2007 IP
  4. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh, sorry

    I made a simple webbased php/mysql cms with just plain textfields (no tinymce)

    I gave him the url and he's able
    - to login
    - see the old content in a simple text field
    - make changes

    but when he hits the submit button, The data isn't being stored in the mysql db.

    So somehow the changed data isn't being sent to the server, right????
     
    123GoToAndPlay, May 7, 2007 IP
  5. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @colbyt, it's on a web server. I developed it under their url.


    [assumptions]
    Don't know if i need to check the php settings, because
    - i am able to make changes from different locations without any problems
    - it has to do with the client specific pc
     
    123GoToAndPlay, May 7, 2007 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If it's so simple, how about you upload the code? It'll be a lot easier to do that than try and guess at what you've done...
     
    TwistMyArm, May 7, 2007 IP
  7. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    @twistMyArm

    sure this is function addContent

    
    function addContent(){
    	global $database_connDB, $connDB;
    	$sql = "INSERT INTO tblContent(contentText) VALUES ('".$_POST['contentText']."' )";
    	 $result = mysql_query($sql, $connDB) or die(mysql_error());
    	 if($result) {
    	 	$msg = '<meta http-equiv="refresh" content="1" />';
    		} else {
    		$msg = "Oops, something went wrong";
    		}
    	return $msg;
    }
    
    Code (markup):
    but why do you need the code as i told you the code works (except for the most important pc in this case: the client's pc)
     
    123GoToAndPlay, May 7, 2007 IP
  8. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #8

    Unless the server config changed between the time you set it up and now, it is not a server issue. Simple test is can you edit and create content today while the client can not. That would also exclude php settings.

    If client is using Norton or has has high security settings in IE6-7 it might be that he needs to add the site to the approved list. Though generally this is more of a problem viewing than posting content.

    Beyond that the firewall is the only thing I can think of.
     
    Colbyt, May 7, 2007 IP
  9. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    tx, for thinking along Colbyt.

    Server config hasn't changed and i have edit and created content without any problems.

    I am really thinking it's the firewall, but it never happens to me before ;) The client doesn't know which firewall they have/use, but he knows they are running one.

    I am really curious if anyone else has encountered this problem
     
    123GoToAndPlay, May 7, 2007 IP
  10. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #10
    @123GoToAndPlay: 'we' mainly ask for code as sometimes there's some simple things that are obviously server-specific when you see them. I've re-read the thread and it would seem as though it's not related to that, so for that I apologise. You never know, though :)

    So just to be absolutely clear: when you access the same installation of the code on the server it works, though not when your user tries on the exact same installation?

    Have they tried different browsers?
     
    TwistMyArm, May 7, 2007 IP
  11. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #11
    Please do post the final resolution to this problem.
     
    Colbyt, May 7, 2007 IP
  12. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    well guys,

    I turned on error_reporting(E_ALL) and these error(s) came up.
    
    Notice: Undefined index:
    
    Code (markup):
    So i have changed

    
    if($_POST['submit']){
        echo "Updating....".editContent($_REQUEST['id']);
    }
    with
    
    if(isset($_POST['submit'])){
        echo "Updating....".editContent($_REQUEST['id']);
    }
    
    Code (markup):
    I have added isset() where necessary.

    As i haven't spoken to my client yet i don't know if this is the solution. I will let you know.
    If it is, it's code related and i should apologise for excluding that.

    Hope to get in contact with the client today.
     
    123GoToAndPlay, May 7, 2007 IP