You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my test environment (Ubuntu 18.04) everything is fine but on our managed server at Domainfactory, which is using some custom Gentoo distribution, the cron crashes with the following error:
Uncaught Error: Call to a member function post() on bool in /app/code/community/Mageone/Qps/Model/Cron.php:53
The problem boils down to an apparently very picky handling in the case sensitivity of the Gentoo filesystem (I was too lazy to dig deeper into the exact issue within the autoloader).
In Gentoo, the following line in the constructor returns NULL: $this->client = Mage::getModel('qps/http_client_curl');
This is because the folder name is all uppercase. Two possible solutions:
Either rename the folder to Http (which is probably the better solution) or change the getModel to $this->client = Mage::getModel('qps/HTTP_client_curl');
The text was updated successfully, but these errors were encountered:
rolandjaeger
changed the title
All uppercase folder name "HTTP" leads to crash
All uppercase folder name "HTTP" leads to crash of cron
Dec 10, 2020
Hi @rolandjaeger thanks for telling us. Interesting, this shouldn't work. I'm running all tests on a case-sensitive file system 🤔 - nonetheless you are right, we'll fix it with renaming the directory.
In my test environment (Ubuntu 18.04) everything is fine but on our managed server at Domainfactory, which is using some custom Gentoo distribution, the cron crashes with the following error:
Uncaught Error: Call to a member function post() on bool in /app/code/community/Mageone/Qps/Model/Cron.php:53
The problem boils down to an apparently very picky handling in the case sensitivity of the Gentoo filesystem (I was too lazy to dig deeper into the exact issue within the autoloader).
In Gentoo, the following line in the constructor returns NULL:
$this->client = Mage::getModel('qps/http_client_curl');
This is because the folder name is all uppercase. Two possible solutions:
Either rename the folder to Http (which is probably the better solution) or change the getModel to
$this->client = Mage::getModel('qps/HTTP_client_curl');
The text was updated successfully, but these errors were encountered: