• Hello,

    After restoring a bunch backups, I’ve discovered something on Sept 25 caused all the image captions and alt tags to disappear from all the posts in my wp website. The captions and alt tags are still attached to the images in the Media Library but inside the posts they are all gone.

    I am a relative newbie to wp. Can someone here direct me on how to investigate what could have caused this? Google searches have not be fruitful.

    This is what the error_log file says for that day. Any guesses would be much appreciated:

    [25-Sep-2023 07:03:23 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485760 bytes) in /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/Requests/src/Transport/Curl.php on line 601
    [25-Sep-2023 07:03:23 UTC] PHP Stack trace:
    [25-Sep-2023 07:03:23 UTC] PHP   1. {main}() Command line code:0
    [25-Sep-2023 07:03:23 UTC] PHP   2. {main}() Command line code:0
    [25-Sep-2023 07:03:23 UTC] PHP   3. require_once() /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php:31
    [25-Sep-2023 07:03:23 UTC] PHP   4. require_once() /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php:17
    [25-Sep-2023 07:03:23 UTC] PHP   5. WP_CLI\bootstrap() /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php:32
    [25-Sep-2023 07:03:23 UTC] PHP   6. WP_CLI\Bootstrap\LaunchRunner->process($state = class WP_CLI\Bootstrap\BootstrapState { private $state = ['context_manager' => class WP_CLI\ContextManager { ... }] }) /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php:78
    [25-Sep-2023 07:03:23 UTC] PHP   7. WP_CLI\Runner->start() /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php:28
    [25-Sep-2023 07:03:23 UTC] PHP   8. WP_CLI\Runner->load_wordpress() /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1274
    [25-Sep-2023 07:03:23 UTC] PHP   9. require() /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1356
    [25-Sep-2023 07:03:23 UTC] PHP  10. do_action($hook_name = 'wp_loaded') /home2/iranolog/public_html/wp/escape_from_tehran/wp-settings.php:654
    [25-Sep-2023 07:03:23 UTC] PHP  11. WP_Hook->do_action($args = [0 => '']) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/plugin.php:517
    [25-Sep-2023 07:03:23 UTC] PHP  12. WP_Hook->apply_filters($value = '', $args = [0 => '']) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/class-wp-hook.php:334
    [25-Sep-2023 07:03:23 UTC] PHP  13. _wp_cron('') /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/class-wp-hook.php:310
    [25-Sep-2023 07:03:23 UTC] PHP  14. spawn_cron($gmt_time = 1695625403.3606) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/cron.php:1004
    [25-Sep-2023 07:03:23 UTC] PHP  15. wp_remote_post($url = 'https://escapefromtehran.com/wp-cron.php?doing_wp_cron=1695625403.3605620861053466796875', $args = ['timeout' => 0.01, 'blocking' => FALSE, 'sslverify' => FALSE]) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/cron.php:932
    [25-Sep-2023 07:03:23 UTC] PHP  16. WP_Http->post($url = 'https://escapefromtehran.com/wp-cron.php?doing_wp_cron=1695625403.3605620861053466796875', $args = ['timeout' => 0.01, 'blocking' => FALSE, 'sslverify' => FALSE]) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/http.php:186
    [25-Sep-2023 07:03:23 UTC] PHP  17. WP_Http->request($url = 'https://escapefromtehran.com/wp-cron.php?doing_wp_cron=1695625403.3605620861053466796875', $args = ['method' => 'POST', 'timeout' => 0.01, 'blocking' => FALSE, 'sslverify' => FALSE]) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/class-wp-http.php:616
    [25-Sep-2023 07:03:23 UTC] PHP  18. WpOrg\Requests\Requests::request($url = 'https://escapefromtehran.com/wp-cron.php?doing_wp_cron=1695625403.3605620861053466796875', $headers = [], $data = NULL, $type = 'POST', $options = ['timeout' => 0.01, 'useragent' => 'WordPress/6.3.1; https://escapefromtehran.com', 'blocking' => FALSE, 'hooks' => class WP_HTTP_Requests_Hooks { protected $url = 'https://escapefromtehran.com/wp-cron.php?doing_wp_cron=1695625403.3605620861053466796875'; protected $request = [...]; protected $hooks = [...] }, 'redirects' => 5, 'verify' => FALSE, 'verifyname' => FALSE, 'data_format' => 'body']) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/class-wp-http.php:396
    [25-Sep-2023 07:03:23 UTC] PHP  19. WpOrg\Requests\Requests::get_transport($capabilities = ['ssl' => TRUE]) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/Requests/src/Requests.php:466
    [25-Sep-2023 07:03:23 UTC] PHP  20. WpOrg\Requests\Requests::get_transport_class($capabilities = ['ssl' => TRUE]) /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/Requests/src/Requests.php:269
    [25-Sep-2023 07:03:23 UTC] PHP  21. class_exists($classname = 'WpOrg\\Requests\\Transport\\Curl') /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/Requests/src/Requests.php:247
    [25-Sep-2023 07:03:23 UTC] PHP  22. spl_autoload_call($class_name = 'WpOrg\\Requests\\Transport\\Curl') /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/Requests/src/Requests.php:247
    [25-Sep-2023 07:03:23 UTC] PHP  23. WpOrg\Requests\Autoload::load($class_name = 'WpOrg\\Requests\\Transport\\Curl') /home2/iranolog/public_html/wp/escape_from_tehran/wp-includes/Requests/src/Requests.php:247
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello There

    Since the alt and caption is appearing in your media library but not on the posts, I recommand to clear all the caching including the server level if there is any.

    You may also check your site incognito/private mode if that makes any differnce.

    Regarding the error message, this error occurs when your PHP code tries to allocate more memory than what is allowed by the memory_limit setting in your PHP configuration.

    To resolve this issue, you can do the following:

    1. Increase PHP Memory Limit: You can increase the PHP memory limit by editing the php.ini file or adding the following line to your .htaccess file (if your hosting environment allows it):

    php_value memory_limit 256M

    Thread Starter Alex T.


    @vikramkeelka Hello, many thanks for your kind response.

    It’s safe to say that a memory allocation error would NOT cause image captions and alt tags disappear, correct?

    Regarding your recommendations:

    I am researching on how to flush cache on WP and getting more confused. I do not have any caching plugins installed. I also put CloudFlare put in developer mode. So is there a WordPress cache to flush? Sorry about the very newbie question.

    Also checking the site in incognito mode displays the same issue.

    More on the issue

    As I explained, only when i restore database to sept 25 or prior, the captions and alt text appear.

    For example, on this page [ URL that made the spam filter cry deleted ] all the pics should have captions. Now only one does (the pic inside taxi) presumably because it was added after Sept 25.

    • This reply was modified 7 months, 3 weeks ago by Jan Dembowski.
    Moderator Jan Dembowski


    Forum Moderator and Brute Squad

    @polaatx That URL made the spam filter yell “SPAM! SPAM! SPAM!”

    Do you have another? I think that was a URL shortner which would do it. URL shortners are not really permitted here as they have been viciously abused in the past by some.

    Don’t use that URL shortner if that’s what it is. Don’t use any URL shortner here.

    Thread Starter Alex T.


    i apologize. Didn’t know url shortener would trigger spam filters. Here’s the original link


    Thread Starter Alex T.


    It seems the disappearance of alt tags and image captions happened only to the last few posts so I manually redid them. Never figured out what happened. Thanks for your attention.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘captions and alt tags disappeared’ is closed to new replies.