texts:
As default EE seems to limit the page number links in pagination to 2 either side of the current page.

I normally change this in /system/codeigniter/libaries/paginatation.php in the $num_links variable.

I have just updated to EE 2.6 and gone to do this as I noticed the numbered links were back to default, and found that this variable is set as 10, yet only 2 either side are being displayed.

Does anyone know how to get more links in 2.6?


texts: Can you add to the restricted tags filter for security in EE to secure the application further?

texts:
I have a client who got a security check done on their site (they are a security company) and they came back with this in relation to an expresso store checkout:

Checkout functionality

Although there was good input filtering in place on the checkout functionality, the team were able to inject html tags into the response. An attacker with sufficient time would likely to be able to construct a viable XSS payload. The following parameters were found to be vulnerable:

/shop/checkout [billing_address1 parameter]

/shop/checkout [billing_address2 parameter]

/shop/checkout [billing_city parameter]

/shop/checkout [billing_first_name parameter]

/shop/checkout [billing_last_name parameter]

/shop/checkout [billing_phone parameter]

/shop/checkout [billing_postcode parameter]

/shop/checkout [order_email parameter]

The team also observed that these values are stored in a database, meaning stored XSS attacks are feasibly possible, although the team could not identify a location where the values are subsequently output.

Basically, I can enter <script> into the field inputs, which comes back as [removed] in my form, which is great. But I was able to add the following into my input field for the billing name:

<object><APPLET><embed><form>

And it saved this into the database along with my name.

So my real question is: what are the security implications of this, and is there a 'dictionary of bad things' file somewhere I can add the above tags to in EE that when submitted, my form will come back with [removed] like it did with the script tag?


texts: Assets: Cannot upload file using "simple file input" method

texts:
I have an assets field called "member_thumbnail" on my "members" channel (created by zoo visitor). When I make a channel:form edit form or the equivalent edit form from zoo visitor, I am able to successfully upload files using the native full assets field ({exp:assets_field_name}) but not with the simple file input method outlined at the docs here:

http://docs.pixelandtonic.com/assets/templating/channel_form.html

I found a workaround here: Simple HTML file field uploads with Assets and Safecracker

The workaround is to add a hidden input with NULL value for the field name you want to affect. Unfortunately, when you submit the form without changing the photo this way, the photo is cleared, naturally. So this workaround causes too many problems.

I want to use the simple method to avoid showing visitors all the uploaded files in the directory they are uploading to. Otherwise I would be happy to use the full assets field.


texts: Expression Engine returns 404 on Javascript template

texts:
I have a bit of an issue with a project I recently took over using Expression Engine running v2.92 (I think). I'm pretty new to EE so maybe I'm missing something obvious.

The javascript template returns a 404 locally, but works fine on the production server. All the other templates (which are web pages) resolve fine. The database and files were downloaded directly from the production server and modified for my local system.

Things I've tried to no avail.

Toggled Strict URL's in Template preferences
Made sure the template path is correct for my local system
Set the base url in config to my local system url in config/config.php
Set the cachedir to my local path in config/database.php
Set the proper URL's in Admin -> General Configuration for root and themes
Made sure the javascript templates are set to type of JS
Checked the template routes, there doesn't appear to be anything here out of the ordinary.

This just doesn't make sense to me, I know it's reading the template files because if I edit one of the web page files directly the edit appears on the local site fine. It just acts like the javascript group doesn't exist at all. Am I missing something very basic here?

code linking the js template, this line lives in the footer of the templates that need this particular js file

<script src="/javascript/products"></script>


texts: How to add like functionality on channel entry

texts:
I need the like functionality on channel entry with counter.
Please advise.

Thanks


texts: Solspace Importer - Merge two fields in one

texts:
is it possible to merge two text fields from an XML-Feed into one text field in expressionengine in Solspace's Importer?

Regards


texts:
I got to work this morning and, after upgrading to Yosemite and MAMP Pro, I am getting a series of PHP Errors and cannot get access to to CP (returns blank page).
The frontend of the site itself is fetching data from the DB but the issue appears to be with the config file? I'm using FocusLabs Master Config too.

The first error is

A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 242

The warnings after that are "Cannot modify header information" warnings.

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/bjh/github/beacon/lighthouse/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 212

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/bjh/github/beacon/lighthouse/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 212

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/bjh/github/beacon/lighthouse/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 212

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/bjh/github/beacon/lighthouse/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 212

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/bjh/github/beacon/lighthouse/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 446

After pulling the working copy of our site from the dev server and copying the DB it appears as though this issue is only occurring locally. :-/


texts: CartThrob billing fields not sending to PayPal

texts:
I've got CartThrob using PayPal (Express) running, along with Profile:Edit. On the checkout page, the billing & shipping fields are getting pre-populated correctly using CT's customer_info tag.

However, when the checkout button is hit (which redirects you to PayPal for payment), the only fields that get pre-populated on the PayPal page are the first and last names. We definitely don't want the customer to have to fill that info out again.

Code can be seen here.

I'm sure I'm missing something simple. :/


texts: Exp-resso store Payment gateway iDEAL not working

texts:
I've sent an email to Exp-resso's support but didn't get an answer.
I'm trying to setup the iDAEL payment gateway. Got all the certificates in place.
On the final step where you choose you payment iDeal and your Payment Issuer. I'm getting an XML error on the Payment Issuer list.

I did al lot of checking and testing with no result. My question was and is: "on what version of iDAEL is the payment gateway based?"
The old version 2 or the new version 3 which was released in April 2012.
If based on version 2 then my question is when can we expect an update based on version 3.

When looking at merchant_ideal.php and the change log on iDEAL v3 then it must be based on version 2.

See: http://www.ideal.nl/download/iDEAL_Merchant_Integration_Guide_Summary_of_Changes_v3.3.1_ENG.pdf

If it's already based on version 3 then could someone help my fix this problem?

Running EE 2.5.5. Store 1.6.3 on a windows IIS 6 (<= Yes I know, it sucks but running)

Thanks,
Martijn


texts: Saving Multiple Relationships via checkboxes in a Channel Form

texts:
I have relationships field Foo where people can have more than one entry, basically a multiple relationships field.

I am not using {field:foo} to output my form field. Instead I am using multiple checkboxes to save the multiple relationships.

What is the proper way to do this?

Is there a native way to do this or do I have to resort to implementing a function in extensions to work them out?


texts: Migrate multiple custom fields to just one Fluid Field

texts:
Grown with the years, one of my projects consists of several Channels with several Field Groups and dozens of custom fields. Now with ExpressionEngine 4 and the new fluid field we want to consolidate most of the custom fields so we're not longer depending on so many custom fields … whats the easiest and safest way to migrate from «multiple custom fields to one fluid field»?

For example – right now we have Channel1, Channel2, Channel3 etc. each with field groups with custom fields like channel1-bodytext, channel2-bodytext, channel3-bodytext and of course many, many more.

How can I migrate/export/import those into just one text-field inside one fluid field used by all channels?


texts: Disable database-templates within ExpressionEngine 2

texts:
I'm working on EE2 theme and I can't find solution how to force EE use templates directly from the file system.

Generally I want to disable database templates while I'm working on theme, to get development quickly.

Is it possible?
Thanks


texts: Expresso Store: Can't add/edit product details - Fatal PHP error

texts:
I have v1.6.4 of Expresso Store running on a site with EE v2.6.1

When trying to edit the channel with the product details I get the following PHP error:

Fatal error: Cannot redeclare class Store_config in /SERVERPATH/system/expressionengine/third_party/store/libraries/store_config.php on line 12

I also get the same error when trying to publish a channel entry. Any ideas on how to fix this?


texts: Problem with using conditionals on nested Playa children tag

texts:
Any idea why this conditional is not working? If I remove 'if' the code renders desired result.

{exp:channel:entries channel="festivals" url_title="festival-2013" limit="1"}
        {exp:playa:children channel="films" var_prefix="films"}

        {if '{films:film_language}' != ""}
            {films:exp:playa:children channel="languages" var_prefix="filmlanguage" backspace="1"}
                {filmlanguage:title},
            {/films:exp:playa:children}
        {/if}

            {/exp:playa:children}
 {/exp:channel:entries}


texts: Caching methods discussed : search for the ‘holy grail’…

texts:
Good morning everyone,

no question with a direct answer here but looking for what you believe to be the best mix of real time vs caching. A few scenario’s that i would like to have your vision, just to see how different people approach problems from different sides and learn from each other.

PLAIN JANE SITE:
A basic website without login dynamic content items. Beside the homepage there are 4 or 5 separate templates. Editors will make a few changes a week but they do receive about 4000 visitors a day on the site.

BASIC E-COMMERCE:
A site with about 100 products online separated into a few item categories. Beside the homepage, product overview, product detail page there are about 6 to 8 other templates, not coating the ones needed for cart view and checkout process.

The product overview pages don’t show stock information and have no ability for sorting or filtering to decrease server load. In the header the client has an indictor to see if he’s logged in and how many items are in his cart. This information is dynamic for each visitor.

ADVANCED E-COMMERCE:
Same setup as the basic e-commerce system but with the added complexity of filtering on the product overview page. Filters generate addition urls. This means that 3 main product overview pages can easily create 1500 separate URL’s with combinations of all the filters.

Knowing ExpressionEngine and the native caching abilities, wanting to use a DRY approach while developing your templates and having the freedom to use add-on like stash and ce_cache. How would you approach these project in terms of template setup,  technology choices and caching?

I’ll make a post below describing my setup, choices, pro’s and con’s.

Greets,
Bas van Ginkel


texts: How to order titles with non-english characters?

texts:
I display a list of entries using

orderby="title"
sort="asc"

But titles starting with the Swedish character "Å" and "Ä" is sorted before "A" - and it should be last in the list. Like this:

... X Y Z Å Ä Ö

Is there a way (hack?) to solve this?

Regards, Magnus


texts: I am trying to set up my paypal account for express checkout. It's asking me for the Third Party Permission username. What do I type in for that?


