Problem with sub-pages in Wordpress blog

Discussion in 'WordPress' started by sahirfarid, May 7, 2012.

  1. #1
    Dear Experts!

    I am facing problem with my wordpress site. When I go to page 2 from 3 or from page 5 to page 4 I face the following error.

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/yesiknow/public_html/wp-content/themes/canvas/functions/admin-functions.php on line 653

    For reference my blog's link is: www(dot)yesiknowthat(dot)com

    Regards
     
    sahirfarid, May 7, 2012 IP
  2. 5Twenty

    5Twenty Peon

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you referring to pagination on your blog in your example?

    Can you open your admin-functions.php file and show us that block of code around line 653?
     
    5Twenty, May 7, 2012 IP
  3. sahirfarid

    sahirfarid Active Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Yes I am referring to pagination on my blog.. Also I am trying to find line number 653, is there any easy way to directly jump there?
     
    sahirfarid, May 7, 2012 IP
  4. fotogrph

    fotogrph Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Use a text editor that shows line numbers like notepad ++.
     
    fotogrph, May 12, 2012 IP
  5. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,121
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #5
    Try an IDE like Netbeans. It shows line numbers and makes the web development process a lot easier. (I'm not affiliate with Netbeans, it's just a personal choice)

    As for the error, I suggest you reupload the core Wordpress files and rewrite the old ones.
     
    ColorWP.com, May 12, 2012 IP