i am doing in wordpress 5.3 the pulgin for woocommerce is showing this msgs
Warning: require_once(/home/sitename/public_html/1): failed to open
stream: Success in
/home/sitename/public_html/wp-content/plugins/learnpress-woo-payment/incs/load.php
on line 80Fatal error: require_once(): Failed opening required ‘1’
(include_path=’.:/opt/alt/php72/usr/share/pear’) in
/home/sitename/public_html/wp-content/plugins/learnpress-woo-payment/incs/load.php
on line 80
above occurs on live server whereas same plugin and everything works very well in localhost
i m working on https:// secure url
please help
2
Answers
I got the solution
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { $_SERVER['HTTPS'] = 'on'; }
Here the link
Add the following to your wp-config.php file (in your root directory):
This is a long shot, but it should at least give us a different error. It sounds like you migrated from localhost to a production server, but either some configurations are now incorrect, or some files were copied over incorrectly.
The error message tells us that your learnpress-woo-payment plugin is trying to load a file called “1”, and other details of the error indicate that the plugin was not given an exact path. I assume that “1” is actually a boolean, so the plugin is somehow ending up with a TRUE in place of a file path… so, we take a look at the code for the plugin:
…this doesn’t quite match what I expected to see (line 80 is the comment), but it does seem like: if the first require_once fails in a way that returns SUCCESS (it does due to an irregular bug with PHP) then $checkout becomes TRUE… which apparently exists, so we attempt to include it again! Not great code…