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.
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', '...
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'])) $...
user avatar
  • 6,108
3 votes

Why Is It Necessary to tell Expression where it is the file system and why more than once?

You are probably not going to get the answer you are looking for and I have no idea why EllisLab chose to do what they did when building EE as I am not part of their team. Having said that I recommend ...
user avatar
  • 7,556
3 votes

Enable Memcached in EE 2.9.2: problems

Sorry for the trouble. This is an issue in EE 2.9 and will be fixed in the next release. For now, you can get around it by specifying the cache driver in your config.php: $config['cache_driver'] = '...
user avatar
2 votes
Accepted

Inconsistent URL paths

Turns out this was due to Transcribe, we needed to use {exp:transcribe:uri path="/"} paths!
user avatar
  • 693
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 ...
user avatar
  • 17.4k
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
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'...
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' ); ?> ...
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/...
user avatar
1 vote
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 ...
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 ...
user avatar
1 vote
Accepted

running 2 sites on 1 installation

So the answer to this was actually simpler than I thought. In index.php of the secondary site we set $base_path = $_SERVER['DOCUMENT_ROOT']; and then $assign_to_config['tmpl_file_basepath'] = $...
user avatar
  • 2,473
1 vote

Config.php file permission changed to 666 but installation won't run

OK that makes sense. But how can I determine which user/group is running (in this case) Apache? Web root path is /var/www/ I'm somewhat comfortable on the command line, but for sure not a sysadmin. ...
user avatar
1 vote
Accepted

Switching default database engine to InnoDB

Short version, No you can't alter this setting via a config file. Long version, you see in your snippet in the OP it is defined as a const constant on the Class, conversly the items you change via ...
user avatar
  • 2,418
1 vote

Configure to allow EE site to be accessed from more than one domain?

Isn't that hard to make a bilingual website. On your config.php, set some variables on a domain basis. For example: $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? ...
user avatar
  • 6,108
1 vote

Configure to allow EE site to be accessed from more than one domain?

What are you trying to accomplish? We typically allow multiple domains to point to the same site, but then use .htaccess to redirect them to a single, canonical domain. This would prevent your issue, ...
user avatar
  • 418
1 vote

Configure to allow EE site to be accessed from more than one domain?

It sounds like you need to take a look at the Multiple Site Manager add-on from EllisLab.
user avatar
1 vote

upgraded WYGWAM 3.3.3 - config icons not right

I had the same problem after updating Wygwam from 3.2.2 to 3.3.3 on EE 2.7.3. I found that it's a browser cache issue. After clearing out the cache, the icons were back.
user avatar
  • 21
1 vote

ExpressionEngine Email Configuration

I was able to find the answer to my problem. I found that my server email was the issue. So I set up an account with Sendgrid and it immediately fixed my problem. I found others complaining of the ...
user avatar
1 vote
Accepted

How can you control the pagination URL?

There is nothing built into the EE core that would allow you to do this. You have a few options though. The easiest would be to use something like Better Pagination which will allow you to setup ...
user avatar
  • 7,556
1 vote

site's system not coming up correctly

As I said in my comments: I was still able to click on Admin> General Configuration link which showed a very basic form, when I entered the correct path, I was once again told that I had to set the ...
user avatar
  • 177
1 vote

How to make Assets ignore html files

There was a change in Assets 2.2.3, "config settings no longer require slashes in the array values". If you want Asset to ignore PHP, HTML and JavaScript files, you can try this: $config['...
user avatar

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