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

Viewing 7 replies - 16 through 22 (of 22 total)
  • I just had this happen in TML 6.0.4. Any ideas?

    Plugin Author Jeff Farthing

    (@jfarthing84)

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

    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

    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

    May be the word “theme” clashes with unique name of “theme” of wordpress – somehow along the time… just guessing.

    May be it should be called STHEME MY LOGIN instead

    Plugin Author Jeff Farthing

    (@jfarthing84)

    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();
Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘[Plugin: Theme My Login] Fatal error: link-template.php on line 274’ is closed to new replies.