Hot answers tagged

4

Turns out, this has nothing to do with Store at all. Found my answer on StackOverflow: Since PHP 5.3.9 there's a new configuration setting called "max_input_vars" which limits the number of input variables. The default setting is 1000. Also check if Suhosin is installed, because there's also a similar setting.


4

If you add parse="inward" to your channel entries tag parameters, it will force module tags inside your parameters to be parsed before the channel entries tag.


4

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->return_data = '<p>Sorry, there are no sailings on Christmas Day.</p>'; return; } Incidentally, it isn't necessary to set the $return_data class ...


4

So here's what I've found out: EE uses an INT database field to store a UNIX timestamp Because of this, EE can display dates back to about 1901 Switching the database field from INT to BIGINT fixes the problem, but can dramatically increase the size of that database table I discovered the INT vs BIGINT fix through a web search and tested it with success. I ...


4

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.) More info on EE actions here. Essentially, you need to develop a module to perform your desired action, then call the associated ACT URL (e.g. http://example....


4

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 3am 00 03 * * * wget http://example.com/index.php?ACT=XX&task_id=1 Or if you want something really quick and simple: Create a special template with some ...


4

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> {exp:member:custom_profile_data member_id="<? echo ee()->input->post('uid', TRUE); ?>"} <p>{email}</p> {/exp:member:...


4

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 said "Everything is healing nicely!"


4

Replace the continue with return statement.


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 the latest 2, 3, and 4 versions of EE. 2) Clone the git repository at https://github.com/ExpressionEngine/ExpressionEngine/. There is a master-v3 and master-v4 ...


4

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, and possibly the basic framework for a module I believe for EE to try and load any libraries from your addon. You may need to install said module as well for it ...


3

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 which will return list of $item['some_key']|$item['some_key']|$item['some_key']|$item['some_key'] In this case you will do only one request of channel:entry. ...


3

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($full_folder_list) == ":any:")) you should be fine :)


3

Can you define what you mean by "a modern CMS"? Any database driven system will face similar problems when using Git source control. This isn't specifically an ExpressionEngine problem. The only systems that wouldn't suffer this difficulty are those using flat file architecture. I often use Git with ExpressionEngine. The only possible sticking point being, ...


3

$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 plugins is pulled to be displayed in the control panel. You can find the full details here: ExpressionEngine Plugin API: $plugin_info array e.g.: $plugin_info ...


3

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: Hello from {site_url}! <?php $stdclassvar = new stdClass; echo gettype($stdclassvar); // this outputs "object" $arrayvar = array(); echo gettype($...


3

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


3

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-optimization You could Google "expressionengine hosting" and contact numerous of the hosting providers to see what they would recommend and supply, then either ...


2

Template Routes Control your URLs by remapping URI routes to a specific template, using CodeIgniter-style routing rules. $config['template_routes'] = array( 'blog/:category' => 'site/blog-category', 'blog/:year/:pagination' => 'site/blog-yearly-archive', 'blog/:any' => 'site/blog-single', );


2

Yeah, that's one of your options. It's almost pointless testing code that way though, it would be very brittle. However, to get Mockery to access the global EE object, you simply need to set it up in your class's constructor: public function __construct($ee = null) { $this->EE = $ee ?: get_instance(); } That way, in your unit tests, you can inject ...


2

Your problem is here: $vars[0]["title"] = $item["title"]; Since that's inside a foreach loop, your resulting data is always limited to a single row (row "0"). Try this, starting at the appropriate matching spot: if($query->num_rows() == 0) { return $this->EE->TMPL->no_results(); } else { $vars = array(); $i = 0; foreach( $...


2

Do you have Process form data in Secure Mode? set to "Yes" in your Security and Session Preferences? That could be your issue. If you do, then EE will give a "The action you have requested is invalid." error message instead of using your template, and you'll never be able to get your POST data. I tried your code and it works as long as Process form data in ...


2

I was able to drill through the ee code and find a place where I can overwrite the headers. If you need to do the same... open this file: ee_system_folder/codeigniter/system/core/Output.php Look for this function: function _display($output = ''){ Look for this code: // Does the controller contain a function named _output()? // If so send the output ...


2

Low Alphabet is great and you will get excactly wat you want


2

Low Alphabet was created for this exact purpose.


2

It's probably caused by having PHP on Output, rather than Input, but you can avoid using PHP altogether. The way Low Events is set up, and the way Low Seg2Cat works, will allow you to set both parameters regardless of their format: {exp:low_events:entries date="{segment_2}" category="{segment_2_category_id}"} ... {/exp:low_events:entries} If segment 2 ...


2

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 you uninstalled Calendar and want to reinstall it, make sure to delete everything from the old Calendar install before you do, this includes the old Calendar ...


2

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. If you aren't trying to use regular expressions, you should probably just use the explode method.


2

{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.html


2

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 anybody w/o his own profit. And it is his piracy protection.


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