• Resolved Oliver

    (@mcbluna)


    Hello Robin,

    I think in following php files is the site url ' . site_url() . ' missing in href. Could you please check. ??

    I did a file search with Notepad++

    Search “<a href=”/wp-admin” (15 hits in 6 files of 110 searched) [Extended]
    bbp-style-pack/includes/functions_admin.php (8 hits)

    Line 56: echo '<a href="/wp-admin/edit.php?post_type=topic&amp;bsp_forum_id='.$forum_id.'&amp;bsp_checkf=1">'.bbp_get_forum_topic_count( $forum_id ).'</a>' ;
    Line 60: echo '<a href="/wp-admin/edit.php?post_type=reply&amp;bbp_forum_id='.$forum_id.'&amp;bsp_checkf=1">'.bbp_get_forum_reply_count( $forum_id ).'</a>' ;
    Line 119: echo '<a href="/wp-admin/edit.php?post_type=topic&amp;author='.$author_id.'">'.bbp_get_topic_author_display_name( $topic_id ).'</a>' ;
    Line 123: echo '<a href="/wp-admin/edit.php?post_type=reply&amp;bbp_topic_id='.$topic_id.'&amp;bsp_checkt=1">'.bbp_get_topic_reply_count( $topic_id ).'</a>' ;
    Line 128: echo '<a href="/wp-admin/edit.php?post_type=topic&amp;bbp_forum_id='.$forum_id.'">'.bbp_get_forum_title( $forum_id ).'</a>' ;
    Line 160: echo '<a href="/wp-admin/edit.php?post_type=reply&amp;author='.$author_id.'">'.bbp_get_reply_author_display_name( $reply_id ).'</a>' ;
    Line 220: $retval = '<a href="/wp-admin/edit.php?post_type=topic&amp;author='.$user_id.'">'.bbp_get_user_topic_count ($user_id).'</a>' ;
    Line 223: $retval = '<a href="/wp-admin/edit.php?post_type=reply&amp;author='.$user_id.'">'.bbp_get_user_reply_count ($user_id).'</a>' ;

    bbp-style-pack/includes/settings_block_widgets.php (1 hit)
    Line 104: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=la_widget">' ;
    bbp-style-pack/includes/settings_theme_support.php (1 hit)
    Line 151: echo '<a href="/wp-admin/options-general.php?page=bbpress">' ;
    bbp-style-pack/includes/settings_topic_reply_display.php (1 hit)
    Line 1204: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=topic_index_styling">' ;
    bbp-style-pack/includes/subscriptions_management.php (1 hit)
    Line 712: $link = '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=email">' ;
    bbp-style-pack/templates/bbpress.php (3 hits)
    Line 69: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=bsp_block_theme">' ;
    Line 92: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=bsp_block_theme">' ;
    Line 112: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=bsp_block_theme">' ;

    Best regards
    Oliver

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Robin W

    (@robin-w)

    that is deliberate – WordPress adds the site url automatically.

    Is this causing you an issue?

    Thread Starter Oliver

    (@mcbluna)

    Yes it is. I’ve found it on the moderation setting page:

    NOTE-?Once activated the settings are in Dashboard>settings>forums – click?here

    “here” is pointing to https://www.mcbluna.net/wp-admin/options-general.php?page=bbpress/#bsp-moderation, but in my case it should be https://www.mcbluna.net/wp/wp-admin/options-general.php?page=bbpress/#bsp-moderation

    I’ve fixed it manually in the php file and then it works.

    Thread Starter Oliver

    (@mcbluna)

    Maybe it’s caused because the variable WP_SITEURL is not defined in wp-config.php. I’ll try it.

    Thread Starter Oliver

    (@mcbluna)

    Setting WP_SITEURL didn’t work.

    Thread Starter Oliver

    (@mcbluna)

    Under Generel / Settings this is configured

    WordPress Address (URL) https://www.mcbluna.net/wp
    Site Address (URL) https://www.mcbluna.net/wp

    • This reply was modified 1 year, 1 month ago by Oliver.
    Plugin Author Robin W

    (@robin-w)

    so is it just in moderation or everywhere?

    Thread Starter Oliver

    (@mcbluna)

    In the file subscriptions_management.php you’ve used site_url()

    I did a search over my complete plugin folder and only bbp-private-groups and bbp-style-pack popped up

    Search "<a href="/wp-admin" (17 hits in 8 files of 6123 searched) [Extended]
    plugins/bbp-private-groups/includes/meta-box.php (1 hit)
    plugins/bbp-style-pack/includes/functions_admin.php (8 hits)
    plugins/bbp-style-pack/includes/settings_block_widgets.php (1 hit)
    plugins/bbp-style-pack/includes/settings_moderation.php (1 hit)
    plugins/bbp-style-pack/includes/settings_theme_support.php (1 hit)
    plugins/bbp-style-pack/includes/settings_topic_reply_display.php (1 hit)
    plugins/bbp-style-pack/includes/subscriptions_management.php (1 hit)
    plugins/bbp-style-pack/templates/bbpress.php (3 hits)

    Then I did a regex search and all other plugins uses site_url()

    Search "href=.*/wp-admin/.*" (34 hits in 12 files of 6123 searched) [RegEx]
    plugins/bbp-private-groups/includes/meta-box.php (1 hit)
    Line 78: <label for="group_topics"><?php _e('Please see the <a href="/wp-admin/options-general.php?page=bbp-private-group-settings&tab=topic_permissions" target="_blank">Topic Permissions settings</a> to understand the impact of this', 'bbp-private-groups'); ?></label>
    plugins/bbp-style-pack/includes/functions_admin.php (8 hits)
    Line 56: echo '<a href="/wp-admin/edit.php?post_type=topic&amp;bsp_forum_id='.$forum_id.'&amp;bsp_checkf=1">'.bbp_get_forum_topic_count( $forum_id ).'</a>' ;
    Line 60: echo '<a href="/wp-admin/edit.php?post_type=reply&amp;bbp_forum_id='.$forum_id.'&amp;bsp_checkf=1">'.bbp_get_forum_reply_count( $forum_id ).'</a>' ;
    Line 119: echo '<a href="/wp-admin/edit.php?post_type=topic&amp;author='.$author_id.'">'.bbp_get_topic_author_display_name( $topic_id ).'</a>' ;
    Line 123: echo '<a href="/wp-admin/edit.php?post_type=reply&amp;bbp_topic_id='.$topic_id.'&amp;bsp_checkt=1">'.bbp_get_topic_reply_count( $topic_id ).'</a>' ;
    Line 128: echo '<a href="/wp-admin/edit.php?post_type=topic&amp;bbp_forum_id='.$forum_id.'">'.bbp_get_forum_title( $forum_id ).'</a>' ;
    Line 160: echo '<a href="/wp-admin/edit.php?post_type=reply&amp;author='.$author_id.'">'.bbp_get_reply_author_display_name( $reply_id ).'</a>' ;
    Line 220: $retval = '<a href="/wp-admin/edit.php?post_type=topic&amp;author='.$user_id.'">'.bbp_get_user_topic_count ($user_id).'</a>' ;
    Line 223: $retval = '<a href="/wp-admin/edit.php?post_type=reply&amp;author='.$user_id.'">'.bbp_get_user_reply_count ($user_id).'</a>' ;
    plugins/bbp-style-pack/includes/settings_block_widgets.php (1 hit)
    Line 104: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=la_widget">' ;
    plugins/bbp-style-pack/includes/settings_moderation.php (1 hit)
    Line 76: <?php _e('<strong>NOTE- </strong>Once activated the settings are in Dashboard>settings>forums - click <a href="/wp-admin/options-general.php?page=bbpress/#bsp-moderation" > here</a>', 'bbp-style-pack'); ?>
    plugins/bbp-style-pack/includes/settings_subscriptions_management.php (3 hits)
    Line 115: echo '<a href="' . site_url() . '/wp-admin/edit.php?post_type=forum' . '">' ;
    Line 122: echo '<a href="' . site_url() . '/wp-admin/edit.php?post_type=topic' . '">' ;
    Line 128: echo '<a href="' . site_url() . '/wp-admin/users.php' . '">' ;
    plugins/bbp-style-pack/includes/settings_theme_support.php (1 hit)
    Line 151: echo '<a href="/wp-admin/options-general.php?page=bbpress">' ;
    plugins/bbp-style-pack/includes/settings_topic_reply_display.php (1 hit)
    Line 1204: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=topic_index_styling">' ;
    plugins/bbp-style-pack/includes/subscriptions_management.php (8 hits)
    Line 39: $actions['mng_subscr'] = '<a href="' . site_url() . '/wp-admin/edit.php?post_type=forum&page=forum_subscriptions&forum_id=' . $post->ID . '">' . __( 'Subscriptions', 'bbp-style-pack' ) . '</a>';
    Line 53: $actions['mng_subscr'] = '<a href="' . site_url() . '/wp-admin/edit.php?post_type=forum&page=forum_subscriptions&topic_id=' . $post->ID . '">' . __( 'Subscriptions', 'bbp-style-pack' ) . '</a>';
    Line 66: $actions['mng_subscr'] = '<a href="' . site_url() . '/wp-admin/edit.php?post_type=forum&page=forum_subscriptions&user_id=' . $user_object->ID . '">' . __( 'Subscriptions', 'bbp-style-pack' ) . '</a>';
    Line 85: echo '<a class="preview button" href="' . site_url() . '/wp-admin/edit.php?post_type=forum&page=forum_subscriptions&forum_id=' . $forum_id . '">'; _e('Manage Subscriptions', 'bbp-style-pack'); echo ' (' . $subscriber_count . ')</a>';
    Line 222: echo '<p>'.__('To manage subscriptions of a forum', 'bbp-style-pack').', <a href="' . site_url() . '/wp-admin/edit.php?post_type=forum' . '">'.__('edit the forums', 'bbp-style-pack').'</a>'.__(' and click on "Subscriptions" as an action of the forum, or edit the forum and find the "Manage Subscriptions" button (somewhere below the Forum Attributes)', 'bbp-style-pack').'</p>';
    Line 223: echo '<p>'.__('To manage subscriptions of topics', 'bbp-style-pack').', <a href="' . site_url() . '/wp-admin/edit.php?post_type=topic' . '">'.__('edit the topics', 'bbp-style-pack').'</a>'.__(' and find "Subscriptions" as an action for each topic.', 'bbp-style-pack').'</p>';
    Line 224: echo '<p>'.__('To manage subscriptions for a user', 'bbp-style-pack').', <a href="' . site_url() . '/wp-admin/users.php' . '">'.__('edit the users', 'bbp-style-pack').'</a>'.__(' and find "Subscriptions" as an action for each user.', 'bbp-style-pack').'</p>';
    Line 712: $link = '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=email">' ;
    plugins/bbp-style-pack/templates/bbpress.php (3 hits)
    Line 69: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=bsp_block_theme">' ;
    Line 92: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=bsp_block_theme">' ;
    Line 112: echo '<a href="/wp-admin/options-general.php?page=bbp-style-pack&tab=bsp_block_theme">' ;
    plugins/likebtn-like-button/includes/tab_buttons.php (1 hit)
    Line 814: array('%admin_ajax%'=>'<a href="'.admin_url('admin-ajax.php').'" target="_blank">/wp-admin/admin-ajax.php</a>')) ?></p>
    plugins/likebtn-like-button/includes/tab_votes.php (1 hit)
    Line 324: array('%admin_ajax%'=>'<a href="'.admin_url('admin-ajax.php').'" target="_blank">/wp-admin/admin-ajax.php</a>')) ?>
    plugins/media-library-plus/media-library-plus.php (5 hits)
    Line 2953: <a class='media-attachment' href='<?php echo esc_url_raw(site_url() . "/wp-admin/upload.php?item=" . $row->ID ) ?>'><img alt='<?php echo esc_html($row->post_title . '.' . $ext) ?>' src='<?php echo esc_url($thumbnail) ?>' /></a>
    Line 2987: echo ' <p><a href="' . site_url() . '/wp-admin/admin.php?page=mlf-folders8">Back to Media Library Folders</a></p>' . PHP_EOL;
    Line 3075: echo " <a class='$class' href='" . site_url() . "/wp-admin/admin.php?page=mlf-folders8&media-folder=" . $row->ID . "'><img alt='' src='$thumbnail' /></a>" . PHP_EOL;
    Line 3078: echo " <a class='$class mlfp-protected $author_class' data-id='$row->ID' href='" . site_url() . "/wp-admin/admin.php?page=mlf-folders8&media-folder=" . $row->folder_id . "'><img class='attachment-thumbnail' alt='' src='$thumbnail' /></a>" . PHP_EOL;
    Line 3080: echo " <a class='$class' data-id='$row->ID' href='" . site_url() . "/wp-admin/admin.php?page=mlf-folders8&media-folder=" . $row->folder_id . "'><img class='attachment-thumbnail' alt='' src='$thumbnail' /></a>" . PHP_EOL;
    Plugin Author Robin W

    (@robin-w)

    interesting, so it is just admin (backend) that is causing problems?

    Thread Starter Oliver

    (@mcbluna)

    I’m not aware of any problems with the user view.

    Plugin Author Robin W

    (@robin-w)

    Thanks, I am away next week, so I won’t do an update this week, but I’ll do this when I am back.

    Thanks for spotting this, I’m amazed that this hasn’t been raised before by someone using a sub directory.

    I presume that you’ll do a replace in your version in the meantime, so will be ok?

    Plugin Author Robin W

    (@robin-w)

    Thanks for your patience and for your very useful info.

    I’ve just released new versions of style pack and private groups which should have all the fixes in.

    Thanks for helping me improve the plugins ??

    Thread Starter Oliver

    (@mcbluna)

    Thanks a lot Robin ?? You’re the best.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘site url missing in href’ is closed to new replies.