Hot answers tagged

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.
Michael McGhee's user avatar
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', '...
Jeremy Gimbel's user avatar
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'])) $...
Sobral's user avatar
  • 6,108
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 ...
Derek Hogue's user avatar
  • 17.4k
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 ...
Gary Reckard's user avatar
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
Tyler's user avatar
  • 21
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'...
Mufi - Amici Infotech's user avatar
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 ...
John Moylan's user avatar
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' ); ?> ...
Derek Hogue's user avatar
  • 17.4k
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/...
Michael McGhee's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible