cloudflare / Cloudflare-Magento

A Cloudflare plugin for Magento2.
https://www.cloudflare.com/integrations/magento/
BSD 3-Clause "New" or "Revised" License
50 stars 17 forks source link

Upgraded Magento to 2.3.5 #86

Open Flipmediaco opened 4 years ago

Flipmediaco commented 4 years ago

Clearing Magento cache results in the following error:-

Exception #0 (Zend_Uri_Exception): "Zend_Uri_Http" not found
<pre>#1 Zend_Http_Client->setUri() called at [vendor/cloudflare/cloudflare-magento/Backend/MagentoHttpClient.php:49]

I suspect due to change of Zend library name?

sodhancha commented 4 years ago

@Flipmediaco did you manage to fix this issue ?

Flipmediaco commented 4 years ago

@sodhancha This issue is actually nothing to do with Cloudflare module if I recall correctly... This problem is caused by a conflict in PHP configuration, regarding include_path and open_basedir... The problem is that the default value of the PHP config value include_path is outside the configured open_basedir meaning all includes apart from those within the current working directory fails. You may have had issues with saving addresses at checkout or forgot password failing due to email validator not being found. Solutions... add PHP default include_path to open_basedir (ideal and secure), or delete open_basedir (not as secure)... You can also set the include_path with the Zend library location, but this block Magento from adding to include_path and will create other odd behaviours. Hope this helps