Forum Replies Created

Viewing 15 replies - 1 through 15 (of 207 total)
  • Thread Starter anatman

    (@anatman)

    Perfect, solved!
    Thank you so much for your time and effort.

    Thread Starter anatman

    (@anatman)

    Ha!

    So – I’m running locally but using https://mysite.local. Looks like this is the problem, please take a look:

    Info : Ajax queue proceed request (queue length: 1)
    Info : Proceed queue asynchronously WP_Error Object
    (
        [errors] => Array
            (
                [http_request_failed] => Array
                    (
                        [0] => cURL error 60: SSL certificate problem: self signed certificate
                    )
    
            )
    
        [error_data] => Array
            (
            )
    
    )
    

    Any simple way to work around this? Or will i have to go back to https?

    • This reply was modified 4 years, 7 months ago by anatman.

    Thank you, here is the url for the new thread

    Thread Starter anatman

    (@anatman)

    Update, answering dev:

    Could you tell me in this new post if you have anything after these two lines?
    Something starting by Info : Synchronous queue finished or Info : Max execution time is

    No, i don’t have anything like that… just the two lines i informed in the original post, repeated over and over again, but now i noticed i have a few of these, sprinkled around:

    Info : Heartbeat received, queue length is 1

    Thank you very much for your help.

    Hi, thank you for your plugin.
    I am having the same issue.

    PHP 7.2.9, WP 5.4, just updated the plugin to this latest version you uploaded with the debug logging. Running the local site on a “Local by Flywheel” instalation, nginx and MySQL 5.7.23.
    I had migrated my site from a server on UTC-3 to a local instalation which is at UTC-4, and had kept the old setting. Now i have set the local installation to UTC-4.

    The manual fix does not work, i still have the file in the queue. When i visit the manual fix page, a single “0” is printed on the white page, but twhen i go back to the dashboard, the file is still waiting in the queue. The debug log shows 2 lines repeating, and it keeps increasing in size with those two same lines, they are:

    Info : Ajax queue proceed request (queue length: 1)
    Info : Proceed queue asynchronously

    Thanks a lot, appreciate your help.

    Thread Starter anatman

    (@anatman)

    That’s great George, thank you so much.

    It does work. At first, the text of the custom field was not being run through the filters as i needed. Then i started raising the priority of the custom_append_internal_comments function. When i raised it to 9, the auto <p> WordPress filter started working. I had to raise it to a very high 2, because i use a text replace plugin, and it only filters the custom field’s text if i use 2 for custom_append_internal_comments.
    Would you supose there’s any problem using a priority of 2?

    Again, thank you for going above and beyond all support expectations!
    Eduardo

    Thread Starter anatman

    (@anatman)

    Hi George,

    Thank you for your reply.
    That didn’t solve it, unfortunately… Please take your time, i’m grateful already for the great support you provide.

    Best regards!
    Eduardo

    Thread Starter anatman

    (@anatman)

    Hi George,

    I finally made time for the DB character set changeover. It was actually much simpler than i first thought: i created a new DB in the server, then i changed the char set and collation to utf8 and utf8_unicode_ci.
    I opened the SQL dump with BBEdit, using utf8 as the editor encoding. I could see all characters well, so i didn’t pass the file through iconv… I had to change only two instances of latin1, which belonged to a plugin (WPML).
    I imported the file to the new DB using Sequel Pro. Then i changed the settings for char set and collation in wp-config.php, and also the DB name, so it would start showing the new DB.

    The website looks fine, all text is readable, including the first posts from 2004.

    However, the JSON output is not ok yet. On the front page https://taijiquan.pro.br, i get some content inside those script tags. But if you check other pages, for example https://taijiquan.pro.br/estilo-chen/segredo-taijiquan/, there’s nothing inside them.

    If you take a look at the JSON in the front page, it translates a dot character as \u00b7, b the way. That is the expected behavior, right?

    For this test, I have commented out this in functions.php:

    function amt_utf8_enc_dec(&$item, $key) {
        // Madatory to pass the $item as reference '&$item' in order the value to be changed
        $item = utf8_decode($item);
        $item = utf8_encode($item);
    }
    function amt_schemaorg_jsonld_utf8( $metatags ) {
        array_walk_recursive($metatags, 'amt_utf8_enc_dec');
        return $metatags;
    }
    add_filter( 'amt_jsonld_schemaorg_metadata_head', 'amt_schemaorg_jsonld_utf8' );

    Also, i never tried this, because i don’t know how to fill in the function:

    function utf8json($inArray) {
        ...
        ...
    }
    
    function amt_schemaorg_jsonld_utf8( $metatags ) {
        array_walk_recursive($metatags, 'utf8json');
        return $metatags;
    }
    add_filter( 'amt_jsonld_schemaorg_metadata_head', 'amt_schemaorg_jsonld_utf8' );

    Thank you!

    Thread Starter anatman

    (@anatman)

    Hi George,
    Thank you, i’m sure it was a lot of work writting this detailed guide. There’s no chance i would try it without such a guide, let alone succeed. This will, however, require some time – i will set a saturday or sunday aside for this, so in case something goes wrong, i have the time to fix it.
    Also, looks like it is worth the try, even if it doesn’t solve the JSON problem. At least i will have the database enconding sorted out right.
    I will post back when i try it.

    Thread Starter anatman

    (@anatman)

    Hi George,

    The answers were:
    1) latin1
    2) latin1_swedish_ci

    I am running WP since version 0.72. I remember that somewhere, early on, there was a database encoding change. That was the only time when i touched this, and i followed some instructions that were kind of standard at the time, for converting the encoding and collation. Then i never touched these again.

    Thank you!

    Thread Starter anatman

    (@anatman)

    Hi George,

    I have used the code for raising the limit on metadata for images/video/audio, it works fine, thank you.

    I had turned off the error reporting simply by commenting the lines in wp-config.php that i previously used to turn it on. It is ON right now, as the file i am logging to is not publicly accessible. It is in a directory in the server which is never served to the web.

    The proccess i used to created the gallery was:
    i clicked on “Add Media” in the post editing page. Then, i clicked on “Create Gallery” on the window that openned. Then i uploaded the files using WP’s in terface, in the same window. Then i chose the options (alignment, size), and it was there!
    Actually this was the first time i ever created a gallery using WP’s interface. It was WP that inserted the shortcode for me, i didn’t type it by myself.

    I’ll wait for the next update to the Metadata plugin. If i can help in any way, please let me know.

    Thread Starter anatman

    (@anatman)

    I might have found something else. I just added a gallery to the post mentioned above, with 12 images. The DC Terms are correctly generated, but the schema.org seems not to be. The metadata for the last 2 images is missing.

    I reverted to schema.org in the body, so you can check.

    Thread Starter anatman

    (@anatman)

    Hi George,

    Thank you for the instructions. I am using the custom code in functions.php, but i still get script tags with nothing in between them.

    I activated the plugin, and turned the error logging on, as per its instructions.
    (i checked that errors are being logged before testing: i forced an error, and it was logged, then i emptied the file).

    Then i reloaded the example a few times. Then, i went back to the dashboard, but the plugin still says “The log file is empty.”

    The error logging in now off, for security, following your advice.

    Thread Starter anatman

    (@anatman)

    Thank you George, i got the plugin and installed it. My error loggin is disabled. I will configure everything and come back here to report.

    Thread Starter anatman

    (@anatman)

    Hi George

    I changed the line of code – here i had that in line 1944, not 1946 – but i still get only the script tags, no content inside them.

    I’m not sure how to search the server error log for and error. I downloaded an access log file, and searched for the word “metadata”, which is in the plugin path. Did i do it right? I couldn’t find an error.

    I will research better the double-saving and report back, ok?

    Thanks a lot!

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