Hot answers tagged

4 votes
Accepted

Conditionally returning result from a plugin

After setting the return data, you need to return program control to the Template class, which ends execution of the current method. if ($date[2] == 25 && $date[1] == 12) { $this->...
user avatar
  • 2,255
4 votes

Run plugin without affecting loading time (external)

You can make a module - like Steve advice. Use Yeoman ExpressionEngine Add-On generator to simplify developing process. On server you will need to setup cron with wget: execute cronjob every day at ...
user avatar
  • 5,781
4 votes
Accepted

Run plugin without affecting loading time (external)

You can do this by developing your add-on as a module rather than a plugin since only modules can use EE actions. (See the EE docs for an explanation of the difference between the types of add-on.) ...
user avatar
4 votes
Accepted

$_POST to EE template not working as expected

Do you have PHP Parsing Stage on "Input"? <form method='POST' action='gen_req'> <input id='input' name='uid' placeholder='uid' /> <button class='btn'>Go</button> </form&...
user avatar
  • 131
4 votes
Accepted

Simple PHP Substring not Working in Template

Why aren't you just using https://devot-ee.com/add-ons/character-limiter ?? Also, if PHP is set on output, what happens when {event_summary} has a value like this? And the event was great, he ...
user avatar
  • 5,900
4 votes
Accepted

PHP 7 Error with ChannelImages: Fatal error: 'continue' not in the 'loop' or 'switch' context in…

Replace the continue with return statement.
user avatar
  • 626
4 votes
Accepted

How to download Expression Engine version 3 and 4?

There are at least two ways to get copies of EE 3 and 4. 1) Log in to https://expressionengine.com. If you have any EE purchases from this site before, you can go to your Purchases page and download ...
user avatar
  • 5,900
4 votes
Accepted

Creating Custom Libraries In ExpressionEngine

Have you created all the necessary files for your add-on? I'm not sure EE will look for your library file in an empty add-on folder. You need to make sure you have an addon.setup.php file at least, ...
user avatar
  • 5,900
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

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

PHP parsing stage

Do this right way - do not follow the dark side. Put all your php code into plugin. Your code is not good even from optimization way - not good solution to loop the channel entry. Just make function ...
user avatar
  • 5,781
3 votes

Assets 2.3.2 Lib file - Causes PHP error

Ugh, wasn't logged in properly.... They sent me this on email support: If you could just replace line 814 in Assets_lib.php file with if (!(count($full_folder_list) == 1 && reset($...
user avatar
  • 163
3 votes
Accepted

ExpressionEngine on PHP7

Concerning a statement from EllisLab, they posted a blog-entry on 13th April, 2016 telling that EE2 and EE3 are PHP 7-compatible: https://ellislab.com/blog/entry/time-to-upgrade-php
user avatar
  • 136
3 votes

Deployment server feautures

Suggest you contact the hosting provider recommended by EllisLab: https://ellislab.com/community/hosting Also read this whitepaper supplied by them: https://www.nexcess.net/expressionengine/hosting-...
user avatar
  • 5,353
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
Accepted

Use unique id for each entry

{count} probably belongs to the outer {exp:channel:entries} loop. You want either {row_id}, {row_count}, or {row_index}, which Matrix provides. https://docs.pixelandtonic.com/matrix/templating/field....
user avatar
  • 418
2 votes

How do I add a content-type header to my template?

You can use the HTTP Header plugin for this: {exp:http_header content_type="application/json"}
user avatar
  • 4,002
2 votes
Accepted

rawurlencode not rendering correctly in anchor tag?

It looks like you need to enable PHP in your template. Alternatively, you could use a plugin for the URL encoding. For example URL Encode or CE String. It's generally considered not the best ...
user avatar
  • 7,941
2 votes

ExpressionEngine piracy?

I don't think that this is EE message - EllisLab just don't control they lic this way (at least no yet). Possible developer made some custom solution (add-on) which he don't want to share with ...
user avatar
  • 5,781
2 votes
Accepted

Solspace and Structure conflict?

You must use the channels and custom field groups provided by Calendar when it's installed. To create events in "Calendar: Events", you need to create a calendar in "Calendar: Calendars" first. If ...
user avatar
  • 6,139
2 votes

How do I force a jpeg image to download instead of open in a browser window?

If using HTML5, you just need to add the download attribute
user avatar
  • 225
2 votes
Accepted

How to trigger P&T Assets to Update Indexes from a template

I got an email back from Andris at P&T with the following: Hey Rowan. Indexing generally refers to a bunch of files - seems to me that you'd be doing that one file at a time. You should ...
user avatar
2 votes

ExpressionEngine on PHP7

I just gave it a shot and it looked like the install worked fine, but the control panel loaded up with a bunch of errors. It looked like they could likely have been suppressed by turning off E_NOTICE ...
user avatar
2 votes

ExpressionEngine on PHP7

Been running EE3 (3.3.3) with php7, and it runs smooth as a baby's butt. There are a whole lot of problems with add-ons tho I've realised. Solstice TAG throws a nasty error making it impossible to ...
user avatar
2 votes
Accepted

Low Variables causes php 7 warnings in ee 3.1

No, there is no roadmap for making LV—or any other Low add-on—compatible with PHP7.
user avatar
  • 11.3k
2 votes
Accepted

Really need help - Trouble with EE3, Addons, and server settings - ERRORS

Ok, I don't know what was happening, or why the casing was "off", but the issue was due to the following lines inside of EE's View.php service file: /** * Get the full server path to the view file ...
user avatar
  • 1,610
2 votes
Accepted

Ee 3 and Php 7 and mamp

Looking it up I found this solution that worked for me: sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock I thought I'd post this in case anyone else runs into this error.
user avatar
  • 166
2 votes

Post-Ugrade Problem with 3.3.1

I just ran into this same issue and after a good few hours of debugging, I found the issue was because the member didn't have an entry in the exp_member_data table. Just add a new row to the ...
user avatar
2 votes

What fetch_template() really means?

fetch_template is very important function in ExpressionEngine. When you browse your EE url in the frontend i.e., http://example.com/about-us, it displays the HTML you saved for that template group. ...
user avatar
2 votes
Accepted

Is it possible to use an extension in a template like a plugin?

You cannot use ext to call in template as plugin. You must have to create mod.easypost_extention.php file for that. Use this code inside that file. <?php if ( ! defined('BASEPATH')) exit('No ...
user avatar

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