texts: Database error 1118 - Row size too large

texts:
The error occurs when I try to add a new custom field of any kind. The install contains 210 custom fields but will not accept any more. Any advice to troubleshoot would be great. Further details below:

EE 2.7.2
Fieldtype addons: Matrix, Playa, Wygam

Database error:

A Database Error Occurred
Error Number: 1118
Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
UPDATE exp_channel_data SET field_ft_233 = 'none'
Filename: libraries/api/Api_channel_fields.php
Line Number: 1454

PHP error:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_fmt_options
Filename: fieldtypes/EE_Fieldtype.php
Line Number: 572

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_fmt_options
Filename: fieldtypes/EE_Fieldtype.php
Line Number: 572

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_fmt_options
Filename: fieldtypes/EE_Fieldtype.php
Line Number: 572

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_fmt_options
Filename: fieldtypes/EE_Fieldtype.php
Line Number: 572

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_fmt_options
Filename: fieldtypes/EE_Fieldtype.php
Line Number: 572

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_fmt_options
Filename: fieldtypes/EE_Fieldtype.php
Line Number: 572

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324


texts: Conditional errors after upgrading to EE 2.9 (just a helpful hand)

texts:
The upgrade we did last night from 2.8.1. to 2.9 seemed OK. However we only tested the back-end so far!

While running the front-end we're getting these errors messages on all pages…

  Error

  You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.

  Lexer State: if: is a reserved prefix.

Of course we're focussed on finding incorrect conditional errors and couldn't find any! Checked 50+ templates. Close to giving up we found the issues caused by a missing } in a script in our HTML footer…..


texts:
I'm allowing members to upload images. Is there a way to tell EE that the uploaded files should be assigned a randomized filename? I need this feature for privacy reasons and to prevent collisions.

I'm using Safecracker and Matrix, if that matters.


texts: Any concerns running ExpressionEngine on an IIS server?

texts:
I want to setup EE on an IIS server what should I be aware of before proceeding?

Never having developed a site running on a server using IIS I am hesitant. Based on initial searches I see that I can run Expression Engine 3 on an IIS server, and there seem to be some "gotchas" to have be aware of in the past. Considering the age of the articles I have found are no more recent than 2014 I wanted to pose this question again given updates to PHP etc...

EDIT:

[Resolved] If anyone has any experience with upgrading PHP on IIS after deployment I would be interested to hear how that process went.
Any tips or suggestions regarding config file setup

Thanks everyone


texts:
The site in question has had its domain changed and files moved to a new spot on the server. The site loads, but all Assets image fields in entries have not retained their images. However, image thumbnails do appear in the Assets file manager.

EE2.7.2, Assets 2.2.2, Matrix 2.5.10


texts: 2x Playa single select in Safecracker form loaded via AJAX

texts:
I'm having trouble displaying two Playa single select fields in a SafeCracker form that is dynamically loaded via Ajax with jQuery.
I have tried everything suggested in P&T's Get Satisfaction support area, but nothing's working.

Here is my case:

I have a channel named Orders and a channel named Traders. When I make a new order, I want to assign a Buying trader and Selling trader via a Playa field.

I have a site/index template that is loading orders/_orders template via ajax.

In the order/_orders template is a exp:channel:entries loop wit all my Orders. There is also a SafeCracker form around 3 checkboxes in each order.

Every order has an Edit button, that, when clicked, loads a SafeCracker form for that particular Order via Ajax. The template is: orders/_order-editForm/{entry_id}

The edit Order form containing the SafeCracker form holds two Playa single select fields which are embedded like this (one for Buyers and one for Sellers):

<select class="chzn-select" name="buyer_trader[selections][]" style="width:200px;">
{embed='orders/_order-buyer-dropdown' entry_id="{buyer_trader}{entry_id}{/buyer_trader}"}
</select>

and

<select class="chzn-select" name="seller_trader[selections][]" style="width:200px;">
{embed='orders/_order-seller-dropdown' entry_id="{seller_trader}{entry_id}{/seller_trader}"}
</select>

As you can see I'm embedding the entry_id of the selected buyer and seller to set the corresponding buyer and seller as 'selected' in the select field inside the embedded template.

Inside the orders/_order-buyer-dropdown and orders/_order-seller-dropdown templates, I have the exp:channel:entries loop like this:

{exp:channel:entries channel="traders" dynamic="no" disable="categories|member_data|pagination"}
<option value="{entry_id}" {if "{entry_id}" == "{embed:entry_id}"}selected{/if}>
  {trader-name}
</option>
{/exp:channel:entries}

The issue is dat the selected Traders are not showing the right trader.
The orders Are showing the correct trader. On submitting the forms everything IS working. And the correct Traders Are being submitted.
The only issue (that I have been tackling for the past 3 days) is that when I want to edit an order, the select boxes are not showing the correct traders as 'selected'.

The only way I do get it to work is when I use {field:buyer_trader} / {field:seller_trader}, except I shows me the Playa styled version of the select box, and I don't want that.

What am I doing wrong?


texts:
I'm trying to find a way to have EE automatically save a webpage as an image.

Basically when an single entry page is rendered I would also like EE to create an image of the finished page and attach it to the entry for access by a link or download. would be great to have domainame.com/images/made/{url_title}.jpg

thanks
mike


texts: Zoo Visitor: Display Member Fields After Registration, Before Logging In?

texts:
When a new user registers for the site using Zoo Visitor, is it possible to grab any information from that profile and display it to the user before they complete the rest of the registration process (clicking link in confirmation email, logging in, etc.)?

For example, our registration template looks something like this:

{if last_segment == "success"}

Thank You!

   p>In a moment, you'll receive an email from us with a link to activate your new account.

{/if}

Is there a way to change "Thank You" to "Thank You, {username}!"?

Zoo Visitor's {exp:zoo_visitor:details} has parameters for selecting the user via different segments, etc., but, not sure how those might be used in this situation.


texts: Database errors when deleting channel fields and second site with Multisite Manager

texts:
I'm using ExpressionEngine 2.5.2.

I recently added a second site using Multisite Manager on my local environment, staging environment, and production environment. The installation is complete and I have my second templates working correctly. I am only working on my local set up, but as soon as I have this up and running without errors, I will be moving all of my changes over to my staging site, then production site. Locally, when I try to add new channels field groups to my second site within my ExpressionEngine control pannel, my newly created channel field groups are automatically showing the channel fields from my primary site. I cannot delete the old channel fields, because I am receiving the following database error(s):

  Error Number: 1091

  Can't DROP 'field_id_176'; check that column/key exists

  ALTER TABLE exp_channel_data DROP field_id_176

  Filename: libraries/api/Api_channel_fields.php

  Line Number: 434

This error is different depending on the channel field I try to delete. It will vary by listing a different database entry that it cannot drop (i.e . 'field_id_176,' 'field_id_178,' etc.)

If I manually delete those fields in my database, it removes them from my second site, but it also removes them from my primary site. Obviously this is a problem because I am racking up too many fields which is very confusing.

I also cannot delete the second site, because it gives me the same database errors. When I try to hook up a third site, it does not recognize the folder with my templates in it and the Template Manager page shows up with no templates  or template groups (the folders exist locally and all of my paths to the appropriate directories are correct).

I do not have this problem on my staging or production server, but I cannot get much work done locally and I'm in a time crunch!! Help would be greatly appreciated.


texts: Increase ExpressionEngine 3 Member Email Character Limit

texts:
Does anyone know how to edit/set/override the email character limit in ExpressionEngine 3?

Is it possible to set it anywhere in the CP or do I have to change it in the v3 system code?


texts:
I have a listing of staff member that I want to have a link that pops up a bio via fancybox. I have no problem getting this to work using static id's, but when I try to do it dynamically via a custom field it doesn't seem to work.

Here is what I am doing:

bio

{staff:staffName} test content

If I take out the custom field (staff:staffName) and just leave "Bio" for the id of the popup and in the the href of the Fancybox parameters it works. Also, If I look at the outputted code it populates correctly. The staff name is filled in for the href and the id.

Any ideas?


texts:
I want to save segment_3 for use on another page for each user, I think the following should work:

{exp:stash:set name="selected_category_url" scope="user" save="yes"}
   {exp:streeng slug="yes" lower="yes"}
     {segment_3_category_name}
   {/exp:streeng}x
{/exp:stash:set}

On next page:

{exp:stash:get name="selected_category_url" scope="user" save="yes"}

But this isn't working, I've tried various mixes of 'scope' 'user' in both tags, but no luck, what am I doing wrong?


texts:
I'm trying to figure out how (if possible) to relate members to each other. I have teachers registering with Zoo Visitor and are added as Teacher Member Group. They need to be able to then assign Assistants to their account so that they are tied into each other.

So Teacher John would have Assistant Bob and Assistant Jane.
Teacher Elvis would have Assistant Bob and Assistant Mary and Assistant Trevor.

Any thoughts on how this would be possible, if at all in EE?


texts: Updating Cartthrob Order Status on Entry Item Id Level

texts:
I'm working on a site where the client needs to approve each order on the order_id level. They also need to be able to approve order items on the specific entry_id level as well. So if one item is not available for purchase, they can change the status of that item and still approve the order itself. For example, based on the image I've attached, the user would like to be able to look at this order and set a status for entry_id 24 to Approved and then set the status to Denied for entry_id 23.

Is there a way to do this in the backend of Cartthrob via the control panel using statuses?

Thank you for your time.


texts: Select dropdown after low search form selected for custom channel field

texts:
<select name="store:price">
    <option value="0">PRICE</option>
    <option value="|10"{if low_search_store:price == "|10"} selected{/if}>up to $10</option>
    <option value="10|25"{if low_search_store:price == "10|25"} selected{/if}>$10 to $25</option>
    <option value="25|50"{if low_search_store:price == "25|50"} selected{/if}>$25 to $50</option>
    <option value="50|100"{if low_search_store:price == "50|100"} selected{/if}>$50 to $100</option>
    <option value="100|"{if low_search_store:price == "100|"} selected{/if}>$100 and up</option>
</select>

This works great, when the search form is submitted, it returns the results with the price select selected based on the query in segement 3.

I also want to be able to search based on color, that value is stored in the products channel custom field: cf_product_color and not as a store modifier.

<select name="search:cf_product_color">
    <option value="">COLOR</option>
    <option value="red" {if search:cf_product_color=="red"} selected{/if}>Red</option>
    <option value="orange" {if search:cf_product_color=="orange"} selected{/if}>Orange</option>
</select>

This does not work, when I select a color (I know the color exists in that custom field: cf_product_color for entries) and it does not select the color from the select color drop down after submitting like it does for the price select drop-down.

This leads me to think I need to create a collection since I have a price, color select dropdowns making it 2 pieces of data I am searching for. Is this the case?


texts:
When attempting to replace an existing file on an S3 source, the upload fails. Here's the sequence of events:

Upload file sample_image.jpg for the first time (works fine)
Click 'Upload' and select sample_image.jpg again from the local filesystem
Click 'Replace Existing File' button in modal window when prompted by Assets
The Assets loading bar appears but remains empty forever and the new file is not uploaded.

In the console, this error displays:

  Uncaught SyntaxError: Unexpected token <

This issue does not happen when uploading to a local directory, only when uploading to an S3 directory.

EE 2.9.2
Assets 2.5


texts:
Can anyone tell me what I'm doing wrong here? Nothing displays at all. content_elements it the name of my content elements custom field

 {content_elements}

  {wygwam}
  {if "{element_name}" == "Content Left Side" OR "{element_name}" == "Content Right Side" }

         {value}

      {if:else}

            {value}

   {/if}
   {wygwam}

{/content_elements}


texts:
I've got a basic freeform form that posts to /forms/success/%%entry_id%%

In that /forms/success template, I have the following code:

        {exp:freeform:entries entry_id="{segment_3}" status=""}
        {if no_results}No results?{/if}

We have received the following data and will process it shortly.

            <fieldset class="bg-white">
                {freeform:all_form_fields}

                    {freeform:field_label}
                    {freeform:field_output}

                {/freeform:all_form_fields}
            </fieldset>
        {/exp:freeform:entries}

Every time I post a form, I get redirected to the success template fine (with an entry_id as segment 3) but get the no results block every time. Data is being collected fine. I've tried setting status="open|pending" (as all new submissions are pending). I've also tried with and without dynamic="no" but that makes no difference. I can't see what I'm doing wrong (it may be obvious!)

This is freeform 4.2.2 on EE 2.10.1.


texts:
I'm doing an upgrade of a site from 2.2.x to 2.5.5. I've moved all of the files up, and prepped for the upgrade but when I run the upgrade wizard it is literally stuck on this screen:
http://cl.ly/image/3r3L16453428

It will flash to say "Starting next step..." and then back to 2.3.0

Video is here:
http://www.screencast.com/t/R7KzkLAld

Anyone else ever see this issue?


texts: How do I update or edit an entry using the Channel Entries API save_entry function?

texts:
I've looked at the EE Channel Entries API docs, but the save_entry function does not seem to actually update an existing entry, but rather saves a new new entry over it.  This seems to be the case as any fields not specified in the $data array get wiped out and the entry_date is changed to the date the update was made.

Is there a way to simply edit/update an entry without the entry_date being changed, yet still triggering the edit notice in the EE system?  I am able to update single fields using the codeigniter db class, but doing it this way does not trigger EE's system to notice that the entry has been edited.

The main reason I want to do this is to use Postmaster's email trigger on entry edit, but doing a manual db update will not trigger this.  My plugin code for the channel entries API update is below:

ee()->load->library('api');
ee()->api->instantiate('channel_entries');

$data = array(
     'title' => $some_title,
     'url_title' => $some_url_title,
     'field_id_17' => $some_variable,
);

ee()->api_channel_entries->save_entry($data, 4, $entry_id, FALSE);

/*
 * The number 4 in the parameters is the channel_id number where the entry is stored.
 * I have also tried using NULL in place of 4 but it then throws an error saying
 * I'm missing an API parameter.
 */

I would also not mind it if I could just use the codeigniter db class to update the entries, then somehow tell the EE system that the entry has been updated.  Is this sort of thing possible?


texts:
We have a site that was migrated to a staging environment.

For all the custom fields as well as the title/url_title fields, any edits/updates are not being saved. However, a new entry is being saved with the initially added content (then it becomes no longer updateable).

Has anyone come across this? Oddly, it's working just fine in our local environment.

Thanks everyone in advance!


texts:
I have my users working on a staging server updating copy and I am still working locally deploying my changes to the style etc.

The problem I have is I have installed a module or some something locally which changes the database, if I do a full dump I will losse there data.

Is there a way to export all the data from the channels for importing into my local site.

Thanks


texts: Date field type - remove "Localised/Fixed"

texts: How do you remove the localised/fixed dropdown on the date fieldtype?


texts:
I'm trying to create a dropdown filter based off a custom field in channel entries.

{exp:channel:entries channel="events"}

  {!-- Build the complete listing --}
  {exp:stash:append name="listing"}

{title}

  {/exp:stash:append}

  {!-- Build the dropdown filter options. This is what I want to contain unique values --}
  {exp:stash:append name="locations"}
    <option>{event_location}</option>
  {/exp:stash:append}

{/exp:channel:entries}

<select>
  {exp:stash:get name="locations"}
</select>

  {exp:stash:get name="listing"}

This might output something like:

<select>
  <option>USA</option>
  <option>USA</option>
  <option>Australia</option>
  <option>Canada</option>
</select>

First US Event

Second US Event

Australian Event

Canadian Event

However, I want the values in the {exp:stash:get name="locations"} to only be output once.
ie. USA once, not twice.
Is this possible?

Edit:
Turns out it does what I wanted on its own in the code I posted.
However my actual code had a {count} variable thrown in for testing.

{exp:stash:append name="locations"}
  <option>{count} - {event_location}</option>
{/exp:stash:append}

The {count} made each row unique.


texts: LowSeg2Cat and Transcribe not working together

texts:
I am using EE3 with Transcribe module and LowSeg2Cat extension.

I have URL with transcribe prefix i.e., abc.com/en/group/page/category_url_title

When I tried to get Category URL Title I can use the code {segment_3} but if I want category ID I cannot use {segment_3_category_id} as it returns nothing.

If I use {segment_4_category_id} It returns category ID of segment 3 (As segment_1 [en] is not a segment as per transcribe)


texts: Channel images find entry with no set image

texts:
I'm making a site for a client which has about two thousand news entries that were imported from a WordPress installation, each entry is using a channel images field. However some entries are missing an image that needs to be uploaded. Is it possible to somehow write a query that would list titles or entry ids of entries that are currently missing an image? It's a pain to go through them all by hand.

Normally it's not a problem to just list entry titles where a certain field is empty but channel images uses a separate table


texts: How can I get the id of a file that appears in a channel entry?

texts:
I have a channel called Knowledge Item, and one of its fields is a file. I want to embed the ID of the file in a hidden field in my template. I was doing this and thought it was working;

<input type="hidden" id="knowledge_item_entry_id" value="{entry_id}" />

until I realised that {entry_id} refers to the entry id of the parent channel entry, not the file itself.

Is there a syntax to access properties like these from within a template please?


texts:
Is it possible to set the category id in a channel entries tag based on the last segment or by another method so that I don't have to create multiple templates?

I'm trying to get this template to fly.

{embed="_layouts/index"}

{exp:stash:append name="listings"}

Listings

                            Name
                            Location
                            Phone
                            Email

                        {exp:channel:entries channel="members" category="{category_id}" status="Open" limit="100" disable="category_fields|member_data|pagination|trackbacks" dynamic="no"}

                            {title}
                            {member_location}
                            {member_phone}
                            {member_email}

                        {/exp:channel:entries}

{/exp:stash:append}

{exp:stash:set name="content"}
    {exp:stash:get name="listings"}
{/exp:stash:set}


texts:
Is its possible to get entries in view page related to current entry:
{exp:channel:entries dynamic="no" search:custom field="{exp:channel:entries}{custom field}{/exp:channel:entries}"}
{title}
{/exp:channel:entries}

I have tried with preload replace and stash but its not working
How to use stash to Preload replace?
Please help..


texts: solspace rating, never displays "name", "screen_name", "fullname" tied with rating

texts:
The following NEVER displays a name, how can I get it to output a name? Here is what I have:

{exp:rating:entries
    limit="10"
    entry_id="{embed:the_entry_id}"}

    <h4>{if screen_name}
            {screen_name}
        {if:elseif fullname}
            {fullname}
        {if:elseif name}
            {name}
        {/if}</h4>
{/exp:rating:entries}

This is the form I am using, which does actually save the name in the ratings module within the backend.

{exp:rating:form
    entry_id="{embed:the_entry_id}"
    collection="Products"
    return="product/thanks"
    form:class="form validate"
    status="closed"
    anonymous="yes"
    allow_duplicates="no"}

    <input type="text" name="name" value="{name}" class="required" />
{/exp:rating:form}

I heard somewhere deleting the name field, then recreating it with the same name seemed to fix it, though I've not experienced that myself.


texts: Hide Shipping Carrier Depending on Location

texts:
Currently my store has two shipping carriers (UPS and the Default Shipping Plugin - called Speed-ee). For the default shipping plugin I only want to use it for four or five US states. For all others states, as well as Canada, I want to use UPS.

Is there a way to show the default shipping plugin option only when the billing address is from those four or five states and hide it if they are shipping to other areas?

I would think a conditional might work but I don't really know where to start. Any help would be appreciated.


texts:
I am using the fantastic Exp:resso Store. My client has an account with PayPal Pro. Their host hasn't got the option for SSL certs.

I'm just wondering if PayPal Pro can still be used on site? Or if I use the module can I divert it to the hosted version at PayPal?

Sorry for the simple question. Normally I would just try, but I have a meeting with the client and would like to know the answer before then.

Thanks


texts:
In the comment form, I can have a checkbox that allows me to tell EE to notify me of follow up comments

{exp:comment:form channel="news" preview="channel/preview"}
    ...
    <textarea name="comment" cols="70" rows="10">{comment}</textarea>
    ...
    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?

    ...
{/exp:comment:form}

I want the users to be able to toggle this feature since some of them want this feature disabled.

So I tried a solution. I unchecked the checkbox and submit with a blank comment textarea field.

However, when doing that I am shown an EE error that tells me that the comment field should not be blank.

My question is, how do I unsubscribe?


texts: email notification when someone fills out form and downloads content from my site

texts: I want to get an email notification sent to me from the site when someone fills out form and downloads content from my site.  How can I do that?


texts: Matrix Fields and Channel Entries API Update

texts:
My website has a custom module (created by someone else), that pulls in third-party data from an API and uses the Channel Entries API to add or update new entries in ExpressionEngine.

Recently, we have had to add some custom fields to the channel in question, to hold manually-entered info (that is in addition to the fields entered/updated by the API). Since the API will null out fields that aren't specifically passed to the update_entry function, I was able to adjust the module to retrieve info from those fields and include them in the update_entry array. BUT, some of the custom fields we have to add are Matrix fields and they are still being cleared out. I'm at a total loss on how to resolve this. The update_entry is clearing the '1' flag out of the Matrix field in channel_data -- the underlying matrix_data content remains intact (but without the '1', won't display).

Any suggestions on how to handle this would be appreciated -- I've been going around and around with this for days. Here is the code in question:

private function _update_event($entry, $event)
{
    $data = $this->_prepare_input($event, $entry);
    $this->EE->api_channel_fields->setup_entry_settings($this->channel_id, $data);

    $cd = $this->EE->db->get_where('channel_data', array('entry_id' => $entry['entry_id']));
               $res_arr = $cd->result_array();
                $new_entry_data = $res_arr[0];

                foreach($data as $data_field_name => $data_field_value) {
                    $new_entry_data[$data_field_name] = $data_field_value;

                }

    // if inserted successfully
    if($this->EE->api_channel_entries->update_entry($entry['entry_id'], $new_entry_data)) {

        if ($event->LocationPhone) {
            $this->_assignCategoryToEntry($entry, $event);
        }
        return true;
    }
    else {
        // there has been an error
        $errors = $this->EE->api_channel_entries->errors;
        //log error
        log_message('error', $this->_format_errors($errors));
        //$this->show_error($this->_format_errors($errors));
        return false;
    }
}


texts: Cartthrob not returning after transaction with SagePay

texts:
I am having an issue with sage. Transactions are going through and money is being taken no problem, but it isn't returning to the desired return= param.

I have tested with PayPal and all works fine. Has anyone else had an issue like this? Any solutions out there?

Cheers


texts: Can I edit an existing order in Expresso Store?

texts:
Is it possible to edit a person's order through the backend? For example, if I need to correct a person's name or address or want to change a product in their order.

Thanks


texts: Creating link from website to backside admin

texts:
For two particular (moderator) user groups, I have made a 'admin'-link that takes the user from pieces of content on the website, to the admin side - directly into the 'content->edit->entry' of that content. This to make it easier for moderators of a blog to edit certain pieces of content if necessary - without having to look for it again in the admin side.

The link I created looks something like this:
http://thewebsite.com/admin.php?/cp/content_publish/entry_form?channel_id=14&entry_id=1202

This works - but the only thing is, everytime when the link is clicked the user first needs to login again (username, password) before getting into the admin part (even if the admin part is still open in a different tap).
This is because in my link I miss a (presumably) salt part (which is there when I get to the edit screen using the normal admin login) - see the last part ==>
http://thewebsite.com/admin.php?/cp/content_publish/entry_form?channel_id=14&entry_id=1202&S=efdf1b4699b93656ab6cbace8816add5

how do I get / create this salt part (S=****), to be able to sent a user directly into the admin part of the side? (maybe after a one time login, but not for every time).
It is not the same as the salt column in exp_members.

Does anybody know what to do?

greets
Rick


texts: can't upload pdf's with wygwam and file manager

texts:
I am getting "The filetype you are attempting to upload is not allowed." error when uploading pdf's with the file manager via wygwam.

The upload directory is writeable, has all field types allowed and xss filtering is turned off. I can upload other file types just fine.

I can upload pdf's when I use the file manager by itself (not via publish layout). I can also upload pdf's using the same upload directory and the rte field type.

I am running ee 2.6.1 and wygwam 3.1.2.

Cheers


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

texts:
I have a gallery page that lists medium and high resolution images of plants that users can download. However, the default behavior of a jpeg image inside an href is to open in the browser window. For these specific links I would like users to be able to download the image when clicking on the link instead of having to open the image in the browser and then save it.

Here is the code I have:

{exp:char_limit total="30" exact="no"}{title}{/exp:char_limit}

    {if medium_res != ""}Medium
{/if}
    {if high_res != ""}Large{/if}

What is the best way to force a download?


texts: updating from 2.5.5 to 2.10.1, ERROR 1048 Column ‘field_id_14’ cannot be null

texts:
I’m trying to update from Expression Engine 2.5.5 to 2.10.1 and I get this error:

  A Database Error Occurred Error Number: 1048

  Column ‘field_id_14’ cannot be null

  UPDATE exp_channel_data SET field_id_14 = NULL

  Filename: D:\EE_directory\system\codeigniter\system\database\DB_driver.php

  Line Number: 382


texts: Categories not filtering with Low Seg2Cat

texts:
I am having some problem with the Low Seg2Cat extension. I am trying to load all entries for a particular category using the third URI segment. For instance: '/specials/category/europe'. This is the current basic markup:

{exp:channel:entries channel="specials" orderby="date" category_group="8" category=segment_3_category_id}

{entry_date format='%j%S %M %Y'}

{specials_excerpt}

{/exp:channel:entries}

However, all this outputs at the moment is any item that has been categorised. For instance, items categorised as 'Europe' or as 'USA'. Uncategorised items do not appear. Moreover, any value entered into segment 3 returns this same list.

I am currently using (and have just upgraded to) EE 2.9.2 before developing this page. Low Seg2Cat is in its latest version, 2.8.1.

Any help would be appreciated!


texts: Display List of Authors with Latest Post

texts:
I'm trying to display a list of authors in a sidebar along w/ their most recent post next to their name. So something like:

Alan Smith
"The Great Beyond"

Brady Crab
"In the Midst"

How can I accomplish something like this using Stash?


texts:
We have a Freeform field for uploading files to an EE directory.  However, it appears there’s no way in EE to allow for Guests to upload to a directory?  Under File Upload Preferences we can see each of the Member Groups we’ve created but there is simply no option present for Guests.

Am I missing something?  Is there any way to simply define an upload path manually for the field as opposed to being forced to select one of the directories created under File Upload Preferences?


texts: Linking EE Members with a Bulk Email/SMS Application

texts:
I would like to export/link member data to an Email/SMS app. When a member registers I would like it to automatically add the new member details to the app and also be able to update details through the API from the EE site.

I have an API guide from them which has all the Restful API & XML requests but need an idea of were I should go from here: http://live.everlytic.net/api/2.0/docs/classes/Contacts.html#CreateContact

Any idea where I should start? Useful tutorials or extensions to use.


texts: Error when try to add new field: col_settings_tmpl.php

texts:
I'm using EE 2.7.3 and I'm getting the following error when trying to create or edit a field: Unable to load the requested file: col_settings_tmpl.php .  It seems to be related  to the grid field type, disabling it as suggested elsewhere is not really an option as it's used throughout the site.

The site works correctly when I set it up locally, but I get the above error when I move it to the live server.

Thanks,


texts:
Im using the calendar tag on a page and an iframe below it to display an event page.
The iframe displays the latest event.
When you click on a day in the calendar it calls that days event into the iframe.

Here is the code to call up the day event:

{day_number}

Here is the existing iframe:

I have been trying to do away with the iframe and have the same functionality using just a div and ajax/jquery with no luck.

Any pointers? :-)


texts: Can I order entries by date with sticky entries from another channel combined?

texts:
I'm setting up a blog page and wanted to arrange it a specific way. Blog posts would be ordered in grid format by date. But scattered throughout would be larger blocks that could link through to other outlets

I have attached an example of what I'm trying to achieve below.

I would only be limited to 2 channels, one for the blog posts and another for the sticky entries (larger grid items).

Obviously as blogs are posted, they would update and move around according to date ordering but I'd want the larger grid items to remain

Has anyone managed to get soemthing like this working or can anybody offer any advice on this?

Many Thanks, much appreciated.


texts: Why Does Pagination Appear Outside HTML Tag Wrapper?

texts:
This has bugged me for a while and I'd really like to know what the heck is going on. Here's my template:

    {!-- Pre-Pagination Header Content --}

{exp:channel:entries
    channel='mychannel'
    limit='10'
    disable='member_data'
    paginate='both'
}
    {if count == 1}
        {paginate}
            {pagination_links}

                    {previous_page}

&laquo;

                    {/previous_page}

                        {page}

{if current_page == ''}{/if}{pagination_page_number}{if current_page == ''}{/if}

                        {/page}

                    {next_page}

&raquo;

                    {/next_page}

            {/pagination_links}
        {/paginate}

    {/if}

    {!-- Listing Item Content --}

    {if count == total_results}

            {paginate}
                {pagination_links}

                        {previous_page}

&laquo;

                        {/previous_page}

                            {page}

{if current_page == ''}{/if}{pagination_page_number}{if current_page == ''}{/if}

                            {/page}

                        {next_page}

&raquo;

                        {/next_page}

                {/pagination_links}
            {/paginate}

    {/if}
{/exp:channel:entries}

The pagination inside the header displays fine, but in the footer, the pagination
 displays after the  tag it's wrapped in.

Why? Why does ExpressionEngine do that? Does it have to do with the paginate parameter? Is there a way to fix it besides buying AB Pagination?


texts:
I've used Playa on a large number of sites and haven't seen this issue, so I'm wondering if anyone has ever seen this before.

I just installed Playa on an existing site running EE 2.5.3 and using Playa 4.4.3. I've set up a Playa field to show results from a single channel and to only show results from two of the categories that are assigned to that channel. If an entry in the related channel is tagged with both of the categories then it shows up twice on the left side of the Playa field.

So in this instance, the Playa field is pulling in results from a Sponsors and Exhibitors channel. This channel has two categories so an entry can be marked as either a Sponsor, an Exhibitor, or both. If an entry is marked with both the Sponsor and Exhibitor category, then it shows up twice in the Playa field. If I remove one of the categories, then it shows up only once in the Playa field.

Any ideas?


texts: {email] tag defaulting to EE admin email address for guest user

texts:
The {email} tag in my comments form is entering the EE admin email address for a guest user. Is this expected behaviour?

Is there a way to get it to default to an empty field?

All advice much appreciated.


texts: EE 3.x - Import from EE 2.x to EE 3.x all Snippets

texts:
I started with a fresh EE 3.3.0 installation on my localhost.  However, I would like to bring over ALL the Snippets that I am using on my Production website to my brand new localhost EE 3.3.0 site.  I exported all the Snippets from the one site, imported them into the EE 3.3.0 site but I do not see them anyplace within EE.

I thought I had seen a note that Snippets had been replaced, but Snippets are referenced in the 3.3.0 Manual and it doesn't appear to have been deprecated.

Are Snippets still being used ?

Where do I find them in EE 3.3.0 ?

If they are no longer being used, what has replaced them ?

How do I bring over the existing Snippets into this new object (Table Name) ?

Thanks!!!!


texts: Weird If statement behaviour inside channel:form

texts:
I'm building a page containing a channel form to allow users to edit their posts, and I thought I'd add an {if}...{/if} statement to prevent them editing other users' entries. The permissions on the channel are set correctly, but this was just to get around the error message on form submission. So I added this:

{exp:channel:form .... entry_id="{segment_3}"}
  {if author_id <> member_id}
    {redirect="home"}
  {/if}
{/exp:channel:form}

The issue then, was that the code redirected even when author_id = member_id. This seemed bizarre, so as a test, I changed the above code to read:

{exp:channel:form .... entry_id="{segment_3}"}
  {if author_id <> member_id}
    Not Equals
  {if:else}
    Equals
  {/if}
{/exp:channel:form}

and found that regardless of which entry I edit, the statement returned

  Not Equals

Upon a bit more playing around, I found that if I add an {author_id} tag above the {if}...{/if} statement, it worked properly. It seems that unless I echo the {author_id} before the comparison, {author_id} is... blank?

Can someone explain this?


texts: Freeform Pro Composer - retain field values on error

texts:
I have a form which was built using composer - there is about 12 fields in it and at the minute if completed without a required field or there is an error in the form the form is loaded again blank to complete.
What is the best way to retain those values or is it best with some sort of validation?

Form code below:

{exp:freeform:composer
    form_name="food_network"
    composer_template_name="food_network"
    return="/foodnetwork/join-us/join-us-thank-you"
    form:class="form-horizontal contact-form"
}

{composer:page}
    {composer:rows}

        {composer:columns}

                {if composer:field_total == 0}

                {/if}
            {composer:fields}
                {if composer:field_label}
                    {if composer:field_type == 'nonfield_captcha'}
                        {if captcha}

                            {composer:field_label}

                        {/if}
                    {if:else}

                            {composer:field_label}
                            {if composer:field_required}
                            *
                            {/if}

                    {/if}
                {/if}
                {if composer:field_output}
                    {if composer:field_type == 'nonfield_title'}

{composer:field_output}

                    {if:elseif composer:field_type == 'nonfield_captcha'}
                        {if captcha}
                                {captcha}

                                <input
                                    type="text"
                                    name="captcha"
                                    value=""
                                    size="20"
                                    maxlength="20"
                                    style="width:140px;" />
                        {/if}
                    {if:else}

{composer:field_output}

                    {/if}
                {/if}
            {/composer:fields}

        {/composer:columns}

    {/composer:rows}
{/composer:page}

{/exp:freeform:composer}


texts: Trying to redirect a page to HTTPS using .htaccess, getting "too many redirects" error

texts:
Ugh, seems like I'm having a lot of htaccess issues lately. Recently moved a client site to new hosting from the cient's internal server. Their IT had setup SSL and updated the .htaccess to redirect http://site.com/login to https://site.com/login. This .htaccess file causes a "too many redirects" error. I've done a lot of trial and error testing on this and the results are always the same. I even found Adding a .htaccess redirect to https that plays nicely with existing EE .htaccess rules and tried that exact working htaccess file and got the same results. Any ideas?

RewriteEngine On

# Remove trailing slashes
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]

# Redirect certain site pages to SSL and vice-versa
RewriteCond %{REQUEST_URI} !(login|themes|images|assets)
RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,NC,L]

RewriteCond %{REQUEST_URI} (login)
RewriteCond %{HTTPS} !=on
#RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NC,L]

# Remove index.php from URLs
RewriteCond $1 !(^index\.php|(\.(gif|jpe?g|png|css|js)))$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

I've commented out everything but this and still have the same issue...

RewriteCond %{REQUEST_URI} (login)
RewriteCond %{HTTPS} !=on
#RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NC,L]


texts:
Does anyone have jquery.validate working with Profile:Edit?

I have a form set up with jquery validation working using jquery.validate.js, everything working as expected.

As soon as I try to use the {exp:profile:register}{/exp:profile:register} tags the JS stops working.

I've stripped my form down to a single element to try and identify where I am going wrong. If I comment-out the exp:profile:register tags the JS works, but with the tags in-place Profile:edit registration works but no JS.

HTML:

{exp:profile:register id="register" return="account"}

Register

<legend>Login details</legend>
<form class="form-horizontal" id="signupForm" method="post" action="">
Email
<input id="email" name="email" type="email" class="required form-control">
<input class="btn btn-default" type="submit" value="Register" id="submit">
</form>
{/exp:profile:register}

JS:

$().ready(function() {
    // validate signup form on keyup and submit
    $("#signupForm").validate({
        rules: {
            email: {
                required: true,
                email: true
            },
        },
        errorPlacement: function(error, element) {
        // Append error within linked label
        $( element )
            .closest( "form" )
                .find( "label[for='" + element.attr( "id" ) + "']" )
                    .append( error );
        },
        errorElement: "span",
        messages: {
            email: "Please enter a valid email address"
        }
    });
});

Any help would be massively appreciated.

Cheers


texts: Are there any good add-ons for managing categories on the publish screen?

texts:
I have a channel that will require lots of editing (adding and selecting) of many categories and want to make this as simple a process as possible for the client. I also need to require that only one category can be selected at a time (unlike the multiple on the Categories tab).

Is there a decent fieldtype add-on that allows for managing categories, not just selecting them?


texts:
In my {exp:channel:form}, I'd like my users to create channel entries with the possibility of having identical titles (this is for a forum). Since EE"s {title} has to be unique, I created a forum_title field so that duplicate titles would be allowed in the forum.

However, now I need to set the title dynamically. I can use forum_title as part of the title, but I need something else to ensure it's unique. I was hoping I could add the entry id as a suffix, but this didn't work:

dynamic_title="[forum_title]-ENTRY_ID"

How can I ensure that my dynamic_titles are unique?

Also, is it possible to pass the value of a channel field to the return parameter? This didn't work for me:

return="/forums/ENTRY_ID/[forum_title]/"


texts: file_after_save Hook - Does it run when Synchronising a directory of files?

texts:
I am using this plugin here to compress images throughout my site: https://bitbucket.org/bulldogcreative/tinypng/src

Ideally I would like to synchronise a directory of existing images through that plugin. The plugin hooks on to file_after_save. So it compresses the images when a new image is uploaded, but it doesn't seem to run when EE synchronises and re-saves the file.

Any ideas if I am doing something wrong or if EE just doesn't trigger on that condition?


texts: Grid field not saving any data regardless of what I put in it

texts:
Fresh install of EE 3.4.4

Created a channel and channel fields. Grid field has two subfields: one text input and one text area. When I publish a channel entry in this channel, all the other fields save just fine but this Grid field clears out and goes back to no rows when I save the channel entry. No errors, no nothing. It just doesn't save anything.


texts: Adding low variables entries to search results

texts: How can I search Low Variables content using the Search tag, is it possible?


texts:
I'm working on a film site and need to log some custom information about a user's activity. On the site you can click a play button to start watching a film. (This link just takes you to Amazon Instant.) When a logged-in user clicks to start watching the film, I need to:

Set a "watching" flag in their account denoting that they started watching film_id at 2:57PM;
Next time they load a page on the site I need to check to see if they're "watching" any films;
If they are "watching" a film I need to display a modal that asks them to rate the film.

I know EE allows you to run queries as you see fit. Wondering if there is a recommended way to log and retrieve data that doesn't necessarily exist in the EE interface?


texts: No images in Assets file manager and no Update Indexes option

texts: Just got handed over ExpressionEngine from previous developer so we migrated it to our new server. There are no images in the frontend and backend admin panel. 777 permission were given to _assets, cache folders. No Update Indexes option in Addon->Modules->Assets. Assets running 1.1.3 and ExpressionEngine is on 2.3.1. When I try to upload a new image in the "empty" file manager, I get "Your upload directory isn’t writable". I suspect its temp folder and where do I set the permission for it? Thanks


texts: Cartthrob shipping rates per category group

texts:
Is it possible to have shipping rates for a product's category group?

In our example, we have gift cards of varying denominations. We'd like to charge $3 shipping for the first gift card, but not charge shipping for subsequent gift cards.

We can't use per-order shipping, because they will need separate per item rates for products such as shirts, event registration, etc.


texts: Assets error when uploading to new directory

texts:
We seem to be having an issue with P&T Assets 2.0.5 when uploading a file to a freshly created sub-folder. If I create a sub-folder and try uploading a file into it, I receive the following javascript error"

There was an error uploading your file: Assets could not complete the requested operation.

However, if we create a sub-folder, navigate to a different part of the control panel and then navigate back to Assets, we can upload to it successfully.

Any thoughts on why this would be happening?

Hope someone can help?

Thanks,
Gary


texts: Freeform Email Notification Variables Fail to Parse

texts:
Having trouble getting Freeform to parse variable names in email notification templates.  Some are working and some are not.  I've tried creating new fields, duplicating fields that are working, etc.  Any advice?

Looks like a very similar issue to those reported by Todd:

FreeForm Pro Notifications

Freeform Pro Hidden Fields and Notifications


texts: What are the recommended ways to get to the bottom of slow load times in EE?

texts:
I'm experiencing some really slow load times with my EE install. Other sections of the site that aren't managed by EE are loading very quickly, but any time I hit an EE-managed section it takes at least 6 seconds to load. After enabling debugging I'm seeing these results:

  Loading Time: Base Classes — 0.0023

  Controller Execution Time ( Ee / Index ) — 6.1133

  Total Execution Time — 6.1158

What might be the best way to track down the source of these slow loading times?


texts: How can I remove index.php from http://example.com/index.php/member/reset_password?&id=GHbFGYJM ? ExpressionEngine3

texts:
The link is sent to me in an email when I reset my password via front end login form and works as it should when I remove the index.php from the url. I have already created a rule in .htaccess to remove index.php from urls.

Here is my current .htaccess:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

     # Admin Access
    RewriteRule ^(admin)/?$ $1.php [L,NC]

    # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
    # RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>


texts: EE5: How to create or update entries in a custom made module

texts:
In EE2 I used the channel entries API to create and update entries. In EE5 I can't use it anymore. The only problem is that I can't find any EE5 API functions to create those entries. Are they gone?

How can I create/update entries in EE5 without using the the legacy channel entries API? I can't find it in de docs.


texts: SSL Subdomain Staging Site in Subfolder is Resolving Webroot Instead

texts:
I'm trying to set up a staging subdomain in a subfolder under the webroot of the main production site for testing and deploying changes for a EE e-commerce website.

I hope one or two of the more experienced EE Devs that contribute here can easily spot how I can make things work for this set up.

For the most part, things are working as they should except for testing transactions on the checkout pages, which are the only SSL templates on the website.

Directories:

