dinel2016
Forum Replies Created
-
Forum: Plugins
In reply to: [Mendeley Plugin] using a custom cslIt’s a bit late here, so I will have a proper look tomorrow. I tried to use your CSL file and I get the same error as you do. The output of the curl request is
Forbidden You don't have permission to access /musculoskeletal-research-laboratories01.csl on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
There must be a setting on your server. There seem to be cases where you can retrieve a link using the browser, but not using curl. Usually the problem can be solved by passing the right parameters to curl (maybe faking the agent. Do you have any special settings for robots?). I will try tomorrow.
Forum: Plugins
In reply to: [Mendeley Plugin] using a custom cslHello,
Now I got quite curious and had a look at the code. My guess is that there is something specific about your server.
If you want to try to fix this problem have a look at the code
https://plugins.trac.www.ads-software.com/browser/mendeleyplugin/trunk/wp-mendeley.php#L762The CLS file is retrieved using curl. My guess is that for some reason it does not work properly on your server. The errors you see are completely misleading. They do not have anything to do with retrieval from mendelay. They are errors thrown by curl. It would be great if the messages are changed accordingly.
If you know PHP you could modify the error messages to be more explicit. If not, I am happy to help. Send me the exact URL of the CLS file and I will implement a request using curl in PHP.
Good luck
Forum: Plugins
In reply to: [Mendeley Plugin] using a custom cslI tried your setting on one of my servers and it works without a problem. Things to keep in mind:
– make sure you do not have an extension (e.g. txt) which is hidden by your operating system (apologies if this sounds like “have you tried restarting your computer”/”is your computer plugged in?” ??– Use the text editor, not the visual editor, to make sure that WordPress doesn’t do something silly to your code.
– I wonder whether you really have problems because of the CSL file or it is only a coincidence. The Mendeley documentation says Error 401 is “Token has expired”. See: https://dev.mendeley.com/reference/topics/authorization_overview.html
Try renewing the token.Sorry, I can’t think of any other cause for this problem. I am happy to help if you send me the link to your website. Maybe I can spot anything.
Forum: Plugins
In reply to: [Mendeley Plugin] using a custom cslHello,
What happens if you try to access your csl file directly (i.e. point your browser to https://myWebsite/wp-content/plugins/mendeleyplugin/style/MyCustomCSL.csl). Could it be that wordpress interferes? Do you have access to the error log of your web server? Usually there are errors messages there.
Regards,
Constantin
Forum: Plugins
In reply to: [Mendeley Plugin] OAuth2 Token Authorization Failing at last stepI vaguely remember that I had a similar problem. In the end it turned up that the problem was not the plugin, but the settings of my server. The plugin uses curl to retrieve the token, but I did not have it installed on my web server. Try enabling the debugging in the plugin, in wordpress and watch the error log from your web server. You should find a hint somewhere.
Forum: Plugins
In reply to: [Mendeley Plugin] Cache database not createdHello,
Thank you for your prompt reply. Now I get an error in the syntax:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARACTER SET=utf8 )' at line 8] CREATE TABLE wp_mendeleycache ( id mediumint(9) NOT NULL AUTO_INCREMENT, type mediumint(9) NOT NULL, mid tinytext NOT NULL, content longtext, time bigint(11) DEFAULT '0' NOT NULL, UNIQUE KEY id (id) DEFAULT CHARACTER SET=utf8 )
I believe the correct syntax is
$sql = "CREATE TABLE " . $table_name . " ( id mediumint(9) NOT NULL AUTO_INCREMENT, type mediumint(9) NOT NULL, mid tinytext NOT NULL, content longtext, time bigint(11) DEFAULT '0' NOT NULL, UNIQUE KEY id (id)) DEFAULT CHARACTER SET=utf8 ;".
This works fine on my server and the table gets created.
- This reply was modified 7 years, 11 months ago by dinel2016.