Jack-Dane / odoo-wp-plugin

Odoo WordPress Plugin
GNU General Public License v3.0
8 stars 4 forks source link

500 (Internal Server Error) on Odoo Connections #21

Closed Muntasir-Mahmud closed 11 months ago

Muntasir-Mahmud commented 1 year ago

I am getting 500 (Internal Server Error) on Submit of Odoo Connections. I have changed the browser but it didn't work. @Jack-Dane please help. image

Jack-Dane commented 1 year ago

Hi @Muntasir-Mahmud,

A 500 error would suggest something has gone wrong on the WordPress server side, do you have any error logs from WordPress you could supply to help debug the issue?

Muntasir-Mahmud commented 1 year ago

@Jack-Dane Thanks you for your comment. Apparently, this error was occurring in local environment. From the server everything is okey. I have a question though, How can I send many2many field constant value? Like I want to send specific tags from the wordpress.

Jack-Dane commented 1 year ago

@Muntasir-Mahmud, unfortunately adding Many2Many or One2Many fields on submit isn't supported.

A suggested workaround would be to create an automated action to add them on some condition that could only be present when submitting from the WordPress site.

Muntasir-Mahmud commented 9 months ago

Hello @Jack-Dane . I had to test some thing in local computer. On Submit of Odoo Connections I am getting 500 error message again. Here is the image of log. Both Wordpress and Odoo are running in localhost. image

Jack-Dane commented 9 months ago

@Muntasir-Mahmud, sorry for the delay, it looks like fopen is returning false when creating the encryption file.

And the error log suggests WordPress doesn't have the correct permissions to write to /opt/lampp/htdocs/wordpress/. The /opt directory is usually owned by root, I wouldn't expect this in a standard install of WordPress - so I don't think this is a bug.

Maybe you change the owner of the WordPress directory to the same as the owner of the WordPress service? I am not sure how WordPress is configured on your machine to know who this user is.