Results 1 to 14 of 14

Thread: help

  1. #1
    Join Date
    Aug 2005
    Posts
    36

    Default help

    i cant get in to my admin

    panel
    when i try to login

    i get this message

    Warning: Cannot modify header information - headers already sent by (output started at /home/jona7709/public_html/themes/default/msg.php:1) in /home/jona7709/public_html/lib/users.class.php on line 274

    Warning: Cannot modify header information - headers already sent by (output started at /home/jona7709/public_html/themes/default/msg.php:1) in /home/jona7709/public_html/lib/users.class.php on line 284

    Warning: Cannot modify header information - headers already sent by (output started at /home/jona7709/public_html/themes/default/msg.php:1) in /home/jona7709/public_html/lib/users.class.php on line 293

    Warning: Cannot modify header information - headers already sent by (output started at /home/jona7709/public_html/themes/default/msg.php:1) in /home/jona7709/public_html/login.php on line 83



    what do i do please help

  2. #2
    Join Date
    Feb 2005
    Posts
    8

    Default

    Check for blank lines between the opening and closing PHP tags at the beginning and end of the document "msg.php". Usually it's a space at the bottom.

  3. #3
    Join Date
    Aug 2005
    Posts
    36

    Default

    i cant find the folder with it in is it in admin normaly or public_html

  4. #4
    Join Date
    Aug 2005
    Posts
    36

    Default

    <?


    // ---------------------------
    // --------- general ---------
    // ---------------------------

    // generate form from additional field - integer, float, double, varchar, char, date
    $msg["30001"] = "<input type=text name=\"<%field_name%>\" size=40 value=\"<%field_value%>\"><font face=arial color=green size=2></font>";

    // generate form from additional field - text
    $msg["30002"] = "<textarea name=\"<%field_name%>\" cols=40 rows=6><%field_value%></textarea><font face=arial color=green size=2><br></font>";

    // generate additional field information in view links
    $msg["30003"] = "<%field_name%> : <%field_value%><br>";

    // generate form from additional field - image -> modify form
    $msg["30004"] = "
    <img src=../<%field_value%>>
    <%<%field_name%>_upload%> <%<%field_name%>_remove%>
    ";

    // generate form from additional field - image -> add form
    $msg["30005"] = "You can add image later";

    // Update number of link in category
    $msg["30006"] = "<p>You need to perform <a href=app_update_nol.php>Update Number of Links</a>
    in order to update the number links in each category. It may takes long time depend on how many
    categories that you have. If you have many categories it would be better if you
    perform this action once after you have done with adding, editing, deleting,
    or validating links.";

    // Update number of link in category
    $msg["30007"] = "<p>You need to perform <a href=cat_path_update.php>Update Category Path</a>
    in order to update the path of each category. It may takes long time depend on how many
    categories that you have. If you have many categories it would be better if you
    perform this action once after you have done with adding, editing, or
    deleting categories.";


    //----------- summary.php -----------

    // error msg

    //$msg["20001"] = "Please enter your username";


    //----------- cat_add.php + cat_edit.php -----------

    // visible : yes/no text
    $msg["20011"] = "Yes,No";
    // visible : yes/no value
    $msg["20012"] = "1,0";

    // permission : text
    $msg["20013"] = "No need editor's approval,Require editor's approval,Not allowed";
    // permission : value
    $msg["20014"] = "0,1,2";

    // registered_only : yes/no text
    $msg["20015"] = "Yes,No";
    // registered_only : yes/no value
    $msg["20016"] = "1,0";


    // success
    $msg["20017"] = "New category has been added";

    // error msg

    $msg["20021"] = "The name of category is required";



    //----------- cat_view.php -----------

    // category's path : top
    $msg["20031"] = "<a href=cat_view.php>Top</a>";


    //----------- cat_delete.php -----------

    // successfully deleted
    $msg["20041"] = "<%category%> .... <font color=green>deleted</font><br>";

    // there's a link
    $msg["20042"] = "<%category%> .... <font color=red><b>failed :</b> There're links inside this category</font><br>";

    // nothing deleted
    $msg["20043"] = "There's no category deleted";


    //----------- cat_edit.php -----------

    // success
    $msg["20051"] = "Category has been changed";



    //----------- link_add.php + link_edit.php -----------

    // custom field's header
    $msg["20061"] = "
    <tr>
    <td class=tbl_caption colspan=2>
    Custom Fields
    </td>
    </tr>";

    // success
    $msg["20062"] = "New link has been added.";


    // error msg

    $msg["20071"] = "Title field is required";
    $msg["20072"] = "Url field is required";
    $msg["20073"] = "Category field is required";
    $msg["20074"] = "Invalid email pattern";
    $msg["20075"] = "Bid value must be in currency format";

    //----------- link_add.php -----------

    // date format

    $msg["20081"] = "d-M-Y";



    //----------- link_delete.php -----------

    // successfully deleted
    $msg["20091"] = "<%title%> .... <font color=green>deleted</font><br>";

    // nothing deleted
    $msg["20092"] = "There's no link deleted";


    //----------- link_edit.php -----------

    // success
    $msg["20101"] = "Link has been changed.";


    //----------- link_search.php -----------

    // custom field's header
    $msg["20111"] = "
    <tr>
    <td class=tbl_caption colspan=2>
    Custom Fields
    </td>
    </tr>";


    //----------- link_validate.php -----------

    // approved
    $msg["20121"] = "<%title%> .... <font color=green>Approved</font><br>";

    // nothing approved nor rejected
    $msg["20122"] = "There's no link approved nor rejected";

    // rejected
    $msg["20123"] = "<%title%> .... <font color=green>Rejected</font><br>";

    // nothing approved nor rejected
    $msg["20122"] = "There's no link approved nor rejected";


    // email subject - approved to submitter
    $msg["20131"] = "Your submission has been approved";

    // email from - approved to submitter
    $msg["20132"] = "INDEXU.COM <info@indexu.com>";

    // email subject - approved to editor
    $msg["20133"] = "Link approved";

    // email from - approved to editor
    $msg["20134"] = "INDEXU.COM <info@indexu.com>";


    // email subject - rejected to submitter
    $msg["20135"] = "Your submission has been rejected";

    // email from - rejected to submitter
    $msg["20136"] = "INDEXU.COM <info@indexu.com>";

    // email subject - rejected to editor
    $msg["20137"] = "Link rejected";

    // email from - rejected to editor
    $msg["20138"] = "INDEXU.COM <info@indexu.com>";



    //----------- review_validate.php -----------

    // approved
    $msg["20141"] = "<%title%> .... <font color=green>Approved</font><br>";

    // nothing approved nor rejected
    $msg["20142"] = "There's no review approved nor rejected";

    // approved
    $msg["20143"] = "<%title%> .... <font color=green>Rejected</font><br>";

    // date format

    $msg["20144"] = "d-M-Y";


    //----------- user_add.php -----------

    // error msg

    $msg["20151"] = "Username is required";
    $msg["20152"] = "Username must be at least 3 characters";
    $msg["20153"] = "Password is required";
    $msg["20154"] = "Email address is required";
    $msg["20155"] = "Invalid email address pattern";
    $msg["20156"] = "Username already exist";
    $msg["20157"] = "Username must be alphanumeric";

    // success

    $msg["20161"] = "New user has been added";


    //----------- user_edit.php -----------

    // error msg

    $msg["20171"] = "Password is required";
    $msg["20172"] = "Email address is required";
    $msg["20173"] = "Invalid email address pattern";

    // success

    $msg["20181"] = "User's profile has been changed";


    //----------- user_delete.php -----------

    // successfully deleted
    $msg["20191"] = "<%username%> .... <font color=green>deleted</font><br>";

    // nothing deleted
    $msg["20192"] = "There's no user deleted";



    //----------- editor_add.php -----------

    // error msg

    $msg["20201"] = "Category is required";
    $msg["20202"] = "Username is required";
    $msg["20203"] = "Username does not exist";
    $msg["20204"] = "Username already become an editor for this category";
    $msg["20205"] = "Administrator is not allowed to be an editor.";

    // success

    $msg["20211"] = "New editor has been added";



    //----------- editor_validate.php -----------

    // approved
    $msg["20221"] = "<%username%> .... <font color=green>Approved</font><br>";

    // nothing approved nor rejected
    $msg["20222"] = "There's no editor approved nor rejected";

    // approved
    $msg["20223"] = "<%username%> .... <font color=green>Rejected</font><br>";

    // date format

    $msg["20231"] = "d-M-Y";



    //----------- editor_delete.php -----------

    // success

    $msg["20241"] = "<%username%> has been removed as editor for category <%category%>";



    //----------- link_bad.php -----------

    // date format

    $msg["20251"] = "d-M-Y";


    //----------- link_bad_delete.php -----------

    // successfully deleted
    $msg["20261"] = "<%title%> .... <font color=green>deleted</font><br>";

    // nothing deleted
    $msg["20262"] = "There's no report or link deleted";



    //----------- message_create.php -----------

    // error msg
    $msg["20271"] = "Message subject is required";
    $msg["20272"] = "Message body is required";

    // new message created
    $msg["20281"] = "New message has been created";



    //----------- message_view.php -----------

    // date format

    $msg["20291"] = "d-M-Y";


    //----------- message_edit.php -----------

    // error msg
    $msg["20301"] = "Message subject is required";
    $msg["20302"] = "Message body is required";

    // message changed
    $msg["20311"] = "Message has been changed";


    //----------- message_delete.php -----------

    // message delete
    $msg["20321"] = "Message has been deleted";


    //----------- message_send.php -----------

    // email from - send mailing list

    $msg["20331"] = "INDEXU.COM <info@indexu.com>";

    // email from - send mailing list

    $msg["20341"] = "Message has been sent to all subscribers";



    //----------- message_subscriber_delete.php -----------

    // message delete
    $msg["20351"] = "Subscriber has been deleted";


    //----------- db_alter.php & db_alter_change.php -----------

    // error msg
    $msg["20361"] = "Field name is required";
    $msg["20362"] = "Field type is required";

    // field added
    $msg["20371"] = "New field has been added";

    // field deleted
    $msg["20372"] = "Field has been deleted";

    // query executed
    $msg["20373"] = "Query executed";

    // query failed
    $msg["20374"] = "Query failed";

    // field changed
    $msg["20375"] = "Field has been changed";


    //----------- app_setup.php -----------

    // error msg
    $msg["20381"] = "Indexu can't find executable files";
    $msg["20382"] = "Indexu can't find admin template files";
    $msg["20383"] = "Indexu can't find theme files";

    // setting changed
    $msg["20384"] = "Application setting has been changed";


    //----------- app_change_pwd.php -----------

    // error msg
    $msg["20391"] = "Prensent password is required";
    $msg["20392"] = "New password is required";
    $msg["20393"] = "Confirmation new password is required";
    $msg["20394"] = "new password and confirmation is not the same";


    // change pwd failed
    $msg["20401"] = "Change password failed";
    $msg["20402"] = "Password has been changed";


    //----------- app_change_email.php -----------

    // error msg
    $msg["20411"] = "Email address is required";

    $msg["20412"] = "Administrator email address has been changed";



    //----------- template_modify.php -----------

    // success
    $msg["20421"] = "Template file has been changed";


    //----------- img_remove.php -----------

    // success
    $msg["20431"] = "Image file has been removed";

    // fail
    $msg["20432"] = "Image file is not exist";


    //----------- img_upload.php -----------

    // success
    $msg["20441"] = "Image file has been uploaded";

    // file extention is not allowed
    $msg["20442"] = "The file extention is not allowed";

    // fail
    $msg["20443"] = "Unable to copy file";


    ?>



    dose that look ok to you

  5. #5
    Join Date
    Aug 2005
    Posts
    36

    Default

    tred a few things just cant get it to work any sugesstunes

  6. #6
    Join Date
    Feb 2005
    Posts
    8

    Default

    Quote Originally Posted by amusementlinks
    // fail
    $msg["20443"] = "Unable to copy file";


    ?>



    dose that look ok to you

    See the blank lines below "?>" at the bottom? That's usually the problem. Make sure those are the last characters in the document.

  7. #7
    Join Date
    Aug 2005
    Posts
    36

    Default

    thanks mate

  8. #8
    Join Date
    Sep 2005
    Posts
    82

    Default

    Didn't work for me. I had the above problem, so entered 3 blank lines at the beginning and 3 blank lines at the end. Now I get as the 4th warning:

    Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/html/mydomain/directory/themes/default/msg.php:1) in /home/httpd/html/mydomain/directory/login.php on line 90

  9. #9
    Join Date
    Sep 2005
    Posts
    82

    Default

    Well, got it working again after getting a fresh copy of the msg file. Why does it crash like this I wonder....

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    this is a common problem with msg.php and is generally caused when editing the file.

    upload a "clean" copy of msg.php - from the distribution zip file and unmodified in any way. Make sure you upload in ASCII mode.

    that should eliminate the error. test it and see.

    now you can make changes. you MUST use an ASCII text editor to edit the file. Not dreamweaver or front page or even word pad, etc. I use editplus.

    NOTHING should come before the <?php or after the ?>. that is what is causing your error. the beginning of the file is easy. all you have to do is look at it. the end of the file may not be as easy especially if your text editor does not show spaces. To find the "bottom" go to the end of the document and hold down the down arrow key. Once the cursor stops moving you can then use the backspace key until you delete the > from the ?>. Now add the > back and save the file and upload.




    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  11. #11
    Join Date
    Sep 2005
    Posts
    82

    Default

    Yes, thanks for your feedback. Have noticed that it's very easy to corrupt this file. I was pasting it in Word so I can do a Ctrl F and replace for all. Then I would copy and paste the finish back to the original file and that's how it was always getting corrupt.

    Great to have you online and help us all out.

    Thanks again.

  12. #12
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    np. I most text editors will have a search and replace feature, even notepad, I think.

    you could use Word to find anything after the ?>. just turn on the all formatting marks.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  13. #13
    Join Date
    Aug 2005
    Posts
    36

    Default

    getting this message on index page

    Warning: fopen(cache/index_.html): failed to open stream: Read-only file system in /home/jona7709/public_html/index.php on line 199

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/jona7709/public_html/index.php on line 200

    Warning: fclose(): supplied argument is not a valid stream resource in /home/jona7709/public_html/index.php on line 201


    and this message on brouse page

    Warning: fopen(counter/8289.dat): failed to open stream: Read-only file system in /home/jona7709/public_html/browse.php on line 72

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/jona7709/public_html/browse.php on line 73

    Warning: fclose(): supplied argument is not a valid stream resource in /home/jona7709/public_html/browse.php on line 74



    is it the msg.php fila again or somthing elce i did try overrighting the msg file but dident work

  14. #14
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    I'm sure you forgot to chmod 777 /cache and /counter
    please check them again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •