Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter 1db

    (@1db)

    George —

    Thanks, that was indeed the problem. This is the first site I’ve ever built that was hosted on Siteground, and this is the most aggressive caching I’ve ever seen. They cached the site before I even began building it!

    Thread Starter 1db

    (@1db)

    That’s what I was thinking, too. And I’ve had problems with them in the past, and had to request settings be changed.

    The irony is, this particular client just fired me — not over this issue, over something else — so now I don’t have to worry about this.

    Thread Starter 1db

    (@1db)

    This is, as near as I can tell, from yesterday morning’s attempt to build the index, just before I deleted and reinstalled Relevanssi 4.2.0. I’m not sure if any of this is actually sensitive data, so I’ve obfuscated some of it:

    2020-04-02 05:41:25.809791 [INFO] [905904] [ my IP address ] File not found [/home/path/to/wordpress/wp-admin/admin-ajax.php]

    This doesn’t tell me much…I hope it’s useful to you.

    Thread Starter 1db

    (@1db)

    I checked the error log, but I’m not anything like an expert in interpreting this. There were plentiful errors associated with admin-ajax.php, and every one of them says “File not found.” The file, of course, is there, and has been all along, so I have no idea why the server couldn’t find it.

    Thread Starter 1db

    (@1db)

    Okay, an update: after performing the above test, I once again deleted Relevanssi and reinstalled it, version 4.2.0. I activated it, saved the settings I needed, and successfully built the index in 2 seconds. Four requests to admin-ajax.php, all of them OK.

    One very strange thing, however: on the plugins page, there is no indication that there is a newer version of Relevanssi, no update prompt at all.

    Thread Starter 1db

    (@1db)

    Request to admin-ajax.php results in a “500 Internal Server Error,” and the timer just counts up forever while stuck on “Wiping out the index…”

    Thread Starter 1db

    (@1db)

    No, and one of the first things I tried was a very bare-bones functions.php that had nothing in it but support for menus. Besides, I also switched to other themes, and the problem never went away.

    Could this be related to PHP version, or some setting on the server?

    (BTW: just updated to 5.4, and that didn’t help. But it sure took a long time.)

    Thread Starter 1db

    (@1db)

    I was able to get the plugin working by deleting it and installing 4.2.0. Then I updated it to make sure, the update wouldn’t work, and I rolled it back again. But now it won’t complete the index, so I’m wondering if the real problem might be my hosting service, since it was slow and flaky all day long.

    Thread Starter 1db

    (@1db)

    The database does have Relevanssi tables. I didn’t see any error messages in the console.

    It gets stranger. I use custom fields (ACF) almost exclusively, and I have the custom fields setting at “Visible.” This is what I usually do. Still, clicking “Build Index” does nothing, and “State of the Index” says “0 documents.”

    I went to one of the pages and duplicated the content of a WYSIWYG field in the main edit box (wp_content), saved the page, and checked Relevanssi. Now it says, “1 document.” But it also still shows the alert at the top of the page, “You do not have an index!”

    I went to another page, and once again entered some text in the main edit box, saved, and checked Relevanssi. “2 documents.” But the alert is still there, and clicking the “Build Index” button still does nothing…at least, that I can tell.

    (BTW, I also deregistered JQuery and loaded 3.1.1 through the header. It was loading 1.12.4, and I’ve had problems before with that version. Changing versions accomplished nothing.)

    Thread Starter 1db

    (@1db)

    Nope. Thanks, but that was the first thing I tried. Just tried it again anyway, and no joy.

    Thread Starter 1db

    (@1db)

    I added your code and asked the client to try again. It failed again, but this time it gave details of the referrer, including the key. But the key doesn’t match either the browser or the server key that’s saved in the plugin settings.

    I later tried to publish the dummy listing, and this time it failed for me too.

    BTW: the site is running 4.4.1. It’s hard to get clients to keep core and plugins updated, and there’s no maintenance contract in place.

    • This reply was modified 7 years, 2 months ago by 1db.
    Thread Starter 1db

    (@1db)

    Tijmen —

    Sorry it’s taken me so long to get back to you, but I had to make sure what was actually happening.

    The API key is set to work with a range of IP addresses, and the plugin continues to work correctly for me but not for my client. No matter what IP is set as the referrer, he’s unable to publish a store; but once he notifies me of this, I log in and click “Publish,” and it adds the store without any difficulties. The problem isn’t the browser used (probably), since he’s had failures in both Chrome and Firefox (I use Firefox). The only real difference that I can see is different ISPs.

    Thread Starter 1db

    (@1db)

    If I simply move <?php while (have_posts() ) : the_post(); ?> above the category/month if statements, then the headline will print above each post in the archive list. How is it possible to make this work?

    Edit: use rewind_posts. Thanks, Michael, I’ve got it working now.

    • This reply was modified 7 years, 9 months ago by 1db.
    Thread Starter 1db

    (@1db)

    No, it didn’t. The month is still November, the year is still -0001.

    Let me give a bit more info. Here is a larger snippet of that page:

    <?php if (have_posts() ) : ?>
      
            <?php if (is_category() ) { ?>
              <h3 class="categoryHead"><?php single_cat_title(); ?></h3>
            <?php } elseif (is_month() ) { ?>
              <h3 class="categoryHead"><span>Browsing posts from</span> <?php the_time('F, Y'); ?></h3>
            <?php } ?>
        
            <?php while (have_posts() ) : the_post(); ?>
            
              <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                <div class="meta">
                  <p><?php the_time('F j, Y') ?> | Posted in <span><?php the_category(', ') ?></p>
                </div>

    Notice that the_time is used twice. One works (the one in div.meta), and one does not. They’re both inside the loop. What gives?

    • This reply was modified 7 years, 9 months ago by 1db.
    Thread Starter 1db

    (@1db)

    Nope, that killed the page.

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