owncloud error "App directory not found!" - owncloud

I'm currently using on cloud to create a cloud, and I keep getting these errors.
App directory "/home/bluesvisor/www/oc3/apps" not found! Please put the ownCloud apps folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file.
And this is 'config.php'.
'datadirectory' => '/home/bluevisor/www/oc201/data',
'overwrite.cli.url' => 'http://test3.mydomain.kr',
'dbtype' => 'mysql',
'version' => '10.5.0.10',
'dbname' => 'ocdb201',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'root',
'dbpassword' => 'password',
'logtimezone' => 'UTC',
'apps_paths' =>
array (
0 =>
array (
'path' => '/home/bluevisor/www/oc201/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/home/bluevisor/www/oc201/apps-external',
'url' => '/apps-external',
'writable' => true,
),
),
The error "not found" appears, but the directory is well located in that path. I searched, but there weren't many articles about the error.I'd appreciate your advice.

Related

Magento 2.3 settings in Admin are grayed out

I want to disable Magento Review module and modify the etc/config.php
'Magento_Review' => 0,
the review module did disable, but now a lot of the settings in admin interface are grayed out
How to restore changes and put it back to be able to edit settings in admin?
Any help is appreciated.
I found that it's a configuration issue in either config.php or env.php
For myself, I found that I had a configuration issue in my env.php whereby I had 2 areas referencing different databases:
'db' => [
'connection' => [
'indexer' => [
'host' => 'mysql',
'dbname' => 'my_db_2',
'username' => 'user',
'password' => 'pass',
'active' => '1',
'persistent' => NULL,
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;'
],
'default' => [
'host' => 'mysql',
'dbname' => 'my_db_1',
'username' => 'user',
'password' => 'pass',
'active' => '1',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;'
]
],
'table_prefix' => ''
],
Had my_db_1 in 1 and my_db_2 in the other. Upon matching these I ran:
php bin/magento app:config:import && \
php bin/magento setup:upgrade && \
php bin/magento cache:flush
And the configuration was no longer greyed out / disabled / unchangeable.

How can I create custom file upload field in opportunities

I'm working with sugar 8.3. I'm trying to create custom field for upload documents.
I have create vardef file, but when I click on save record, file uploaded properly but not display in record.
custom/Extension/modules/Opportunities/Ext/Vardefs/custom_upload.php
<?php
$GLOBALS['dictionary']['Opportunity']['fields']['filename'] = array (
'name' => 'filename',
'vname' => 'LBL_FILENAME',
'type' => 'file',
'dbType' => 'varchar',
'len' => '255',
'reportable' => true,
'comment' => 'File name associated with the note (attachment)',
'importable' => false,
'source' => 'non-db',
'docUrl' => 'doc_url',
);
$GLOBALS['dictionary']['Opportunity']['fields']['file_mime_type'] = array(
'name' => 'file_mime_type',
'vname' => 'LBL_FILE_MIME_TYPE',
'type' => 'varchar',
'len' => '100',
'comment' => 'Attachment MIME type',
'importable' => false,
'source' => 'non-db',
);
$GLOBALS['dictionary']['Opportunity']['fields']['file_url'] = array (
'name'=>'file_url',
'vname' => 'LBL_FILE_URL',
'type'=>'varchar',
'source'=>'non-db',
'reportable'=>false,
'comment' => 'Path to file (can be URL)',
'importable' => false,
);
Before save attachment screenshot
After save attachment screenshot
The whole scenario is not very clear from the code you have provided, i think that you should remove 'source'=>'non-db', attribute from these fields so that they get saved in database.
Don't forget to perform Repair and execute queries that gets generated in result of repair so that Sugar create appropriate fields in opportunities table for saving you uploaded file data.

TYPO3 8 dbal mapping with other server

I've a problem.
I just installed a new TYPO3 8 with adodb and dbal extensions.
Now I have an other server with a MySQLi Server and some custom tables in one database.
I want to show and edit the data from that other MySQLi Server Database Table named account in my TYPO3. For that, I have created my own extension with an model named tx_base_domain_model_account with as example 2 fields.
After that I created a dbal mapping with the following configuration:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal'] = array(
'handlerCfg' => array(
'_DEFAULT' => array(
'type' => 'native',
'config' => array(
'driver' => 'mysqli'
)
),
'_otherServer' => array(
'type' => 'native',
'config' => array(
'username' => 'username',
'password' => 'password',
'host' => '192.168.177.XX',
'database' => 'account',
)
),
),
'table2handlerKeys' => array(
'account' => '_otherServer'
),
'debugOptions' => array(
'enabled' => true,
'printErrors' => true,
'EXPLAIN' => 1,
'parseQuery' => 1,
'joinTables' => 1
),
'mapping' => array(
'tx_base_domain_model_account' => array(
'mapTableName' => 'account',
'mapFieldNames' => array (
'uid' => 'id',
'pid' => 119,
'login' => 'login',
'password' => 'password',
'cruser_id' => 1
)
)
)
);
But I can't see, edit or whatever the data from that other server database table.
Can you help me?
Thank you
With the switch to doctrine-dbal in core v8, the core extensions 'dbal' and 'adodb' have been obsoleted. See https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Database/Configuration/Index.html for configuration details on how to map tables to a different dbms using doctrine-dbal.

SQLSTATE[HY000] [1045] Access denied for user - OVH Eloquent

For a project I use Slim 3 - Twig and Eloquent. On development mode, all works perfectly, but on production, hosted in the OVH shared server, I can't access to the database.
I'm hundred percent sure of credentials and the database was not created right now.
This is my code :
$capsule = new \Illuminate\Database\Capsule\Manager;
$capsule->addConnection($config['db']);
$capsule->bootEloquent();
$capsule->setAsGlobal();
Where $config['db'] contains the informations required by Eloquent :
$config = [
'settings' => [
'debug' => true,
'displayErrorDetails' => true
],
'db' => [
'driver' => 'mysql',
'host' => '****.mysql.db',
'database' => '****',
'username' => '****',
'password' => '****',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => ''
]
]
What I have to do to make it work ?
Ok ... I get the solution.
... Suspense ...
I have to remove spaces around the big arrows in my beautiful formatted array.
Yes. I'm gonna cry.

Unknown Item type error in socialengine even registered in manifest.php file of module

I am getting strange error. please help
I am creating custom module named "Advinvite"
I have created table : "engine4_advinvite_matchinvites"
I have created DbTable : "Advinvite_Model_DbTable_Matchinvites"
I have created DbTable's Row class model : "Advinvite_Model_Matchinvite" And Primary key in the table is "matchinvite_id"
I have also created Api: "Advinvite_Api_Core"
The main part I have also registered the item in manifest.php file of settings folder of module like :
// Items ---------------------------------------------------------------------
'items' => array(
'advinvite_matchinvite',
)
Now regarding Error :
I am getting error "Unknown Item Type : advinvite_matchinvite" when i want to use
Engine:Api:_()->getItem('advinvite_matchinvite',its_Identity)
I am sending the manifest file code too below. please can you check it for me and help me. It has been come in my life first time (weird error) and i am trying to solve this for last three/four days. Even Everything i did correctly why it is happening Not understanding. Please help me mate. It will be very appreciated.
And also if you can help me with this too means Routes are also not working....Don't know why these both errors are coming
Help Me Please.
Manifest.php Code:
<?php return array (
'package' =>
array (
'type' => 'module',
'name' => 'advinvite',
'version' => '4.0.0',
'path' => 'application/modules/Advinvite',
'title' => 'Advanced Invites',
'description' => 'This will invite the users for matches and nets',
'author' => 'Gitesh Dang',
'callback' =>
array (
'class' => 'Engine_Package_Installer_Module',
),
'actions' =>
array (
0 => 'install',
1 => 'upgrade',
2 => 'refresh',
3 => 'enable',
4 => 'disable',
),
'directories' =>
array (
0 => 'application/modules/Advinvite',
),
'files' =>
array (
0 => 'application/languages/en/advinvite.csv',
),
// Items ---------------------------------------------------------------------
'items' => array(
'advinvite_matchinvite',
),
// Routes --------------------------------------------------------------------
'routes' => array(
'advinvite_general' => array(
'route' => 'invites/:action/*',
'defaults' => array(
'module' => 'advinvite',
'controller' => 'index',
'action' => '(match|matchview)',
),
'reqs' => array(
'action' => '\D+',
)
),
)
),
); ?>
Waiting for postive response.
Kind regards
Mates,
It has been fixed.
The issue was minor :)
Items was registered in package array and it should be registered outside of package array. Package array should be closed to files array only.
Corrected Manifest File :
<?php return array (
'package' =>
array (
'type' => 'module',
'name' => 'advinvite',
'version' => '4.0.0',
'path' => 'application/modules/Advinvite',
'title' => 'Advanced Invites',
'description' => 'This will invite the users for matches and nets',
'author' => 'Gitesh Dang',
'callback' =>
array (
'class' => 'Engine_Package_Installer_Module',
),
'actions' =>
array (
0 => 'install',
1 => 'upgrade',
2 => 'refresh',
3 => 'enable',
4 => 'disable',
),
'directories' =>
array (
0 => 'application/modules/Advinvite',
),
'files' =>
array (
0 => 'application/languages/en/advinvite.csv',
),
),
// Items ---------------------------------------------------------------------
'items' => array(
'advinvite_matchinvite',
),
// Routes --------------------------------------------------------------------
'routes' => array(
'advinvite_general' => array(
'route' => 'invites/:action/*',
'defaults' => array(
'module' => 'advinvite',
'controller' => 'index',
'action' => '(match|matchview)',
),
'reqs' => array(
'action' => '\D+',
)
),
)
); ?>
Cheers !! :)