WordPress.org

Forums

[resolved] single.php error (12 posts)

  1. linkit
    Member
    Posted 8 years ago #

    Hi there, I am getting the following error:
    Fatal error: Call to undefined function: ls_getinfo() in /var/www/html/wp-content/themes/nubricks/single.php on line 19
    I understand that this means my display single post function isn't working. Category and other single pages are working just not view single post function.

    I've checked my index.php which has the following code and the single.php file is in the theme, tried uploading it again.

    <?php if (is_single() ) { ?>

    <?php if (ls_getinfo('isref')) { ?>

    No luck - any help suggestions please would be most appreciated. Many thanks linkit

  2. MichaelH
    Member
    Posted 8 years ago #

    Is there a link to download that theme?

  3. linkit
    Member
    Posted 8 years ago #

    Hi Michael thank you for getting back to me the theme is a customised theme for my site - when you are asking if there's a link to download it - are you wanting to see the problem? or want to use the theme for yourself?

  4. MichaelH
    Member
    Posted 8 years ago #

    Just wanted to try and duplicate your problem.

    In the standard distribution of WordPress I find no reference to ls_getinfo.

  5. linkit
    Member
    Posted 8 years ago #

    ah ok - is that a coding error? should I give you a link to the site that it's occurring on? I really appreciate your time Michael thankyou.

  6. linkit
    Member
    Posted 8 years ago #

    I've just checked some of the default template code and the ls_getinfo in that too

  7. MichaelH
    Member
    Posted 8 years ago #

    Link to site not necessary if you've fixed the problem. Thanks.

  8. linkit
    Member
    Posted 8 years ago #

    I haven't fixed the problem - I don't know whether its a coding error or db error

  9. MichaelH
    Member
    Posted 8 years ago #

    Not sure what this is

    <?php if (ls_getinfo('isref')) { ?>

    Who coded your theme?

  10. linkit
    Member
    Posted 8 years ago #

    we had a designer code it - it was actually working right up until yesterday when we took the db to put onto another site to test with.

  11. MichaelH
    Member
    Posted 8 years ago #

    Sounds like you didn't get everything when you copied it to the new site.

  12. linkit
    Member
    Posted 8 years ago #

    I found that it was some code from the landing sites plugin, that had been disabled.

    I have fixed it now...thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic