Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter maxident

    (@maxident)

    Thats it, the solution in my case was also running out of space on my webhost without realising. Once I cleared some space all worked again. Thank you

    Thread Starter maxident

    (@maxident)

    Hi Systembox,

    thank you for your reply. The thing is I tried with various combinations of backups (WP installations/databases) that did work before I ran into the problem, so I can confirm the backup files should be functional and I did try to replace with other backups.

    My theory is that some change was done to the MAMP server itself.

    Thread Starter maxident

    (@maxident)

    Hi Olsi,

    thank you for your response. I did try to restore from my last backup (wp folder, database) but the problem stays, I cannot access my wp-admin.

    Please let me know If there is anything else you think I could try.
    Thank you for your support,
    Max

    • This reply was modified 9 years, 3 months ago by maxident.
    Thread Starter maxident

    (@maxident)

    Next to the password recovery not working I also had a problem with the wp mail function. So the forgot password mail did not even arrive, I had another support topic open for that question. A helpful user solved the mail issue by posting the below, which worked for me. At the same time it also fixed the problem I had with the password recovery, which I was asking about in this issue. So I post his fix here as well.

    ——————————————————————-

    I had the same issue on my multiside.
    Digged up this solution, but can’t remember where I found it.

    I planted this into the functions.php of my child theme:

    // fixes “Lost Password?” URLs on login page
    add_filter(“lostpassword_url”, function ($url, $redirect) {

    $args = array( ‘action’ => ‘lostpassword’ );

    if ( !empty($redirect) )
    $args[‘redirect_to’] = $redirect;

    return add_query_arg( $args, site_url(‘wp-login.php’) );
    }, 10, 2);

    // fixes other password reset related urls
    add_filter( ‘network_site_url’, function($url, $path, $scheme) {

    if (stripos($url, “action=lostpassword”) !== false)
    return site_url(‘wp-login.php?action=lostpassword’, $scheme);

    if (stripos($url, “action=resetpass”) !== false)
    return site_url(‘wp-login.php?action=resetpass’, $scheme);

    return $url;
    }, 10, 3 );

    // fixes URLs in email that goes out.
    add_filter(“retrieve_password_message”, function ($message, $key) {
    return str_replace(get_site_url(1), get_site_url(), $message);
    }, 10, 2);

    // fixes email title
    add_filter(“retrieve_password_title”, function($title) {
    return “[” . wp_specialchars_decode(get_option(‘blogname’), ENT_QUOTES) . “] Password Reset”;
    });

    Thread Starter maxident

    (@maxident)

    Nope, It was my mistake since I forgot to close the last bracket…

    Ulme you are a star, this worked for me, the “lost password” mail function works fine now together with my personalised login and admin page! You saved my day!

    Thanks a lot!

    Thread Starter maxident

    (@maxident)

    Hi Ulme,

    thank you for your response, this sounds promising. Tried to implement the code how is it and it did not work. Do I have to change some of the URLs in the code you posted with my actual URLs for it to function?

    Thanks for your support,
    Max

    Thread Starter maxident

    (@maxident)

    Hi I did have another look and I do have some videos now that work but many are not. As I am not sure yet if there might not be another plugin causing the problem. I would like to fix some things first and then get back to you if the issue prevails, then I can also send the link to the site. Since the site is passwordprotected would there be a way to send you a private message with the password?

    Best regards,
    Max

    Thread Starter maxident

    (@maxident)

    Yes it is a Multisite setup, sorry for not mentioning that right away.

    I have the same problem using wordpress, visual composer and draw.io.

    Thread Starter maxident

    (@maxident)

    Hi Mikko,

    thank you for your response. I am not sure I explained well : ) So whatI am trying to do is not to include image names in the search results. Is there a way to only include Headlines and Texts in the search results?

    In case my search.php would give insight into what is going on I am pasting it here but please let me know if I need to provide any additional information.

    http://pastebin.com/SZQ0Z4mN

    Thank you for your support and this great plugin.

    Best regards,
    Max

    Thread Starter maxident

    (@maxident)

    hear my search.php

    <?php
    /**
    * The template for displaying Search Results pages
    *
    * @package WordPress
    * @subpackage Ken
    * @since Ken 1.0
    */

    global $post;
    $layout = ‘right’;

    get_header(); ?>
    <div id=”theme-page” class=”page-master-holder”>
    <div class=”background-img background-img–page”></div>
    <div class=”mk-main-wrapper-holder”>
    <div class=”theme-page-wrapper mk-main-wrapper <?php echo $layout; ?>-layout mk-grid vc_row-fluid”>
    <div class=”theme-content” itemprop=”mainContentOfPage”>
    <section class=”mk-search-loop”>
    <?php

    if ( have_posts() ):
    while ( have_posts() ) :
    the_post();

    $post_type = get_post_type();
    ?>

    <article class=”blog-list-entry”>

    <?php /* Search post type icons that defines result post type */ ?>
    <div class=”list-posttype-col”>
    ” class=”post-type-icon”><i class=”mk-theme-icon-<?php echo $post_type; ?>”></i>
    </div>

    <?php /******** ?>

    <? /* Search content column that has all the data */ ?>
    <div class=”list-content-col”>
    <h3 class=”the-title”>“><?php relevanssi_the_title(); ?></h3>
    <p><?php the_excerpt(); ?></p>
    <div class=”listtype-meta”>

    <?php if($post_type != ‘page’) : ?>
    <time datetime=”<?php the_time( ‘F, j’ ); ?>” itemprop=”datePublished” pubdate>
    “><?php the_date(); ?>
    </time>
    <?php endif; ?>

    <?php if($post_type == ‘post’) { ?>

    <span><?php echo get_the_category_list( ‘, ‘ ); ?></span>

    <?php } elseif ($post_type == ‘portfolio’) { ?>

    <span><?php echo implode( ‘, ‘, mk_get_portfolio_tax($post->ID, false) ); ?></span>
    <?php } ?>

    </div>

    <!–<div class=”the-excerpt”><?php //the_excerpt(); ?></div>–>
    </div>
    <?php /**********/ ?>
    </article>

    <?php

    endwhile;

    mk_theme_blog_pagenavi($before = ”, $after = ”, NULL, $paged);

    wp_reset_query();

    else :
    ?>

    <h3><?php _e(‘Nothing Found’, ‘mk_framework’); ?></h3>
    <p><?php _e(‘Sorry, Nothing found! Try searching a different phrase.’, ‘mk_framework’); ?></p>

    <?php
    get_search_form();

    endif;
    ?>
    </section>
    </div>
    <?php if($layout != ‘full’) get_sidebar(); ?>
    <div class=”clearboth”></div>
    </div>
    <div class=”clearboth”></div>
    </div>
    </div>
    <?php get_footer(); ?>

    Thread Starter maxident

    (@maxident)

    Hi Mikko,

    thank you for your quick response. The mentioned code snipplet in your instructions go into the search.php correct?

    Does it matter at which position I insert the code snipplet?

    Hi Guys,

    I have the same problem and its obviously quite a noob question. So I installed and activated the plugin networkwide for my multisite wordpress setup.

    I did the indexing and changed the setting to my liking. Never the less the search results show exactly how they did before. Especially I am confused as the searchterm does not show up highlighted in the results as mentioned although I thing I did the setup right (selecting colours for highlight etc.)

    Also as I am using the free version of the plugin I read there would be an Advert or reference shown in the results page. I also do not have this reference, which makes me believe I did not install it correctly.

    The pastebin url for my search.php is:

    http://pastebin.com/5WhjPkeG

    Please help if you know the problem and how to fix it. Thanks a lot for your support,
    Best, Max

    Thread Starter maxident

    (@maxident)

    Thank you for your reply and pointing me in the right direction, this is highly appreciated. I will get a better understanding on version control and deploy systems and take it from there.

    Thread Starter maxident

    (@maxident)

    ​Another thing I would like to add is that when reverting back to an older version of the website (wp directory, database) on the company IIS server the website shows correctly. Again switching back to the latest upload that are troubled. They are working fine for some minutes before they fall back to not working. It seems to be some caching issue related to file permissions. Almost as if the .css or template settings get cached from the older version of the website for some minutes and then get lost again. I did set the file permissions of the whole wordpress folder and all subdirectories and files to read, write and act. (equivalent to chmode 777 on a linux server).

    Could it be that I have to upload certain files again after changing the file permission of the whole wordpress folder to read, write, act?

    Please let me know if you need additional information. I can provide access to the setup on the testserver mentioned below but it is a linux server and not like the IIS I am using for the project.

    Best regards,
    Max Bayer

Viewing 15 replies - 1 through 15 (of 16 total)