For some reason, this perfectly works on my local development server but when I deploy it to google I get the following error:
PHP Fatal error: Class 'PHPOnCouch\couchClient' not found in /base/data/home/apps/../2.105209891175321430/library/testerson.php on line 10
Does anyone know why I wouldnt be getting conflicting errors on local vs deployment?
Here is my folder structure:
project folder
- app.yaml
- library/
- vendor/
- index.php
/library/testerson.php
<?php
namespace testerson;
use PHPOnCouch\couchClient as couchClient;
class Testerson {
public function __construct()
{
$this->CLOUDANT_URL = "https://user:[email protected]";
$this->global_client = new couchClient($this->CLOUDANT_URL, 'global');
}
}
?>
/index.php
<?php
require_once("vendor/autoload.php");
require_once("library/testerson.php");
use testerson\Testerson;
$account = new Testerson();
?>
As a wild guess, have you copied someone's
app.yaml
that includestest*
in theskip_files
clause?