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

Installation fails (Database can't be updated) #8

Open
m-vo opened this issue Nov 6, 2013 · 5 comments
Open

Installation fails (Database can't be updated) #8

m-vo opened this issue Nov 6, 2013 · 5 comments
Labels

Comments

@m-vo
Copy link

m-vo commented Nov 6, 2013

I tried to install the 0.3.0.5014-beta in contao 3.1.4 via the composer client (contao-legacy/cloud-api). The database update can not be executed (not via composer client nor the install tool), cause a call to a non-existing table is made before:

Fatal error: Uncaught exception Exception with message Query error: Table 'xxx.tl_cloud_api' doesn't exist (SELECT * FROM tl_cloud_api WHERE id=NULL LIMIT 0,1) thrown in ...\system\modules\core\library\Contao\Database\Statement.php on line 282
@dmolineus
Copy link
Owner

Thanks for reporting. At the moment I don't have any time working on this extension.

The extension is probably not compatible with Contao 3.1.x. There were several changes with the file system, so there it's unlikely that it will work.

There will be more changes for Contao 3.2 (uuid), so I won't support the 3.1.x branch.

@m-vo
Copy link
Author

m-vo commented Nov 6, 2013

Oh, ok, thanks for the response. Just for your information, in case you adapt the code. The problematic code was the following part (that should not be called before the database update):

$objApi = $this->Database->prepare('SELECT * FROM tl_cloud_api WHERE id=?')->limit(1)->execute(\Input::get('id'));

(situated in DataContainer\CloudApi.php in the methods choosePalette and chooseSubpalette)

@dmolineus
Copy link
Owner

Yeah, I use that to dynamically changes the used fields, depending on the installed api. Should not do it in the extension install mode ;-)

@rocchidavide
Copy link

I got the same error; is there a quick mode to fix it?

@dmolineus
Copy link
Owner

You could uncomment following line during updating the database:
https://github.com/netzmacht/cloud-dropbox/blob/master/config/config.php#L19

Netzmacht\Cloud\Api\CloudApiManager::registerApi('dropbox', 'Netzmacht\Cloud\Dropbox\DropboxApi', 

// change to
//Netzmacht\Cloud\Api\CloudApiManager::registerApi('dropbox', 'Netzmacht\Cloud\Dropbox\DropboxApi', 'Dropbox');

After the database is updated, u need to reactivate it:

@dmolineus dmolineus added the bug label May 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants