Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Error On Posts

Question

Posted · Report post

I'm getting the following error on my posts

Warning: sprintf() [function.sprintf]: Too few arguments in /home/jolietlibrary/sites/teens.jolietlibrary.org/html/wp-content/themes/pagelines/includes/class.posts.php on line 317

This is what my line 317 looks like

$title = sprintf( '<section class="bd post-title-section fix"><hgroup class="post-title fix">%s</hgroup>%s</section>', $this->pagelines_get_post_title( $format ), $this->pagelines_get_post_metabar( $format ) );

I know the error started because I accidentally edited the parent file, and it was too late by the time I realized it. Since then I've tried uploading a fresh install (w/the whole theme and just that file). The changes I made are no longer being reflected in the file--but I'm guessing that's where the error sprung from.

Any suggestions?

I do have weird permission settings w/my web server/host (it's a business account) where often times I can't overwrite something because I don't have "permission". I have a hunch that may be part of the problem but I wanted to double-check to make sure there weren't any other ideas that I could try.

Just for reference, here's a page w/the error on it: http://teens.jolietlibrary.org/category/teen-reviews/

Thanks.

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Can only suggest reuploading, or editing style.css and making the version LESS than the current version and let wordpress update it, up to you, but lesson learned, never edit the core files ;)

Share this post


Link to post
Share on other sites

Posted · Report post

I did try knocking it down to a lower version to force an update that way, but it didn't work either (hence why I think it may be a permissions error)

For the CSS are you thinking making it a display none? Or something else?

Share this post


Link to post
Share on other sites

Posted · Report post

You cant hide a php error with css, you can turn off php error logging though. If WP_DEBUG is already off in wp-config.php then you have to ask your host how to turn off php debug, which should be off anyway on a production server.

Share this post


Link to post
Share on other sites

Posted · Report post

okay thanks. I'll work on this some more w/them. You can mark it as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites