• Resolved ptg1947

    (@ptg1947)


    Hi,
    suddenly I got this error in LR when I was trying to update a collection

    It was not possible to update the collection.
    An internal error has occurred: bad argument #1 to ‘?’ (string expected, got nil)

    Any solution?

    /per

Viewing 15 replies - 1 through 15 (of 33 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Suddenly means that it doesn’t come from the plugin. The reasons can be very diverse. Best way to find the issue is to follow this: https://meowapps.com/wplr-sync/debug-connectivity/

    Thread Starter ptg1947

    (@ptg1947)

    Hi,

    in LR the plugin section of LR it says that the plugin is activated but a problem has occurred

    Per

    Thread Starter ptg1947

    (@ptg1947)

    Hi again,

    there are errors in the sync log as you can see below.

    2017-12-18 08:52:08 +0000, TRACE WPLRSyncAPI.config.url: https://sandvikshamn.se
    2017-12-18 08:52:08 +0000, TRACE Loading REST lib
    2017-12-18 08:52:08 +0000, TRACE Execute URL https://sandvikshamn.se
    2017-12-18 08:52:08 +0000, TRACE URL: https://sandvikshamn.se/wp-json/wplr/v1/sync_collection
    2017-12-18 08:52:08 +0000, TRACE Last check was 25220692 mn ago, but max time is 5760 mn.
    2017-12-18 08:52:08 +0000, TRACE WPLRSyncAPI.config.url: https://sandvikshamn.se
    2017-12-18 08:52:09 +0000, ERROR Response: “Error Domain=NSXMLParserErrorDomain Code=73 \”Line 3: Specification mandates value for attribute itemscope\nLine 3: attributes construct error\nLine 3: Couldn’t find end of Start Tag head\n\” UserInfo={NSLocalizedDescription=Line 3: Specification mandates value for attribute itemscope\nLine 3: attributes construct error\nLine 3: Couldn’t find end of Start Tag head\n}”
    2017-12-18 08:52:09 +0000, ERROR Not XML? Body dump follows…
    2017-12-18 08:52:09 +0000, ERROR Body is empty. PHP Error Logs on the server must be checked.
    2017-12-18 08:52:09 +0000, ERROR

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @ptg1947, please use REST instead. Have a VERY thorough look at https://meowapps.com/wplr-sync/debug-connectivity/.

    Thread Starter ptg1947

    (@ptg1947)

    Hi, Jordy, Have always been using REST and read the debug Section to the best of my knowledge. There are concepts in this Section which I Franklin do no Have a clue about. Maybe you could highlight certain parts which could be of relevance for me.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Looks like there is an error happening on your PHP Error Logs. If you don’t know where to look, try disabling ALL the plugins except WP/LR Sync and try again.

    Thread Starter ptg1947

    (@ptg1947)

    Have disabled all plugins except WP/LR Sync.

    Same error however.

    What else can I do?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Have a look at your PHP Error Logs. Ask your hosting service if you don’t know what it is. Also, ask them if they are blocking you from your install.

    Thread Starter ptg1947

    (@ptg1947)

    Will check with my hosting service. The PHP Error Logs is cryptical for me. Anything specific I should look for? There are 5 diagnostic messages in the WP/LR Sync as follows

    Plug-in error log for plug-in at: /Users/perthege/WP_LR SYNC/wplr.lrplugin
    **** Error 1
    Det h?r plugin-programmets efterbearbetningsuppgift slutf?rdes inte korrekt.
    bad argument #1 to ‘?’ (string expected, got nil)

    The Swedish is translated here: This plugin-program’s post processing task was not completed correctly.

    Can this explain anything?

    Plugin Author Jordy Meow

    (@tigroumeow)

    No, because you need the PHP Error Logs, the logs you gave me are from plugin in Lightroom. Basically, it couldn’t read the response from your server because it’s empty (string expected, got nil).

    Thread Starter ptg1947

    (@ptg1947)

    Ok. But what shall I ask my hosting service?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Two things:
    – the PHP Error Logs
    – if they are blocking your IP address against the requests to the WordPress API

    Thread Starter ptg1947

    (@ptg1947)

    And when I get the PHP Error logs, what shall I look for in the logs?

    Plugin Author Jordy Meow

    (@tigroumeow)

    There shouldn’t be any errors ?? So whatever is there, should be fixed. You can share it here, or at least the last few lines.

    Thread Starter ptg1947

    (@ptg1947)

    The hosting service says I am not blocked and that they do not maintain any PHP Error Logs. Hm, Guess I am stucked.

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Error updating a collection’ is closed to new replies.