Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.8.6 broken] Can't Save Post -> Redirects to 404 #448

Closed
leinadnat opened this issue Apr 30, 2018 · 11 comments
Closed

[v1.8.6 broken] Can't Save Post -> Redirects to 404 #448

leinadnat opened this issue Apr 30, 2018 · 11 comments

Comments

@leinadnat
Copy link

I can no longer save posts. It redirects me to an error post.
When i disable the facebook for woocommerce plugin, it redirects to the saved posts

@barbeapapier
Copy link

I've same problem!
With the last version, many php error cause crash when I save products posts.
This is the errors I've found in my log:
[30-Apr-2018 13:30:27 UTC] PHP Notice: Undefined property: WC_Facebook_Product::$ID in .../wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 442 [30-Apr-2018 13:30:27 UTC] PHP Notice: Undefined index: default_product in .../wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php on line 258 [30-Apr-2018 13:30:27 UTC] PHP Notice: Undefined index: variant in .../wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php on line 259 [30-Apr-2018 13:30:27 UTC] PHP Notice: Undefined property: WC_Facebook_Product::$ID in .../wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 442 [30-Apr-2018 13:30:27 UTC] PHP Notice: Undefined property: WC_Facebook_Product::$main_description in .../wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 220
and
[30-Apr-2018 13:29:24 UTC] PHP Notice: Undefined property: WC_Facebook_Product::$ID in .../wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php on line 442 [30-Apr-2018 13:29:24 UTC] PHP Warning: strpos() expects parameter 1 to be string, object given in .../wp-includes/shortcodes.php on line 179 [30-Apr-2018 13:29:24 UTC] PHP Warning: preg_match_all() expects parameter 2 to be string, object given in .../wp-includes/shortcodes.php on line 187 [30-Apr-2018 13:29:24 UTC] PHP Warning: array_intersect(): Argument #2 is not an array in .../wp-includes/shortcodes.php on line 188 [30-Apr-2018 13:29:24 UTC] PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in .../wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php on line 141

Thank's for help.

@sammul sammul added the bug label Apr 30, 2018
@sammul
Copy link
Contributor

sammul commented Apr 30, 2018

Hi @leinadnat @barbeapapier thanks for reporting. This is probably an error we introduced in latest version. Would you mind try https://github.com/facebookincubator/facebook-for-woocommerce/releases/tag/v1.8.5 for now until we have fix for new version?

@leinadnat
Copy link
Author

leinadnat commented Apr 30, 2018

Alright i have deleted v.1.8.6 and installed v1.8.5 works now

@sammul sammul changed the title Can't Save Post -> Redirects to 404 [v1.8.6 broken] Can't Save Post -> Redirects to 404 Apr 30, 2018
@barbeapapier
Copy link

barbeapapier commented Apr 30, 2018

Ok! I’m on 1.8.5 too now.

@seatexboards
Copy link

Hi there,
I have a same problem, with 1.8.6, as soon I add or modify a product, I get back an errors..
I tryed to disable the pluging and all works.. please fix.

@iljamm
Copy link

iljamm commented May 1, 2018

same here.

the errors I am seeing:

2018/05/01 15:04:42 [error] 2038#2038: *717 FastCGI sent in stderr: "PHP message: PHP Warning: strpos() expects parameter 1 to be string, object given in /srv/www/example/releases/20180501132036/web/wp/wp-includes/shortcodes.php on line 179
PHP message: PHP Warning: preg_match_all() expects parameter 2 to be string, object given in /srv/www/example/releases/20180501132036/web/wp/wp-includes/shortcodes.php on line 187
PHP message: PHP Warning: array_intersect(): Argument #2 is not an array in /srv/www/example/releases/20180501132036/web/wp/wp-includes/shortcodes.php on line 188
PHP message: PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in /srv/www/example/releases/20180501132036/web/app/plugins/facebook-for-woocommerce/includes/fbutils.php on line 141" while reading response header from upstream, client: 141.101.98.160, server: www.example.com, request: "POST /wp/wp-admin/post.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-wordpress.sock:", host: "www.example.com", referrer: "https://www.example.com/wp/wp-admin/post.php?post=8&action=edit"

@sammul
Copy link
Contributor

sammul commented May 1, 2018

@seatexboards @iljamm
Please try https://github.com/facebookincubator/facebook-for-woocommerce/releases/tag/v1.8.5 for now until we have fix for new version

@andrhex
Copy link

andrhex commented May 2, 2018

yes this old version fix the problem for now, thank you very much.

@mengyingdu
Copy link
Contributor

Hi @leinadnat @andrhex @iljamm @seatexboards @barbeapapier ,

Apologize for the inconvenience. We have fix for the PHP error now and I will update the new version ASAP.

Thanks!

@mengyingdu
Copy link
Contributor

Hi @leinadnat @andrhex @iljamm @seatexboards @barbeapapier ,

v1.8.7 is alive now and fix this issue.

Thanks!

@seatexboards
Copy link

seatexboards commented May 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants