Title: single.php error
Last modified: August 18, 2016

---

# single.php error

 *  Resolved [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/)
 * 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

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556889)
 * Is there a link to download that theme?
 *  Thread Starter [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556890)
 * 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?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556898)
 * Just wanted to try and duplicate your problem.
 * In the standard distribution of WordPress I find no reference to `ls_getinfo`.
 *  Thread Starter [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556904)
 * 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.
 *  Thread Starter [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556905)
 * I’ve just checked some of the default template code and the ls_getinfo in that
   too
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556906)
 * Link to site not necessary if you’ve fixed the problem. Thanks.
 *  Thread Starter [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556907)
 * I haven’t fixed the problem – I don’t know whether its a coding error or db error
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556910)
 * Not sure what this is
 * `<?php if (ls_getinfo('isref')) { ?>`
 * Who coded your theme?
 *  Thread Starter [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556915)
 * 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.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556920)
 * Sounds like you didn’t get everything when you copied it to the new site.
 *  Thread Starter [linkit](https://wordpress.org/support/users/linkit/)
 * (@linkit)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556935)
 * 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!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘single.php error’ is closed to new replies.

## Tags

 * [conditional tags](https://wordpress.org/support/topic-tag/conditional-tags/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [linkit](https://wordpress.org/support/users/linkit/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/singlephp-error-2/#post-556935)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
