Results 1 to 5 of 5

Thread: Editing a Post After Publishing Throws This Error

  1. #1
    Thread Starter
    Amateur
    Not a Verified Customer
    popsoc's Avatar
    Join Date
    Jun 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Editing a Post After Publishing Throws This Error

    Fatal error: Call to a member function hide_errors() on a non-object in /home/content/a/s/h/asherin/html/pop/wp-content/themes/classipress/tpl-edit-ad.php on line 7

    Nice that it shows the path to my content folder.

    How do I fix this? I had a user write me 15 times about this and finally just told him to create a new account. He created the new account and then I went in to test it, BAM! The same error.

    Does this have ANYTHING to do with cache? Incompatible plugins?

    The system is great as long as people leave their ads alone, editing apparently has a bug.

    HELP!!!

    I can give you a username/password to try, or you can register here:
    http://popsoc.com

    Thanks!

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Editing a Post After Publishing Throws This Error

    First off, I recommend you turn off your php errors from printing on the screen unless you are debugging. You can do that by editing your php.ini file (if your host allows you to) or by adding an entry to your .htaccess file. It's a question for your host provider as to which is the best way.

    That's actually what line 7 in tpl-edit-ad.php is supposed to accomplish just in case you don't have php errors turned off (see the bottom of this page).

    Go ahead and comment out line 7 and give it another shot....it should work.

    On another note, I visited your site and it seems extremely slow. I ran YSlow from firefox and some other speed testing tools and noticed you've already done some optimization which always helps.

    My gut tells me your hosting provider is the reason for the latency so I'm curious who you are using and how much you pay each month. You might be on a server with dozens of other sites running and with the success of your sites traffic recently, it might be overloading the box.

    If that's the case, you might want to consider upgrading to a VPS or dedicated server which will cost more but give you the RAM and CPU you need.

    ~David

  3. #3
    Thread Starter
    Amateur
    Not a Verified Customer
    popsoc's Avatar
    Join Date
    Jun 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Editing a Post After Publishing Throws This Error

    Thanks David, I will try that. As for hosting, I am pulling my hair out. I have tried every optimization tool possible and I think you are right. I was only paying for shared hosting on GoDaddy until I thought I had something here.

    Rather than leaving GoDaddy, (i was on dreamhost but hated them too) I may try a dedicated server or VPS on GoDaddy. I suspect they like to host sites that get zero traffic, which may be most sites.

    I have 2 other questions for you or the forum:

    1) Am I supposed to get a "page not found" after posting a comment? Weird. How do I fix that?
    2) All of a sudden, the PROFILE images do not show up even though they uploaded fine. Any ideas?

    Thanks for your support! I will write back after I make you fix.

  4. #4
    Thread Starter
    Amateur
    Not a Verified Customer
    popsoc's Avatar
    Join Date
    Jun 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Editing a Post After Publishing Throws This Error

    Hi David,

    I found the php.ini file in root. I have several domains running off it. Here is the current configuration. It appears all items are set to off. Since I am more marketer than coder, looking at this I am not sure what to comment out or if I need to do anything at all.

    CURRENT:

    register_globals = off
    allow_url_fopen = off

    expose_php = Off
    max_input_time = 60
    variables_order = "EGPCS"
    extension_dir = ./
    upload_tmp_dir = /tmp
    precision = 12
    SMTP = relay-hosting.secureserver.net
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fields et="

    [Zend]
    zend_extension=/usr/local/zo/ZendExtensionManager.so
    zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
    rg_emulation=off


    Please advise.

    Thanks!

  5. #5
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Editing a Post After Publishing Throws This Error

    Add the following line to your php.ini file.

    display_errors = off

    Not sure why you are getting a page not found error when posting a comment. Is the comment.php file in the classipress folder? Not sure about the profile images either.

    It sounds like some strange stuff is starting to happen. Either some files or configs were changed by mistake and/or your server is having problems.

    I'd go with Blue Host or Host Gator which are great choices for hosting. http://wpclassipress.com/wordpress-hosting/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Editing a post in 2.9
    By sarge in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 23rd, 2009, 06:25 PM