+ Reply to Thread (include dating software, release, and patch number!)
Results 1 to 3 of 3

Thread: Error

  1. #1
    valentino
    Guest

    Default Error

    When someone who is not logged in, just visitor presses the log in button on the prontpage without filling in something, so leaves everything empty and then press log in this is what happens:

    Fatal error: Call to undefined function: send_headers_page_changed() in /usr/home/lovefor2/public_html/dating/member.php on line 39

    Can't this go to the standard login page and not this ugly error message?

    The same for when a visitor does a search he gets nothing cause i don't allow visitors to do search at the right side he has the option to subscribe ( make a profile) or log in. When he presses the login...the same error appears.


    Fatal error: Call to undefined function: send_headers_page_changed() in /usr/home/lovefor2/public_html/dating/member.php on line 39

    Can't this be fixed?

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,440
    Blog Entries
    5

    Default

    Hi,

    I think I know the problem... you or someone else edited the code on your site, and changed the call to the function "send_headers_page_chaged" to "send_headers_page_changed" on some/all of your pages.

    I checked the original CLEAN v0.04 code - and the function is spelled "send_headers_page_chaged".

    While I know that aeWebWorks spelled "changed" wrong (they spelled it "chaged"), you can not correct a spelling mistake like this in the code - without also correcting the spelling mistake of the function also, and all the places it is called throughout the site.

    So, there are three ways to fix this:

    1) Change the places back that you edited to "send_headers_page_chaged" - and the function will then be found again (where you changed it, not sure - do you remember?)

    or

    2) Go through your whole site - and change all of the "send_headers_page_chaged" entries to "send_headers_page_changed", and also change the name of the function in "design_inc.php".

    or

    3) Copy the existing function "send_headers_page_chaged" in "design_inc.php" to a new one in "design_inc.php" and call the new one "send_headers_page_changed".

    The 3rd way will fix your site quickly with no searching.

    Rob

    example "new" function for method #3 - add to the bottom of design_inc.php, above the last ?>

    Code:
    /**
     * Use this function in pages if you want to not cache it.
     * Copy / duplicate of send_headers_page_chaged function
     * to fix spelling mistake in function name
     **/
    function send_headers_page_changed ()
    {
    	$now        = gmdate('D, d M Y H:i:s') . ' GMT';
    
    	header("Expires: $now");
    	header("Last-Modified: $now");
    	header("Cache-Control: no-cache, must-revalidate");
    	header("Pragma: no-cache");
    }
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    valentino
    Guest

    Default Thanks Smoge

    The third option did fix the problem, thanks, no error anymore.
    I put the site on commercial...people are running away like hell....but anyway...this leaves only good profiles and no more fakers.thanks, as soon i have a bit money free i want you to fix the membership problem...still counting back in my advantage...sooner or later a paying member will complain about this.

    Regards,

    Mike

+ Reply to Thread (include dating software, release, and patch number!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. HTTP 500 Internal Server Error (PHP Fatal error)
    By Nitrofish in forum Boonex Dolphin 7
    Replies: 3
    Last Post: 04-28-2010, 08:29 AM
  2. profile view error Fatal error: Class 'BxDolProfilePageView'
    By tawacom in forum General Troubleshooting
    Replies: 1
    Last Post: 08-27-2009, 07:10 PM
  3. Deleting users error and vb module refresh error
    By annd in forum General Troubleshooting
    Replies: 1
    Last Post: 06-24-2009, 02:04 AM
  4. Error: Transaction insertion error
    By paimai in forum Payment Processing
    Replies: 3
    Last Post: 11-08-2006, 08:52 AM
  5. Parse error : syntax error
    By Raoul in forum General Troubleshooting
    Replies: 8
    Last Post: 01-22-2006, 11:12 PM

Bookmarks

Posting Permissions

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