Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

6 votes
Accepted

Can't login to CP – form has expired

Big thanks to Joel Bradbury for solving this one. I needed to add $config['disable_csrf_protection'] = 'y'; to my config. Here's why: It'll be because the tokens have been generated on a ...
user avatar
  • 251
4 votes

ExpressionEngine 2.8.1 always gives 403 Forbidden error when using ajax

ExpressionEngine has a protection against Cross-site Request Forgery - CSRF and a documentation available here. You just have to add that line to your form: <input type="hidden" name="csrf_token" ...
user avatar
  • 41
4 votes
Accepted

Unresolved error with EE 2.10.1 and MimeType.php

I just encountered this, and found that I had to follow the instructions in this Dreamhost wiki entry to truly enable fileinfo functions. (The default "shared" fileinfo support didn't cut it.)
user avatar
  • 17.4k
3 votes

PHP errors in control panel; main site still working

$plugin_info is a required array for ExpressionEngine 2.x plugins. The PHP class providing the functionality for the plugin will work fine without it, but that is where the information for installed ...
user avatar
  • 2,255
3 votes

Error when using Grid field: You are not authorized to perform this action

This is a known bug in 2.9.0 and will probably soonish be fixed in an update See: https://support.ellislab.com/bugs/detail/20462/grid-fieldtype-brings-up-warning-when-rows-are-present-on-entry-submit ...
user avatar
  • 2,157
3 votes
Accepted

Error: This site is currently unavailable. And unable to login to CP

The "This site is currently unavailable" error suggests to me the IP addresses or usernames or something has been added to the "banned" list. This is how you check and fix this. --------->>>>>>>> ...
user avatar
  • 12.6k
3 votes
Accepted

Unable to load the requested class: cache

/system/codeigniter/system/libraries/Cache/Cache.php Has the Cache class - Check this file is on the staging server, also check the permissions. I've often had similar issues where it's related to ...
user avatar
  • 5,353
3 votes

ExpressionEngine 2.8.1 always gives 403 Forbidden error when using ajax

I wouldn't recommend this but in cases where you have no choice, e.g. you cannot tweak the code in an app in time or something to that effect, you can opt to conditionally disable secure forms in your ...
user avatar
  • 836
3 votes

Error Number: 1054, Expression Engine 2.7.3

It appears that one of the channel fields was at fault. To narrow it down, I removed field by field from the template After the error disappeared, I deleted the channel field and recreated it with ...
user avatar
  • 296
3 votes
Accepted

Unable to locate the specified class: Security.php

After a little research and a bit of asking around on forums, I found that GoDaddy shared servers were reading the contents of the Security.php file and treating it as malware. I've got in touch with ...
user avatar
3 votes
Accepted

Unserialize Error in drivers/cache

After speaking with Derek privately I was able to resolve the issue which is a permissions error. The steps taken to solve this are: Via FTP/SSH navigate to system/expressionengine/cache and delete ...
user avatar
3 votes

cannot update certain entries, error 1064

"Transfer Needs for Europe's Biggest Sides in Summer" isn't an entry_id and should not be in the where in clause. Wygwam is pulling those entry ids from EE's page ids. Check the page module and any ...
user avatar
3 votes
Accepted

Unable to upload PDF using File Upload

With that error when uploading a PDF the first thing to take a look at is Admin ‣ Security and Privacy ‣ Security and Sessions and see whether "Apply XSS Filtering to Uploaded Files" is set to "yes." ...
user avatar
  • 7,941
3 votes
Accepted

Fatal Error - Website down!

This is a PHP parse error. It's exactly what Derek Hogue said. On line 33 you are trying to use a stdClass as an array in some functionality on a template that has PHP parsing turned on. EE template: ...
user avatar
  • 5,900
3 votes

How Do You Kll EE's 40-Headed Error-Reporting Dagon?

Umm index.php /* * -------------------------------------------------------------------- * Error Reporting * -------------------------------------------------------------------- * * PHP and ...
user avatar
  • 1,987
3 votes

Disallowed Key Characters in CP - only one user

From this post over on EllisLabs : https://ellislab.com/forums/viewthread/81867/ What is happening when that message displays (as you will probably know) is that there is something that is setting ...
user avatar
  • 2,418
3 votes

Disallowed Key Characters in CP - only one user

Found some suggestions in the EllisLab Forums that might help. In the system/codeigniter/system/core/input.php file: Find the function _clean_input_keys($str) Change: exit(‘...
user avatar
  • 1,079
3 votes

Editing entry in backend: "The file cannot be found"

I recently encountered the same issue, and it was a tough nut to crack. From the error message, I assumed I was dealing with a missing file – presumably something uploaded via Assets. I first ...
user avatar
3 votes

EE3 'Error: The URL contains too many segments'

As I said on Slack: put a slash before the URL so it's not relative to the current page like so /performances/category/{category_url_title}
user avatar
3 votes
Accepted

EE4 & Gmaps Plugin

You need to change a little in code at line 230 in upd.gmaps of your plugin directory. 'constraint' => '255' to 'constraint' => '191' This need to change from 255 to 191 because there is ...
user avatar
2 votes

An Error Was Encountered Site Error: Unable to Load Site Preferences; No Preferences Found

The only time I've ever seen it is when the settings in database.php were incorrect or there was a problem connecting to the database. Confirm with your host that your DB is still accessible.
user avatar
  • 1,785
2 votes

expired form error when return from offline payment in cartthrob payment plugin

EE's "secure forms" feature requires that all POST requests contain a valid XID (or crsf_token in 2.8+). The POST back from your gateway contains no such token, hence the issue. So you either need to ...
user avatar
  • 17.4k
2 votes
Accepted

Upgrade to EE 2.8.1 with services_json error

I know this one was very obscure and thereby avoided by most readers, but in the event that anyone out there has the same experience, here is the solution. There were several add-ons that reference /...
user avatar
  • 1,068
2 votes
Accepted

Multiple Content-Elements with Assets-elements breaking on what seems to be a specific number of images

Open up ft.assets.php file (located at third_party/assets/ft.assets.php), find the method "replace_element_tag" and add this as the first line in that method: $this->EE->load->...
user avatar
2 votes

Problem installing EE on the server

I checked http://qatarphil.net and got a blank page, but with http://qatarphil.net/index.php I get the "Your config file does not appear to be formatted correctly." message. Which is positive. It ...
user avatar
2 votes
Accepted

Error 1096 - No Tables Used - CodeIgniter

Try changing this line: $query = ee()->db->get_where('exp_channel_titles', array('title' => $coupon_code, 'channel_id' => 8)); To this: ee()->db->where('exp_channel_titles', array(...
user avatar
2 votes

Unable to load the requested class: cache

For me it was my .gitignore file was set to ignore all 'cache/' folders which must be case sensitive. Changing to explicit paths fixed the issue once I redeployed.
user avatar
2 votes
Accepted

CartThrob {if error:your_field} conditional not working for item_options

I had a similar issue. Try adding quotes around the full tag so that you have: {if "{error:item_options[invoice_number]}"} Hopefully that should resolve it.
user avatar
  • 131
2 votes

A PHP Error was encountered Severity: 8192

If you are using the split method in you php code, you shouldn't. If you see on the documentation page, the split method is being deprecated. You should use one of the alternate functions listed there....
user avatar
2 votes

Password Reset Error: This form has expired. Please refresh and try again

You need to include a CSRF token as a hidden field. You can generate one easily enough with <input type="hidden" name="csrf_token" value="{csrf_token}"> Documentation here
user avatar
  • 7,176

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