Forum Replies Created

Viewing 15 replies - 1 through 15 (of 37 total)
  • Thread Starter flicker177

    (@flicker177)

    One last thing: My cron setup is nothing unusual. All it does is use curl to hit the file wp-cron.php which runs cron processes when they’re due. If I use my WordPress cron manager I can run each item in the schedule manually with no error, If I manually run wp-cron.php it always generates the error. Anyway, the fix works so I’m happy 😉

    –Bill

    • This reply was modified 1 month ago by flicker177.
    Thread Starter flicker177

    (@flicker177)

    Very good! Thanks for the support! Case closed…

    –Bill

    Thread Starter flicker177

    (@flicker177)

    I’m getting closer. The problem is indeed at line 56 of the file wppa-wpdb-insert.php. Specifically this section:

    if ( $bret ) { setcookie( ‘wppa_session_id’, $sid, time() + 3600 ); return $wpdb->insert_id; }

    If I comment this out the error message stops. I don’t see any adverse effect on wppa as I’m using it. I read that the setcookie function can cause this issue but I don’t know enough about it to understand. The whole issue as I understand it is when php is outputting an html page it can send headers with meta info to the server before the body of the page. Once you’ve sent any of the body you can’t send a header again.

    Anyway hope this helps. Thanks!

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Oooops…It seems my cron using php rather than curl does not work. So I’m back to the curl version and generating errors every 15 minutes. I’ll keep looking…

    I do note that if I de-activate WPPA the error message goes away so I guess WPPA is actually involved but I don’t see how.

    –Bill

    • This reply was modified 1 month ago by flicker177. Reason: typo
    • This reply was modified 1 month ago by flicker177.
    Thread Starter flicker177

    (@flicker177)

    I looked at this a bunch more, its really strange. I doubt it’s WPPA’s fault. I tried de-activating all the plugins in the site except WPPA. That made no difference. I noticed that the error occurred every time my WordPress cron ran (cron job) but that nothing related to WPPA ran every 15 minutes.

    The file referenced in the error message and line 56 don’t look like they have any relation to the error.

    The cron job used curl to access the file wp-cron.php by https every 15 minutes. I found that if I used php to access the wp-cron.php file it ran fine and the error didn’t occur.

    On a local staging machine running a setup pretty similar to my host, the cron job with curl runs fine and generates no errors. I don’t know what’s different from my host. Interestingly I can’t get the cron to work on that machine using php but the version using curl works fine. Maybe that’s a permission issue, I haven’t spent much time on it.

    Anyway I hope this helps and I seem to be error free now.

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Thanks! Additional info:

    WordPress 6.9.4

    php 8.3.30

    mariadb 10.5.26

    –Bill

    Thread Starter flicker177

    (@flicker177)

    OK, that’s fine. I didn’t know that message came right from your plugin. I doubt I can have my host change php configurations, I’m on a cheap shared host. Just to be clear, I assume that the only impact would be speed, not a data failure?

    Thanks for all the work and the great support!

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Well…this gets curiouser and curiouser… I repeated the process this afternoon and it looks like the problem disappeared (?!?!) I guess my host must have done something beyond my understanding to break my Duplicator installation and perhaps now they have fixed it.

    WordPress and its whole ecosystem is seeming fragile to me these days. It seems to be able to generate problems on its own that are hard for me to troubleshoot. Anyway, all seems well now, thanks for the time, and have a great and crash-free New Year!

    Feel free to close the ticket.

    –Bill

    Thread Starter flicker177

    (@flicker177)

    I hope I can still post, I’m still working on this. I did look at the log files from the problem installs and don’t see any entries that show anything wrong. I’m not sure when the file deletion happens in the process. The first indication of trouble is right after the “Final WordPress Tests” screen when Duplicator’s Installer can’t find wp-login.php. When I exit the Installer and look at the root folder that file and a bunch of others are missing. None of this seems to be captured in the log.

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Hello,

    I’m using Duplicator Lite v1.5.14. You may have trouble reproducing this. I have my own localhost server running Apache2, php8.3, and Mariadb and I found that if I try exactly the same operation on that server, the problem doesn’t seem to happen. I have 2 sites on a shared host and I have the same problem upon trying to restore them with Duplicator Lite.

    So, the problem may have something to do with my host but I have no idea where to start looking. This host is running Mariadb 10.5.26, php 8.4.16, and Apache 2.4.63. (WordPress site health notes that Mariadb should be at least 10.6, my host says not to worry about that and they won’t upgrade yet because many sites on the shared server share Mariadb and an upgrade could potentially break many sites. Anyway, I really doubt that has anything to do with the issue.

    I did notice that on my host I have php 8.3 selected but no matter which version I select, phpmyadmin (the database manager) reports the php version as 8.4.16. I have no idea why.

    I guess the thing I still don’t understand is how a database-only restore could delete a bunch of important files, this seems impossible but it happens.

    Let me know if any additional info could help.

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Will do, thanks again!

    Thread Starter flicker177

    (@flicker177)

    Wow!! That was quick! Thanks so much, I still have no idea what was happening, I assumed it was my fault. Excellent support!

    Thread Starter flicker177

    (@flicker177)

    Hi Ollie,

    Yes, I understand that and deactivating the plugin before making the duplicator package is easy. The part that stumped me was that after migrating the site and reactivating the plugin broke everything again.

    The key was in deleting the files .ht.object-cache.-a.sqlite and object-cache.php before reactivating the plugin on the new site. This wasn’t obvious to me at all but it fixed the problem.

    Again, if the plugin deleted these files when activating, deactivating, or deleting the plugin I think we’d avoid the issue.

    Thanks,

    –Bill

    Thread Starter flicker177

    (@flicker177)

    I played with this some more. A Google search found this:

    Deleting the migrated .ht.object-cache.-a.sqlite and object-cache.php manually via ftp solves the redirection problem.

    Deleting these files *before* reactivating the plugin on the localhost solved the problem. If I’m not wrong it wouldn’t be a problem for the plugin itself to delete these files when uninstalling, activating or de-activating the plugin to avoid this issue. Anyway, I now have a good workaround and all is well here.

    Thanks again for the great plugin!

    –Bill

    Thread Starter flicker177

    (@flicker177)

    Hi Jacob,

    I tried the pre-release and it now seems to work fine. Thanks much!

    –Bill

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