public_html (http://www.domain.com or https://www.domain.com)
↳ staging (http://staging.domain.com or https://staging.domain.com)

When going to http://staging.domain.com the 2nd installation in the subfolder runs just fine.

When going to https://staging.domain.com the 1st installation is being rendered instead. The production site DOES NOT have a wildcard domain SSL setup... which looks to be the reason this is happening. This previous SE post has been insightful.

On other CMSs, I've easily solved this issue simply by adding the following to the webroot .htaccess file:

RewriteCond %{HTTP_HOST} ^staging\.
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ staging/$1 [L]

The subdomain commerce pages do not actually need to be properly secured to avoid certificate warnings, because it is locked off from public access and it is only used by myself and a staff member to test changes before they are pushed to production.

I don't have access to httpd.conf on this server, so over recent days I've tried numerous htaccess approaches. They all result in either 500 internal server errors, 404s or 403s.

Here are a few. All of these are being placed in the webroot to try and catch the subdomain SSL misdirection:

################# Redirect requests to subfolder EE index file = White Death
RewriteCond %{HTTP_HOST} ^staging\.
RewriteCond %{REQUEST_URI} !^/staging/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /staging/$1
RewriteCond %{HTTP_HOST} ^staging\.
# Direct requests to subfolder EE's index file
RewriteRule ^(.*)$ /staging/index.php/$1 [L]

################# Document Root rewrite = Displays webroot not subdomain
RewriteCond %{HTTP_HOST} ^staging\.
RewriteRule %{DOCUMENT_ROOT} /home/user/public_html/staging/$1

################# Document Root rewrite 2 = White Death
RewriteCond %{HTTP_HOST} ^staging\.
RewriteCond %{DOCUMENT_ROOT} /home/user/public_html
RewriteCond %{DOCUMENT_ROOT} !/home/user/public_html/staging
RewriteRule (.*)  /home/user/public_html/staging/$1 [PT] (Tried pretty much every flag I could think of here)

################# SSL 443 port subdomain redirect webroot to subfolder = 403 errors
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^staging\. [NC]
RewriteCond %{REQUEST_URI} !^/staging/
RewriteRule ^(.*) staging/$1

And This is the current webroot EE rewrite for removing index.php:

RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteCond %{REQUEST_URI} !/staging/.* [NC]
RewriteCond %{HTTP_HOST} !^staging\. [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

I've also played around a bit with the config file settings on the subdomain install, to see if altering the DOCUMENT ROOT helps if SSL is detected for traffic being redirected from the webroot. I'm not sure this is the solution, but perhaps it is and I'm not applying things correctly. Here is an example:

$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
if ($protocol == 'http://') {
  $base_path = $_SERVER['DOCUMENT_ROOT'];
} else {
  $base_path = $_SERVER['DOCUMENT_ROOT'] . '/staging';
}

So what I'm basically trying to do is set up the subdomain to test a few templates as SSL, without having a wildcard domain SSL in place.

Any ideas?

Thank you for any help.


texts:
I've inherited an old EE site.  I'm trying to get everything running on https.  I can get EE to serve up most images via https but it seems like when stash is used, it doesn't use https.  Is there a way to force it?
{exp:stash:get_list:nested name="home_slider"}

{/exp:stash:get_list:nested}


texts: Integrating Discovery Miles Into Website

texts: My website, written in EE2 is using expresso-store as the shopping cart. I am integrating PayU  payment gateway via the Enterprise API. Would it be possible to use Discovery Miles with this? How would I integrate Discovery Miles here or how would I go about doing this? The customer is allowed to pay with their discovery miles or credit card.


texts: setting stash snippet as author_id does not parse

texts:
I try to store member_id/author_id for session during visit of other users. Goal: show content of a certain user without showing the id in a URL.

My testing template has the author_id in segment_2.
I can get this segment_2 with stash, this outputs in the template allright.
Like this:

{exp:stash:set name="sn_author" scope="user" save="yes" type="snippet"}{segment_2}{/exp:stash:set}

{if sn_author == segment_2}success{/if}

But I cannot make this work inside a regular EE entrees tag.

The EE tag outputs correct when hardcoding the desired author_id.
But when I use stash get, it does not work.
I understand this is a parsing order.
I tried process="end" no luck.

My EE entrees tag

{exp:channel:entries channel="member_profiles" dynamic="off" author_id="{exp:stash:sn_author process="end"}"}{member_first_name} {member_last_name} {/exp:channel:entries}

I am rather new to stash, cannot get around this, and do hope for an answer here, thank you very much.


texts: Siblings with entry_id not in another relationship field

texts:
Can't figure this out.

I'm using EE2 and I have a channel called products and I'm on a single product page. I have a relationship field for products set up called featured_products, which I am displaying in a list. I can do that fine. They're basically related products.

I, then, want to have a see more button that displays another list of ALL other products (siblings), EXCEPT that list should exclude the ones that are already in featured_products.

I tried using siblings, to no avail:

{siblings
    entry_id="not {entry_id}
              {featured_products}
                 |{featured_products:entry_id}
              {/featured_products}"
}

and that didn't work because I guess "field" is the only siblings arg.

I tried using an embed and doing something like:

{embed="products/.more-products"
    notproducts="
    {entry_id}
    {featured_products}
        |{featured_products:entry_id}
    {/featured_products}"}

and then in that embed had something like

{exp:channel:entries channel="products" entry_id="not {embed:notproducts}"}
{/exp:channel:entries}

which for reasons I can't understand, only showed one product, the product whose page I was on.

Pretty sure I'm just approaching this wrong. HALP!


texts:
I've been trying to clear the caches prior to running this EE upgrade but when I do I'm getting this error:

A Database Error Occurred
Error Number: 1054

Unknown column 'rel_data' in 'field list'

UPDATE pfra_relationships SET rel_data = '', reverse_rel_data = ''

Filename: libraries/Functions.php

Line Number: 1205

« Back

I don't think this is going to help my overall upgrade path on this project but would be good to know what's going on.


texts: Thumbnails, channel_short_name and channel fields

texts:
I have a image "thumbnail" field in multiple channels, ie:
"news_thumbnail"
"projects_thumbnail"
"editorials_thumbnail"

With these images, I use EE's resizing feature to crop multiple sizes of the image.

I'm attempting to display the images using the following:

{{channel_short_code}_thumbnail}{path}_frontpage/{filename}.{extension}{/{channel_short_code_thumbnail}

This outputs to

{news_thumbnail}{path}_frontpage/{filename}.{extension}{/{news_thumbnail}

The {path} {filename} and {extension} variables aren't being processed properly.

However if I hardcode the channel field and use:

{news_thumbnail}{path}_frontpage/{filename}.{extension}{/{news_thumbnail}

{path},{filename} and {extension} are parsed to their proper values, and the image is displayed properly.

Any idea how to get this working properly?


texts: Building a set of list items using Stash. Not working as expected

texts:
A while back I built a simple image slider that used "featured" entries from an EE channel. This all works great but did mean that I had to run 2 {exp:entries} tag pairs - the first to get the big images, the second to get the thumbnails. The items were ordered by entry_id so it all worked great.

I now need to randomise the order of the items in the slider - not normally a problem since I can just add an order_by="random" parameter. The issue comes in that I'm using 2 tag pairs and need the order to be random but the same for both pairs.

I figured I could use a single entries tag pair, ordered randomly and use Stash to build a set of list items that I can use to output the image thumbnails but I'm having trouble getting it to output more than just one item.

Here's a slightly simplified code block showing the basic premise of what I'm trying to do. The only real difference is that I've removed the ce_image tags for outputting the images themselves.

{exp:channel:entries channel="properties" dynamic="off" search:property-featured="=y" orderby="random"}

    {if {count}==1}
{/if}
        {!-- first output the big image --}

        {!-- now I want to append a list item to a Stash variable for use a bit later --}
        {exp:stash:set append="yes" name="thumbs" parse_tags="yes" replace="no"}

        {/exp:stash:set}

    {if "{count}"=="{total_results}"}

            {!-- this is where Stash should output the list items --}
            {exp:stash:get name="thumbs"}

    {/if}
{/exp:channel:entries}

I haven't used Stash before so may be missing something obvious but I thought this was how Stash worked. Have I got the wrong end of the stick or am I simply overlooking something?


texts: Specifying currency on a per-product basis in CartThrob

texts:
I've got a site where each product will be sold in either Pounds or Euros (depending on the supplier of the product). How would I go about specifying the currency on a per-product basis in CartThrob?

I'm looking through the CartThrob settings but it seems geared up for specifying a single currency for the entire site.


texts:
I'm having some trouble getting a matrix field to output a date cell correctly.

I am running EE 2.5.2, Matrix 2.4.1.

When I put the following code into my template:

{legislator_labi_score limit="1" orderby="score_date" sort="desc"}
LABI Score: {score_number}%

(as of {scoreEditDate format="%m/%d/%Y"})

{/legislator_labi_score}

It outputs like this:

(as of {scoreEditDate format="%m/%d/%Y"})

If I just put the field with no formatting info at all it outputs like this:

(as of June 10,2012)

which isn't bad, but it isn't what I wanted. Can you tell me what the problem might be? I saw a post from Get Satisfaction that had this issue, but they upgraded to 2.4.1 and it fixed the issue. I'm running 2.4.1 and I'm still having the problem.

Thanks,

Brian


texts: Exp-resso Store - custom fields in control panel

texts:
Is it possible to add a custom order field to the Orders page in the control panel of Exp:resso Store? If it is possible, how is it done?

Edit: I need to include the customers company name not a custom field.


texts:
We had some weird situation last night where a EE site we manage fell over of it's own accord and is this morning reporting SQL errors:

Error Number: 1286

Unknown storage engine 'InnoDB'

Closer inspection reveals that all of the affected tables are set to use InnoDB whereas the unaffected tables are using MyISAM.

I'm not sure what best practice is but I'm guessing have different tables running on different engines is less than ideal and I'm not even sure how it happened but this is a fairly old site that's moved from host to host and started out on EE 1.x.

What are the repercussions of changing database engine for an ExpressionEngine table (if any) and why might this have happened in the first place (the table corruption)?


texts:
I have an odd one where it appears that 1 of my custom field groups has disappeared. I don;t when, there is no backup (even if there was I can't tell wether it disappeared yesterday or last year). It was a simple one Matrix field with multiple columns.

There is no mention of it in exp_field_groups in the DB AND the actual entry that was using this custom field is still displaying on the front end. It has reverted to using another field groups ID in the DB and CP. Editing the sole entry causes errors and all file uploads that where populated are no longer present in the backend but are on the front end.

As the actual field group is missing, I tried to recreate it, yet, because the fields I'm trying to re-create already exist in the matrix area of the DB, I get errors about field name in use, obviously.

I've stumbled around phpMyAdmin trying to backwards engineer a new field_group and alter some references to it in the Matrix DB columns to no luck as I just don't know what to change and where.

My question is if ALL matrix data is present in the database, how can I create a new field_group and assign this group to the existing entry and save the information ?

Anyone have anything ?


texts:
I can't seem to find the way to add new columns for Matrix fieldtype.

I am using Expression 2.5.5 and Matrix 2.5.1


texts:
What a shame Field editor since EE2.7 is buggy, and it's very difficult to contact the author, no e-mail, no Devot:ee forum support.

It's unusable because always appears this error message when I try using it:

This is a Matrix Celltype, it wouldn't take much to make it into a Fieldtype - but why would you with Matrix around?

This message appears for any fields (textarea, expresso......) even without Matrix around.

Does someone report the same error??


texts: ee253 and assets205 upload and thumbnail view

texts:
I have an assets custom field but I cant upload or view actual thumbnails in my S3 bucket. I update indexes but just see default jpg placeholder icons in the directory.
Any ideas what the issue could be? When I upload an image via my entry the progress bar completes suggesting a compete upload but the image never uploads. Tried jpg and png?
Thanks


texts: Redirect after forum log-in when site_url is protocol agnostic

texts:
I have stumbled across an issue with the forum module whereby if you have a site_url specified in config as protocol agnostic, i.e. minus http: or https: then the redirect after forum log-in always returns you to the site home page.

My site_url value is set as "//www.example.com"
My Forum URL is set as "/forums/"

When the redirect after log-in through the forum templates occurs I get sent to:

http://www.example.com/www.example.com/forums

Any thoughts? :/


texts:
I used to run a fairly basic Joomla website for a real estate company. Over the years it got way too large for Joomla so they decided to hire a developer to get their own CMS, where the database could be updated offline and the website synched with it. (I'm just a basic self-taught amateur web designer so this is over my head)
Long story short: they put that CMS, which used elements of ExpressionEngine, on my server but as it grew larger than 10GB I had to upgrade my own hosting package in order for it to keep up. The problem was that as soon as it was moved the database stopped working. The backend seemed fine and the owner of the business could still see all the properties, but on the homepage there was a message saying the licence was not valid for this domain. ("The local license key is invalid for this location. Manage your license.")
My suspicion is that this site was developed in not so legit ways as the developer threw a fit that I had moved the site, saying it is a nightmare to configure, etc. My hosting company never believed this and I am also inclined to mistrust said developer, who I think is hiding behind "it's complicated". The site was offline for 5 days and he's moved it to his own host now, so has full control.
My knowledge is too limited to be 100% sure about this. This is basically a PHP driven CMS with Ioncube on it. The developer said Ioncube is what was making it hard to migrate to a different server (within same host), but he never answered my question as to why it had Ioncube on it in the first place, and why it was still working fine in the backend.
Can anyone shed light on this? Would you agree this developer is probably a bit shady or am I being paranoid?


texts: Members - Can a member turn off email notifications for messages?

texts:
Can a member turn off email notifications for messages?

If so, is there a way to save this setting for each member in a Safecracker form?


texts: nginx how to remove index.php from URL for an MSM site?

texts:
I have an existing Expressionengine MSM site that I've moved to nginx on my local machine, consisting of 2 sites in subdirectories:

/en
    /system
    /index.php
    /admin.php
/de
    /index.php
    /admin.php
/themes

Sites are accessed through https://mydomain.test/en and https://mydomain.test/de

I can view pages using 'index.php' : https://mydomain.test/en/index.php?/pagename

But I can't seem to get the site working without 'index.php?', my nginx.conf is included below (https://www.nginx.com/resources/wiki/start/topics/recipes/expressionengine/)

user username staff;
worker_processes auto;

events {
    worker_connections  1024;
}

worker_rlimit_nofile 1024;

http {
    include mime.types;
    default_type  application/octet-stream;

    sendfile on;
    keepalive_timeout  65;
    client_max_body_size 128M;

    gzip  on;
    gzip_comp_level 5;
    gzip_min_length 256;
    gzip_proxied any;
    gzip_vary on;

    gzip_types
    application/atom+xml
    application/javascript
    application/json
    application/rss+xml
    application/vnd.ms-fontobject
    application/x-font-ttf
    application/x-web-app-manifest+json
    application/xhtml+xml
    application/xml
    font/opentype
    image/svg+xml
    image/x-icon
    text/css
    text/plain
    text/x-component;

    include /Users/username/.valet/Nginx/*;
    include servers/*;
    include valet/valet.conf;

    server {
        listen 80;
        server_name mydomain;
        root /Users/username/nginx/mydomain/;
        index index.php;

        access_log /usr/local/var/log/nginx/access.log;
        error_log  /usr/local/var/log/nginx/error.log info;

        location /en {
           try_files /en/$uri /en/$uri/ /en/index.php?$query_string;
           disable_symlinks off;
        }

        location /de {
           try_files /de/$uri /de/$uri/ /de/index.php?$query_string;
           disable_symlinks off;
        }

        location @ee {
            rewrite ^(.*) /index.php$1 last;
        }

        location ~ \.php$ {
            include fastcgi_params;
            fastcgi_pass unix:/tmp/php-fastcgi.socket;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME
            $document_root$fastcgi_script_name;
        }

        # This location is for our EE index.php gateway
        location /index.php {
            include /usr/local/etc/nginx/fastcgi_params;
            set $script     $uri;
            set $path_info  $uri;
            # this will set the path_info when it exists as query string: /index.php?/something/here
            if ($args ~* "^(/.+)$") {
                set $path_info  $1;
            }
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME
            $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $path_info;
        }
    }

}


texts:
Is there a difference between the config variables $config['compress_output'] and $config['gzip_output']?

I was getting some errors with a particular add-on while having $config['compress_output']= FALSE; set in config.php. Adding $config['gzip_output'] = "n"; to config.php made the error go away.


texts: Freeform Composer General Errors Not Showing on MSM

texts:
We have a website that is powered by MSM.

On the main website forms work fine and the form errors show.

On the sub-sites, the forms send but they don't show the general errors.

The code in question is:-

        {exp:freeform:composer form_name="{embed:form}" admin_notify="{embed:email}|info@redcarrot.co.uk" admin_notification_template="{embed:template}" inline_error_return="{embed:page}/#freeform" return="{embed:page}/thanks#freeform" inline_errors="yes"}
    {if freeform:general_errors}

There were some error(s) with your submission:

            {freeform:general_errors}

{if "{freeform:error_message}"=="captcha_required"}Please type the two words at the bottom of the form{if:else}{freeform:error_message}{/if}

            {/freeform:general_errors}

    {/if}


texts: Saving an entry gives a date format error for the entry date

texts:
Saving or updating an entry gives an error message "The date you submitted is not valid."
Its on a fresh install of EE 2.9.3 with Publisher 1.6.2 (where Publisher shouldn't be the problem I guess).
I had some extensions installed which most of them are uninstalled now (Event Helper, MX CP Notice, Limitee, single entry)

If I change the entry date "14/4/2015 09:05" to "14-4-2015 09:05" I can save the entry.

I also have not changed any of the config parameters.

I never had this before on EE 2.9.3.

Are there any ideas why this happens?


texts: Help with SQL to Export Channel entry status

texts:
I've built an accessory to allow my client to export channel entry data to a CSV.
All is working fine but they now want to add the entry status to the list of exported fields and I'm having trouble with the SQL. My select statement as it stands:

SELECT
field_id_49 as 'First Name',
field_id_50 as 'Last Name',
field_id_51 as 'Email',
field_id_56 as 'Date of Birth',
field_id_53 as 'Occupation',
field_id_52 as 'Gender',
field_id_57 as 'Address',
field_id_58 as 'Address 2',
field_id_59 as 'City',
field_id_60 as 'Postal Code',
field_id_54 as 'Contact Number',
field_id_55 as 'First Aid Qualification',
field_id_61 as 'Payment Choice'
FROM exp_channel_data
WHERE channel_id = 13

I know I need to get the status from exp.channel.titles but I'm not sure how to join it all together. I just need to return a status no matter what it is.

Can any point me in the right direction?

Cheers


texts: Cart being dropped when adding multiple packages

texts:
When I try to add multiple packages, any where from about 6-10, the cart will clear itself. I'm wondering if this has to do with the extra processing a package has to go through since the package information is saved as an array and then serialized?
Is it just overloading the server causing it to drop the cart?


texts: Is there a way to ignore the field formatting of a custom field?

texts:
I know you can change them globally from the Admin menu, but what I was hoping for was someway to temporarily ignore the field formatting selected and simply output the data in the field.

Why? I have a bunch of Smartdown fields (Markdown) that I want to actually show the pre-parsed MD -- without actually changing the formatting of the field.


texts: Populating Href With URL from Previous Page?

texts: I'm basically trying to create a button that will take the users back to a search results page of a directory.  Is there any way to populate href with the url of the previous page?


texts:
I am working on a site that has an employees channel with over 1000 entries. When a user visits the "all employees" page we are paginating the results and all is well, however when a user views the print template for this page the client would like the full list of employees to be shown. When this template is loaded the request times out.

I have optimised the template as best I can (simple conditionals, etc) and tried upping the PHP execution time, but still no luck. I think the biggest killer to rendering is that we need to access a matrix and a playa field for each employee. If anyone has any advice on ways to get this page to load that would be greatly appreciated.

EDIT: Updated with code sample

{exp:channel:entries
    site="default_site"
    channel="employees"
    orderby="title" sort="asc"
    disable="categories|category_fields|member_data|pagination"
    limit="10000"
    entry_id="{alpha_ids}"
    cache="yes" refresh="720"
}

    {title}
    {p_position}
    {p_locations limit="1"}{office site="default_site"}{title}{/office}{/p_locations}
    {if p_locations}{p_locations limit="1"}{phone}{/p_locations}{/if}{if p_locations == ""}{p_phone}{/if}
    {p_email_address}

{/exp:channel:entries}

In this code snippet {alpha_ids} is the result of filters (in the case causing the issue, this contains all entries). {p_locations} is a matrix field. The columns in this matrix are {office} (playa single-select) and {phone} (text field).


texts: Solspace's Date Field Filter - can it do date headings?

texts:
I've started using Solspace's Date Field Filter plugin. Is there any way to make the plugin show yearly headings? Something equivalent to EE's {date_heading display="yearly"}, which doesn't work with the plugin.

I've got a list of awards that I want to break up by date on a single page, e.g. 2013 winners, 2012 winners, etc.

The current work-around is to set the entry date as the award date, but I'd rather not do it that way (for a variety of reasons).


texts: CartThrob Gift Certificates Add to Cart form causing fatal error

texts:
I just purchased the Gift Certificates plugin yesterday and am setting up the Add to Cart form today.  Here is the current version of the tag:

{exp:cartthrob_gift_certificates:add_to_cart_form return="shop/cart" on_the_fly="yes" allow_user_price="yes" shipping_exempt="yes"}
    Price
    <select name='price' id='price' />
        <option value="25">$25</option>
        <option value="50">$50</option>
        <option value="100">$100</option>
        <option value="250">$250</option>
        <option value="500">$500</option>
        <option value="1000">$1000</option>
    </select>

    Recipient Email Address
    <input type="text" value="" name="gift_certificate_email_address" id="gift_certificate_email_address" />

    Note
    <input type="text" value="" name="gift_certificate_note" id="gift_certificate_note" />

            <input class="add-cart" type="submit" value="Add to Cart">

{/exp:cartthrob_gift_certificates:add_to_cart_form}

This is currently causing the following fatal error:

There is an older forum post that lists another fatal error in a different file, but references sort of the same situation (I was looking for how to let the user choose the price for the gift certificate).

Does anyone know what is causing this error?

EE 2.8.0

CartThrob Pro 2.6

CartThrob Gift Certificates 1.25

I also have CartThrob Credits 1.21 installed if that plays a factor.


texts: Simple Registration displays error on registration

texts:
Whenever a sign up occurs, this is displayed:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '45' for key 'PRIMARY':

INSERT INTO exp_member_data (member_id) VALUES ('45')

The membership is created, but the email isn't sent.


texts:
I have a site using EE 2.5.2, they have a count of the total members of the site on the homepage using:

{member_total}

The site has recently gone over 10,000 members and the counter has gone back to 0 and started counting up from 0 again.

Am I correct in assuming there's a limit of 9999 members that the tag can process and is there a way around this?


texts:
Are there any preferred ways of setting and getting cookies in EE? Whether through an add-on or a PHP snippet?

Need to set a location cookie based on user input and get the cookie within my templates.


texts: Solspace User - editing member categories in CP

texts:
Can an EE administrator with CP access be able to re-assign member categories from the EE member admin area?
I have a Solspace User reg form that allows the user to select from a list of categories, question is how can administrators edit those categories on a per member basis from within EE CP?


texts: Limit conditional results inside of channel entry

texts:
I have a channel entry that I want to display limited results and also only show results with a certain conditional applied to it.

Right now I am opening the channel entry and setting a limit inside of the channel opener, and then inside of that limit the conditional runs. So when the channel entries are displayed the channel limit runs first then it filters the conditional, and there are less than the limit of entries showing because not all of the entries met the conditional. Here is my example:

 {exp:channel:entries
  channel="staff"
  orderby="random"
  limit="12"
 }

  {if staff_photo !=""}
   12 photos
  {/if}

{/exp:channel:entries}

In this example, there are some entries in my channel that do not have a photo. I only want to display entries that have a photo first, then of those entries with a photo, I only want to show 12. Is there a better order of operations or way to structure this conditional? I tried using an embed to first call in the channel then filter the limit with the embed but was not having much luck with that. Any insight is greatly appreciated.


texts:
I have a trainer directory that seemed to be displaying fine but now I have more than 1 entry it will just display the content for trainer1 even if im on the page for trainer2.

So /personal-trainer-directory/trainer3/ is displaying the content for /personal-trainer-directory/trainer1/ even though the URL says /personal-trainer-directory/trainer3/

here is how i have the template file setup.  It’s a directory template file with Trainer Directory Search, Trainers Page, Gym Directory Search, Gyms Page:

{if segment_2 =="personal-trainer-directory" AND segment_3 ==""}
trainer search page
{if:else}
trainers page
{/if}

{if:elseif segment_2 =="gym-directory" AND segment_3 ==""}
gyms search page
{if:else}
gyms page
{/if}

Here is the code for trainers page: http://d.pr/n/OXg0 its a bit long so uploaded to droplr.

Been trying to figure this out for a couple hours and a bit stumped


texts: After updating EE from 1.6.8 to 2.7.3 Playa won't update the exp_playa_relationships table

texts:
I've successfully updated ExpressionEngine to 2.7.3 but after I try to install the updated version of Playa (4.4.5) I continually get this error:

  Fatal error: Maximum execution time of 30 seconds exceeded in /system/third_party/playa/ft.playa.php on line 314

I've tried increasing the max_execution_time to a longer duration of time, reimporting the database and running again but same error.

It looks like all of my entries are still intact in the exp_relationships table, they just aren't getting moved into the exp_playa_relationships table.

The exp_relationships table has 93,553 rows in the table.


texts: conditional if statements for channel fields

texts:
Im running into a bit of a problem,

i have two channels which are called on a single page, displaying the latest entries from each. these two channels have different fields setup for descriptions and title eg. {channel1_title} {channe2_title}.

when i call channel1 and all its fields it appears correctly, and also when i call channel 2.

when i combine them however i have a problem in calling both fields in all channels

{exp:channel:entries channel="channel1 | channel2"  orderby="date" sort="des"  dynamic="off"}

all channel entries for both fields are called but my problem is the channels have differences, channel2 fields are video related and channel1 are image related.

what i am trying to do is loop the src and description fields so they appear but in an if statement.

Is this the correct approach or is there another way of achieving this.


texts: DevDemon Subscriptions - bug caused by the way prices are stored

texts:
It appears as though the Subscriptions add-on stores the subscription amount as an integer in the database rather than a decimal.  For example, a subscription amount of £120.00 is stored in the database as '12,000'.

This is causing a problem for, I think, any amount over 1000. For example, if I create a subscription with an amount of £1250, which gets stored in the database as '125,000', the customer actually only gets billed £1. Also, on the Subscriptions page within the module's settings, it displays the value of the subscription as £1.00.

Also, I don't think the payment gateway makes a difference but just in case, I'm using Stripe.

I'm not sure if this way of storing amounts in the database was deliberate, but it seems very odd.


texts:
Using a basic example. If i want to import -
Pages channel &
News channel

And they both use SEO Title, SEO Desc fields. When importing the second zip, it errors out and needs the fields renaming. Which defeats the purpose.

Is this just not a currently available feature?