4
votes
Accepted
Cannot upload EPS to file directory
A coworker had this same problem earlier this week and added 'application/octet-stream' to the mime types to solve this.
3
votes
Accepted
Multi Environment config/config.php - Staging not working
The correct array key for the database user is username not user
$config['database'] = array (
'expressionengine' =>
array (
'hostname' => 'localhost',
'...
3
votes
Accepted
Use config variables in templates?
If by config variables, you mean the ones on config.php, it's pretty easy to do.
On your config.php add the following code:
global $assign_to_config;
if(!isset($assign_to_config['global_vars']))
$...
2
votes
Accepted
Expresso Store: payment gateway settings in filesystem
This is not currently possible with Store - the way Omnipay is integrated with its abstracted settings methods it only looks in the database. A good feature request for Vector though! (Likewise for ...
2
votes
Accepted
What's the correct syntax for setting up memcached caching driver in EE 2.8+ with socket?
I'm glad you asked!
$config['cache_driver'] = 'memcached';
$config['memcached'] = array(
array(
'host' => '/var/tmp/memcached.sock',
'port' => 0,
'weight' => 1,
)
);
Adding ...
2
votes
How to use a remote database inside docker containers
Figured it out.
FROM php:fpm-alpine
Doesn't include the mysql mods. I had to add this line to my dockerfile for php container:
RUN docker-php-ext-install mysqli pdo pdo_mysql
1
vote
How do I set X-Frame-Options in config.php
EE has set default x_frame_options as SAMEORIGIN. You can change that from config but they don't allow you to set anything outside of there radar. You have limited options that is: 'DENY', 'SAMEORIGIN'...
1
vote
Use config variables in templates?
I tend to use index.php for this.
On about line 72 you can add Custom Config Variables as an associative array.
$assign_to_config['global_vars'] = array('pv_country_id' => 3);
You can now use ...
1
vote
Accepted
In ExpressionEngine 3, what is the format of the config file to be able to use the Config Service?
It works just like the main user/config/config.php file.
So in user/addons/my_addon/config/config.php:
<?php
$config = array(
'foo' => 'bar',
'baz' => 'foo'
);
?>
...
1
vote
How to proceed after upgrade error ee2 to 3?
EE2 and EE3 have their config files in different directories. Did you do these two things?
Copy system/expressionengine/config/config.php to system/user/config/config.php
Copy system/expressionengine/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
config × 100config-overrides × 15
database × 10
focus-lab-master-config × 9
multi-site-manager × 6
ee2 × 5
templates × 5
control-panel × 5
add-on-development × 4
login × 4
htaccess × 4
wygwam × 3
file-uploads × 3
ee3 × 3
email × 3
url × 3
ee1 × 3
404 × 3
bootstrap × 3
system × 3
configuration-variables × 3
members × 2
add-on × 2
pagination × 2
ee2-upgrades × 2