WordPress.org

Forums

Theme My Login
Fatal error: link-template.php on line 274 (23 posts)

  1. MRSepehr
    Member
    Posted 2 years ago #

    Fatal error: Call to a member function get_page_permastruct() on a non-object in /wp-includes/link-template.php on line 274

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    How do you know this is being caused by TML?

  3. MRSepehr
    Member
    Posted 2 years ago #

    Hi Jeff , First of all thank you for your useful plug-ins.
    After update my plugin to Ver.6 this error appears when reloading the page...
    The only way to disable the plugin was going to cPanel and rename plugin folder , Everything works good but without "TML 6" ... :(

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Reloading what page?

  5. Shifra
    Member
    Posted 2 years ago #

    I got this same error when I upgraded TML

  6. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Where is this error appearing?

  7. MRSepehr
    Member
    Posted 2 years ago #

    Error was appears all over the site on all pages ,This means my site goes down completely :)

  8. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Can I see your site? If you don't wish to post it publicly, send to jeff [at] jfarthing [dot] com.

  9. MRSepehr
    Member
    Posted 2 years ago #

    I'm using TML 5.1.6 and it works good...

  10. Shifra
    Member
    Posted 2 years ago #

    The error shuts down the site, so I had to deactivate the plugin by changing the plugin folder name.

    What other information can I provide to help you since I can't reactivate the the current version?

  11. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Admin access to your site. See e-mail address above.

  12. MRSepehr
    Member
    Posted 2 years ago #

    @Shifra , are you using BP Ajax Chat plug-in? Ajax chat is not compatible with TML 6 .

  13. MRSepehr
    Member
    Posted 2 years ago #

    @Jeff . Hi jeff , may ya make TML 6 compatible with BP Ajax Chat plug-in?

  14. eljustino
    Member
    Posted 2 years ago #

    Any resolution on this one? Having this issue myself.

  15. eljustino
    Member
    Posted 2 years ago #

    Hmmm...

    I just deactivated all plugins through SQL and then reactivated them all (again, through SQL). The problem didn't return...

  16. PresentArch
    Member
    Posted 2 years ago #

    how do I access sql, I just had this problem

  17. ocaptain
    Member
    Posted 2 years ago #

    I just had this happen in TML 6.0.4. Any ideas?

  18. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    I need access to somebody's site who is having this problem if I am to troubleshoot this issue.

  19. frenx4u
    Member
    Posted 1 year ago #

    Jeff,
    When i installed 'Theme My Login' I always get the error below. Then only way to correct the error is to go directly to the plugin folder and rename it, so that the plugin is disabled automatically.

    I just love this plugin. please provide me a solution.

    Fatal error: Call to a member function get_page_permastruct() on a non-object in C:\wamp\www\wp-includes\link-template.php on line 276

    Call Stack
    # Time Memory Function Location
    1 0.0006 375472 {main}( ) ..\plugins.php:0
    2 0.0010 383784 require_once( 'C:\wamp\www\wp-admin\network\admin.php' ) ..\plugins.php:11
    3 0.0020 478160 require_once( 'C:\wamp\www\wp-admin\admin.php' ) ..\admin.php:13
    4 0.0026 494528 require_once( 'C:\wamp\www\wp-load.php' ) ..\admin.php:30
    5 0.0033 514016 require_once( 'C:\wamp\www\wp-config.php' ) ..\wp-load.php:29
    6 0.0047 614640 require_once( 'C:\wamp\www\wp-settings.php' ) ..\wp-config.php:101
    7 0.5465 40183016 do_action( ) ..\wp-settings.php:206
    8 0.5635 41513832 call_user_func_array ( ) ..\plugin.php:405
    9 0.5635 41513848 setupChatCookies( ) ..\plugin.php:0
    10 0.5637 41514136 wp_logout_url( ) ..\bp-chat.php:493
    11 0.5637 41514616 site_url( ) ..\general-template.php:215
    12 0.5637 41514648 get_site_url( ) ..\link-template.php:1997
    13 0.5638 41514824 apply_filters( ) ..\link-template.php:2040
    14 0.5638 41516016 call_user_func_array ( ) ..\plugin.php:170
    15 0.5638 41516072 Theme_My_Login->site_url( ) ..\plugin.php:0
    16 0.5638 41516504 Theme_My_Login->get_login_page_link( ) ..\class-theme-my-login.php:1299
    17 0.5639 41516584 get_page_link( ) ..\class-theme-my-login.php:879
    18 0.5639 41516760 _get_page_link( ) ..\link-template.php:248

  20. Flora1234
    Member
    Posted 1 year ago #

    Fatal error: Call to a member function get_page_permastruct() on a non-object in /home/content/94/6asdfasd/html/SS/wp-includes/link-template.php on line 276

    I also got this problem too when trying to install

  21. Flora1234
    Member
    Posted 1 year ago #

    May be the word "theme" clashes with unique name of "theme" of wordpress - somehow along the time... just guessing.

  22. Flora1234
    Member
    Posted 1 year ago #

    May be it should be called STHEME MY LOGIN instead

  23. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    This problem is caused by plugins that attemp to utilize site_url() before $wp_rewrite is populated. In the case of frenx4u, that would be bp-chat.php.

    Try opening up /wp-content/plugins/theme-my-login/includes/class-theme-my-login.php, searching for function get_login_page_url() and add the following before the rest of the code within the function:

    if ( empty( $GLOBALS['wp_rewrite'] ) )
    	$GLOBALS['wp_rewrite'] = new WP_Rewrite();

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic