Error updating a collection
-
Hi,
suddenly I got this error in LR when I was trying to update a collectionIt was not possible to update the collection.
An internal error has occurred: bad argument #1 to ‘?’ (string expected, got nil)Any solution?
/per
-
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/
Hi,
in LR the plugin section of LR it says that the plugin is activated but a problem has occurred
Per
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: http://sandvikshamn.se
2017-12-18 08:52:08 +0000, TRACE Loading REST lib
2017-12-18 08:52:08 +0000, TRACE Execute URL http://sandvikshamn.se
2017-12-18 08:52:08 +0000, TRACE URL: http://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: http://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, ERRORHi @ptg1947, please use REST instead. Have a VERY thorough look at https://meowapps.com/wplr-sync/debug-connectivity/.
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.
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.
Have disabled all plugins except WP/LR Sync.
Same error however.
What else can I do?
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.
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?
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).
Ok. But what shall I ask my hosting service?
Two things:
– the PHP Error Logs
– if they are blocking your IP address against the requests to the WordPress APIAnd when I get the PHP Error logs, what shall I look for in the logs?
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.
The hosting service says I am not blocked and that they do not maintain any PHP Error Logs. Hm, Guess I am stucked.
The topic ‘Error updating a collection’ is closed to new replies.