Forums

[resolved] TextLinkAds Fatal error: Call to undefined function settings_field() (5 posts)

  1. MilkAddict
    Member
    Posted 2 years ago #

    Hi!
    Today I messed up my TextLinkAds plugin. I went on the TextLinkAds website and got a new plugin where it would display only 1 ads per raw, while previously I had accidentally chosen 6 per raw.

    Somehow while deleting the existing plugin something got corrupted and I don't know how to fix it :(

    I get to install the plugin on my WordPress, even though I had to change name of the zip file because it said that the folder already existed, even though it was not in the plugin folders since I had manually removed it from there with FileZilla.

    The error I get when I try to install the TextLinkAds plugin now is:
    ---------------------------------
    Text Link Ads

    Fatal error: Call to undefined function settings_field() in /web/htdocs/www.milkaddict.com/home/wp-content/plugins/textlinkads/textlinkads.php on line 91
    ---------------------------------

    Any idea how to fix this please?
    thanks!
    adriano

  2. MilkAddict
    Member
    Posted 2 years ago #

    PS. If it can help, at some point when the situation got messed up with this plugin, WordPress told me that "Visitor Maps and Who's Online" would need to install a new Database (Maxmind GeoLiteCity database) and I clicked to install but the browser got stuck so I had to kill it.
    Visitor Maps and Who's Online is working fine though and says the Maxmind GeoLiteCity database is installed and enabled.

  3. MilkAddict
    Member
    Posted 2 years ago #

    Wow, apparently I solved it already by myself!
    I really have no idea how this may have happened other than I received already the plugin with wrong code in it.
    Indeed in the plugin it was trying to call the wrong function "settings_fields":

    <?php
                if (function_exists('settings_fields')) {
                    settings_field('textlinkads');
                } else {

    Simply removing the letter 's' and using "settings_field" solved the problem!
    Hopefully this helps other people in case it may happen again.
    adriano

  4. tlaplugins
    Member
    Posted 2 years ago #

    This issue has been resolved. we did not version, but the versions 3.5.0 and 1.5.0 of the standard plugin and the inlinks plugin respectively are resolved.

  5. tlaplugins
    Member
    Posted 2 years ago #

    the solution above can not be correct the correct solution is to add the s to settings_field the correct function call is settings_fields

    see http://wordpress.org/tags/settings_fields

    either way the plugin issue is resolved

Topic Closed

This topic has been closed to new replies.

About this Topic