texts: Changing Field Groups for existing channel

texts:
I've just (finally) upgraded from EE1.x to EE2.5.5. (I was able to use Importer and Matrix to recreate my photo galleries with enough functionality to maintain them as a "legacy" gallery. If you are interested in what I did, let me know.) But I digress.

I now want to take advantage of many of the new cool 3rd party field types like Wygwam, Channel Images, Polls, Tags, and others. (And, I'd like to remove field types that I no longer use such as embeds for videos and a second Summary field.)

My question is about the best to do this. And, really "how does it work"?

I've seen from an existing post that it is okay to simply convert existing text fields to Wygwam fields, so I get that and it makes sense.

What happens if I get rid of a field? Will that contents still be in the data base? Can I keep the code to display that field in place in my template and use a conditional to render it only if it exists (even though it is no longer a valid "input" field)?

Also, if I create a second field group that contains my new ideal setup and associate my channel with it, all the old entries will still render, again if I have the old field name in my template. Actually, I've tried this and it seems to work, I just had to use new unique names for each field and then use a conditional to print whichever one has content. This works, I just want to be sure my assumptions behind "why" are correct. So, comments on these "rules" are welcomed:

You can associate an existing field with a new field type. (But, I assume this is only for like types: text to text, for example. What happens if I try to convert an old text field to Matrix, for example?)
If I delete a field from my publish form, the data is still there and associated with the "old" field name? Can I now re-use that field name? (Haven't tried this till I understand what will happen.)
I can change the field group for a channel to a new group, but the fields must be uniquely named (can't have same name as old fields) and I need to update my templates to reflect this.

I think that's enough to let me know how this works. If it does work okay, then I'll need to figure out how to display search results from old and new fields, and some stuff like that. (Excerpt won't work across both field groups, I assume.) What other "gotchas" are there?


texts: P&T Fieldpack:Checkbox - Spitting out if conditional instead of parsing it

texts:
I am running into a problem with the fieldpack checkbox on a site I am developing.

I am using the following code inside an {exp:channel:entries} loop, but the first two entries is echoing out the if conditional as seen below.

Channel entries loop: {exp:channel:entries channel="stories" orderby="entry_date" sort="desc" limit="20"}

if conditional:

{if "{story_type:selected option='Video'}"}

{/if}
{if '{story_type:selected option="Audio"}'}

{/if}

What the page shows:

as seen here: http://new.danaloeschradio.com/ (below the gunbox ad).

Can anyone help?


texts:
I'm working in EE 5.1.1 and trying to use a fluid field for the first time.

I've created the field and added the nested fields however on the publish page it won't let me select a field.

When clicking on the sub fields nothing happens.

Please advise.


texts: Expression Engine PHP & Embed & entry_id_from

texts:
i have the following Line:

{exp:channel:entries channel="orders"  entry_id_from="{embed:LAST_ID}" sort="desc" dynamic="no"}

LAST_ID file :

<?
include '!mysql.php';
$last_id = @mysql_result(mysql_query('SELECT comanda_id_end FROM output_comenzi ORDER BY id DESC'),0);
if(!$last_id) $last_id = 0;
echo $last_id;
?>

How can I make that the LAST_ID file to get PARSED, take the value and insert it into entry_id_from

Please help :)


texts: What is the default interval time for batch emails?

texts:
We are using EE's built-in communication tool to send out an initial email to all of the site's members letting them know about the new site design and functionality updates. I would like to batch process these 6000 emails. I have "Use Batch Mode" set to yes, and the number of emails per batch is set to 300.

Does anyone know what the default interval time is for batch emails in EE and whether or not it is customizable? I haven't been able to find it anywhere in the documentation. Thanks!

Disclaimer: I tried to push a service such as MailChimp in lieu of the built-in communicate tool, but that's not an option for us at this point in time.


texts: Character encoding changed when upgrading EE

texts:
Earlier this year, I upgraded a site from EE 1.x to EE 2.x. I have only now discovered that in the process of doing so, it seems the encoding changed on my old posts, so that Swedish letters (for example) are replaced with their respective character references.

Is it possible to fix all of those old posts in some handy fashion so that they just store those characters as-is, as newer posts do?


texts: Building a list of entries from a single category with exp:query

texts:
I'm trying to speed my site up with a few direct queries.
Like:

{exp:query sql="SELECT field_id_16 FROM exp_channel_data WHERE channel_id='4' "}
{field_id_16}
{/exp:query}

What query will I need to restrict these entries to a certain category? I'll probably need to join exp_category_posts?


texts: Freeform: Display freeform entries from logged in user

texts:
I want to create a page where a user can view and edit his own submitted freeform entries.

The user has to log in before submitting the form.

I have tried this:

{exp:freeform:entries
orderby="entry_date"
sort="desc"
limit="2"
form_id="21"
author_id="{member_id}"
}

And it does not display any entries.
But when I hard code the author_id author_id="1" it works.

So, how do I display form entries submitted by the logged in user only?


texts: Solspace User ignoring member/group parameters

texts:
When using member_id and group_id parameters in exp:user:xxx tag pairs, the specified group_id or member_id parameter is being ignored and outputs data for the logged in user.
Why is this happening and how do I force User to recognise what I need it to?

EDIT: found out the reason. I'd inadvertently nested 2 exp:user:xxx pairs. Un-nesting them cured it. Surprise.


texts: Which method for setting status parameter is more efficient?

texts:
I built a site several years ago with 3 statuses so editors could position articles on a category landing page. I coded some of the entry tags like this to ensure that adding additional statuses wouldn't affect the results unless I explicitly revised the parameter settings.

status="Open|Mini Feature|Main and Mini Feature|Main Feature"

Well, no additional statuses have ever been added and I want to make sure my queries are as efficient as possible. This is a high traffic site.

My question is... which produces a more efficient query?

status="Open|Mini Feature|Main and Mini Feature|Main Feature"

OR

status="not closed"


texts: Super Search : how to decode the queries codes stored in exp_super_search_history table

texts:
Does anyone know how to decode the queries codes (stored like this YToxOntzOjU6ImZpZWxkIjthOjE6e3M6ODoidGFibGltbWUiO3M6MzoiMDFCIjt9fQ==  in exp_super_search_history table) to transform it in this kind of format : search="keywords=green&channel=products&category=pants+shirts&status=-closed&orderby=title+asc&limit=100"

So I can use it as a parameter in {exp:super_search:results} tag.

Thanks in advance for the reply.

PS : already tried with a little bit of PHP (base64_decode()) but doesn't give the format needed.

EDIT ::

Hi, in fact I'll explain exactly what I'm trying to do :

In a template I make a query to retrieve all the member's last saved search datas.

{exp:query sql="SELECT essh.*
FROM exp_super_search_history essh
INNER JOIN
    (SELECT member_id, MAX(search_date) AS MaxDateSearch
    FROM exp_super_search_history WHERE saved='y' AND member_id != '0'
    GROUP BY member_id) groupedessh
ON essh.member_id = groupedessh.member_id
AND essh.search_date = groupedessh.MaxDateSearch"}

Whithin this query loop I wanted to show the results of all these searches retrieved by puttting the exp:super_search:results tags with the parameter search={query}. THat's the reason I wanted to decode the query value from exp_super_search_history.

The goal is : On this page I want to loop on all the member's last saved search results and send them an email once a week with the links to all the new added entries that matches their saved criterias.

Instead of trying to decode the {query} thing you suggested me to use the Super_Search:Search tag to build the URL string, what I did :

URL :

<?php
$the_url= '{if super_search_tablimme}tablimme={super_search_tablimme}{/if}{if super_search_comm}&comm={super_search_comm}{/if}{if super_search_offr}&offr={super_search_offr}{/if}{if super_search_prix-from}&prix-from={super_search_prix-from}{/if}{if super_search_prix-to}&prix-to={super_search_prix-to}{/if}';
?>

And after that :

{embed="template_group/template" the_url="<?php echo $lol; ?>" the_author="{member_id}"}

All works perfectly, except that on this list of results by member, I only see results filtered by criterias for the member I'm connected with.

Example 1, when I'm connected as member 1, on my list template I see :

member_id : 1

URL = tablimme=01&offr=V&prix-from=2000&prix-to=190000

results filterd

member_id : 2

URL =

all the results from the channel (not filtered because it doesn't have retrieved the URL, as you can see above, because I'm not connected with this member account)

Example 2, when I'm connected as member 2, on my list template I see :

member_id : 1

URL = all the results from the channel (not filtered because it doesn't have retrieved the URL, as you can see above, because I'm not connected with this member account)

member_id : 2

URL = tablimme=011

results filterd

I think the issue is at the Super_Search:Search tag level, not at the Super_Search:Results because as it is written in the Super Search Dococumentation we can add the search criterias we want in the search="" parameter.

This is for a immo project I have for a client. Can you give me help on this please ?


texts: I get PHP error when I try to upload some pdf files when other work great

texts:
I tried to disable XSS filter but it does not help. I use file manager to upload files.
Errors I get:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: file_id

Filename: cp/content_files_modal.php

Line Number: 199

A PHP Error was encountered

Severity: Notice

Message: Undefined index: mime_type

Filename: cp/content_files_modal.php

Line Number: 388

A PHP Error was encountered

Severity: Notice

Message: Undefined index: file_name

Filename: cp/content_files_modal.php

Line Number: 392

A PHP Error was encountered

Severity: Notice

Message: Undefined index: upload_location_id

Filename: cp/content_files_modal.php

Line Number: 393

A PHP Error was encountered

Severity: Notice

Message: Undefined index: file_name

Filename: cp/content_files_modal.php

Line Number: 398

A PHP Error was encountered

Severity: Notice

Message: Undefined index: file_size

Filename: cp/content_files_modal.php

Line Number: 408

A PHP Error was encountered

Severity: Notice

Message: Undefined index: upload_location_id

Filename: cp/content_files_modal.php

Line Number: 413

A PHP Error was encountered

Severity: Notice

Message: Undefined index: modified_date

Filename: cp/content_files_modal.php

Line Number: 202

A PHP Error was encountered

Severity: Notice

Message: Undefined index: replace

Filename: cp/content_files_modal.php

Line Number: 205

File Already Exists:
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: original_name

Filename: core/Loader.php(727) : eval()'d code

Line Number: 4

A file with that filename already exists. You can either choose a new name and the file will be renamed, or you can use the same name and the existing file will be overwritten.

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: hidden

Filename: core/Loader.php(727) : eval()'d code

Line Number: 7

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: original_name

Filename: core/Loader.php(727) : eval()'d code

Line Number: 8

" class="text" />.
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: file_extension

Filename: core/Loader.php(727) : eval()'d code

Line Number: 8

Any help appreciated,

Thank you,

Wojtek


texts: Custom Member's Channel Entries Defaulting To "Closed" Status

texts:
I created a member group and gave that group permission to add/edit a particular Channel. Whenever a new entry is made by a user in that member group, the status is set to "Closed." I looked at the Channel settings and the default status is set to "Open". When I make entries as a Super Admin, the status is set to "Open."

What do I need to do so that the member group's entries are set to Open?


texts:
Sorry, I'm having a little brain freeze here and am hoping for some help.

I currently have the following code:

    {exp:playa:children channel="somechannel"}

        {matrix_field}

            {if field_row_index == 0}

            {/if}

            {playa_field}

                playa vars

            {/playa_field}

            {if row_count == total_rows}

            {/if}

        {/matrix_field}

    {/exp:playa:children}

I'm trying to figure out how to get my-div (opening and closing div) inside the exp:playa:children tag but, to only display once.

In other words, I want my-div to wrap all the playa:children IF and when any exist but, to not repeat over and over again.

Currently what I have works fine except if there isn't any data then my-div still shows up which is not what I want.

Thanks!


texts:
Is there is a specific ACT command in Expression Engine 3 I can run from a template to create members?

I can probably do this by saving directly to the database and while the password is not a problem since I can hash it I have no idea what Expression Engine is using for the salt and other hashes in the ee_members tables since there is more than one. Is there a clean way to create members programatically?


texts: Stash Shortcodes - last one outputs "home"

texts:
EE 2.10.1
Stash 2.6.5

I'm trying to set up some shortcodes using Stash on a rebuild of my site where I formally was using MX Jumper to do the same thing.

The code works fine except that the last instance of the shortcode always outputs home on the front end inexplicably

My code is where {code_sample} is a grid field:

{!--
    //Stashing code blocks to inject into blog_copy
--}

{code_sample}
    {exp:stash:set name="code_block_{code_sample:count}" type="snippet"}

            {code_sample:code}

     {/exp:stash:set}
{/code_sample}

{!--
    //End Stashing code blocks
--}

Then further down the template:

{exp:stash:parse process="end"}
    {blog_copy}
{/exp:stash:parse}

If there is more than one code block then the final code block always renders as home.

Any thoughts?

--------update---------

Template debugging shows this as the final output, which is correct but still on the front end it displays "home"

(0.195359 / 8.31MB) Stash: SET code_block_9 to value {exp:ee_syntax:filter}
 $field_id = $this->get_field_id($field_name); ee()->api_channel_fields->apply('_init', array(array( 'row' => $this->entry, 'content_id' => $this->entry('entry_id'), 'field_id' => $field_id )));
 {/exp:ee_syntax:filter}

Also if I put this code in the template without stash all grid rows are output correctly

{code_sample}

        {exp:ee_syntax:filter}
            {code_sample:code}
        {/exp:ee_syntax:filter}

{/code_sample}

-----end update-------

-----update 2-------

Working with a new template with nothing in it but the layout tag and channel entries I have determined that this stash code does not play well when passing variables through the layout tag like this:

{layout="site/_layout" body_id="home"}

or

{layout:set name="body_id"}blog{/layout:set}

Using either of those results in the final code block outputting whatever is being passed through in the layout tag. Changing the passed variable name doesn't fix this issue either. Not sure if this is a Stash bug or an EE bug or both...

-----end update 2-------


texts: Charge Stripe billing address erroring if it includes a hyphen

texts:
I am getting a "Must be a valid string" error on the billing name field in a charge form if the name contains a hyphen.

Any idea where that is coming from? I can't track it down.


texts:
Aside from being able to edit files without the Template Manager – is there any advantage to saving templates as files in ExpressionEngine?

Does it improve performance, security, etc.?

Would be grateful for a reply from a knowledgeable person.


texts: Cartthrob with SagePay suddenly stopped working; error 4020

texts:
An existing site running CT 2.5 and EE 2.7.3 with SagePay (server) has suddenly stopped working on the LIVE server.

Initially I thought it might be due to the recent SagePay API update to v3.0, so I have updated the gateway files provided by the new owners Vector Media Group but still no luck.

The error presented is as follows: "4020 : Information received from an Invalid IP address."

Previously this was working so I know the valid IP's were setup and were ok, so I'm not sure why else this error would be present?

Also, this error appears before getting onto the SagePay server, after submitting the checkout form to go to SagePay it stops and this error shows up.

Any ideas anyone please, I'm stumped at the moment?

To start with I'm looking for ideas without having to update both EE and CT please! Thanks in advance.


texts: Calling min_order_qty on each product modifier option

texts:
I am creating a product info page, where you can select a product modifier (e.g. size, flavor), I have an issue.

First of all, according the Expresso-Store docs:

min_order_qty

  The minimum order quantity for the product. If the product has more
  than one SKU, this will be the maximum of all minimum order
  quantities. If the product does not have any minimum order quantity,
  this will return 1. Useful for pre-populating the item_qty field:

Found that it actually returns the minimum of all min order quantities.

Changed the Product.php file on line 132 from:

if ($item->min_order_qty < $min_order_qty) {

to...

if ($item->min_order_qty > $min_order_qty) {

That seemed to resolve the issue of not returning the maximum of minimum order quantities.

Lastly, the issue remains that I need to be able to retrieve the individual min_order_qty's for each modifier option so that I may, for instance, update the Quantity field in the document dynamically.

Since the fields allow you to map a minimum order quantity to each stock (SKU) variant, I expected to a method to retrieve each of these quantity values.

Attached is an image of an example product modifier options for context:


texts: EE 1.6.7 entries order within a category

texts:
I'm using this code:

{exp:weblog:categories weblog="games" style="none" show_empty="no"}
{exp:weblog:entries site="games_site" weblog="games" category="{category_id}" style="linear" disable="member_data|pagination|trackbacks" }
{title}
{/exp:weblog:entries}
{/exp:weblog:categories}

to display all the entries for all categories assigned to a specific weblog.
This works ok, but I would like to maintain the order given to the entry inside each category.
Is there a specific orderby parameter to use?


texts: Super Search Query Overloads DB and Brings Down Websites


texts: GWcode Categories and class_current is not added

texts:
My code for GWcode Categories add-on looks like:

{exp:gwcode_categories group_id="4" cat_url_title="{segment_2}" last_only="yes" class="list-plain" class_current="current_category"}
{cat_name}
/exp:gwcode_categories}

Based on Nick suggestion I have used GWcode CatMenu add-on

{exp:gwcode_catmenu group_id="4" cat_url_title="{segment_2}" min_depth="2" class="list-plain"}

{cat_name}

{/exp:gwcode_catmenu}

but I have no clue why on current category class is not added.

Thanks


texts: Help with channels and structuring content

texts: I read somewhere that its good to use a channel for each page on your site, that way it makes it easy for the person who will ultimately be updating content to easily understand how its structured.  Is that the best way?  If so, I have probably 30 pages on the site I'm currently working on, and the navigation has sub-menus that lead to more pages.  It seems crazy to me to have 30+ channels listed in the publish content drop-down.  Can someone help me clarify the best way to structure all of this?


texts:
Just installed the new Assets module and configured an amazone s3 location. However the location is not showing up in the assets module (upload files list).

When configured as a fieldtype I can select the directory (s3) to upload to during configuration. But while editing an entry I get a blank upload files modal.


texts: Playa tag returning text string instead of entry ids

texts:
I've just upgraded a site from EE 2.1 to EE 2.7.1 and got it basically working by upgrading the associated AddOns. Playa is still having trouble (migrated from 3.1 to the latest 4.4.5).

Simple Playa code that should return the entry_ids for the items selected within the page_sidebar_content field are instead returning a text string.

So,

 {page_sidebar_content backspace="1"}{entry_id}|{/page_sidebar_content}

is returning something like:

 M140o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr

instead of something like

114|32|61

Any ideas?


texts: Upgraded to 2.6.x from 1.6.x - Site functionality and styles all broken

texts:
So after an entire laundry list of stuff that has gone wrong,  I have finally “successfully” migrated a client’s old EE site to the latest version (at their insistence).

The most vexing problem, as of this moment, is that the entire site has imploded all over itself. Insofar as I can tell, functionality remains nominally intact. However, the CSS is now a complete train wreck in spite of the fact that all of the styles are seemingly being referenced and are intact. I can access them through the template manager and make changes just fine..

So why did this upgrade ruin everything? Is there a way to fix this?

The client is, naturally, wholly displeased with this in spite of advanced warnings rendered.

Some of the functionality is also broken, like drop down lists and so on. The site can be seen here:

http://lenoirmemorial.org/

Is there a fix for this, or am I really going to have to try and rebuild all of the styles and functionality for a website I did not help create? My employers do not have the original employee(s) or design templates for the site- so I do not even have a real reference to go off of in the hopes of rebuilding.

There's also instances of tags being used not supported by EE2, and I've not any idea where they originate from (google has not helped). Such as {exp:convert_to_title_case}:

<title>{if segment_2}{exp:convert_to_title_case}{segment_2} &raquo; {/exp:convert_to_title_case}{/if}{if segment_1}{exp:convert_to_title_case}{segment_1} | {/exp:convert_to_title_case}{/if}Lenoir Memorial Hospital, Kinston, North Carolina</title>

I've made database backups and retained all of the old EE files and folders.. Is there a viable way to rollback to an earlier version or am I stuck?


texts: Using Stash Embeds for common elements such as call to actions

texts:
It seems to me that using Stash Embeds with variables could be a really powerful way to keep things really dry.

I was wondering if anybody uses them to create consistent elements throughout their sites and just cache them away?

For example for a consistent call to action button throughout the site...

{exp:stash:embed:partials:cta stash:action="Download Now" stash:location="/download/"}

Which would embed the partial template which would look like

{exp:stash:action} &raquo;

It would allow for impressively DRY code which in turn would be consistent code (call to action buttons are things I notice become inconsistent quickly on a larger site) and would facilitate the ability to change hundreds of CTAs in one line of code.

Would this have much of a negative effect on the performance of the site? Has anybody tried something similar to this in the past?


texts: Shipping Address Validation in Store Module

texts:
I've been running into an issue on our website where a customer (likely on accident) does not change their state in the Shipping Address, so that they might end up with a Shipping Address in Los Angeles, AL. They obviously meant Los Angeles, CA, but now we don't charge them shipping because it's outside of California.

Is there any way that we could validate the shipping address before the customer moves onto the next stage in the purchase process?


texts: EE3 pagination loop incompatible with Bootstrap

texts:
I'm building a site using EE 3.3.1 and Bootstrap 3.3.6

I'm trying to output a list of news articles which are paginated. But the only way I can show the pagination is to repeat the channel entries query further down the page, because otherwise it causes repetitions of the markup.

This is the area where the problem starts:

        {exp:channel:entries channel='news' orderby='date' sort='desc' limit="10" paginate="bottom"}

{title}

        {/exp:channel:entries}

Browse by category

            {exp:channel:categories show_empty="no" category_group="4"}
            {category_name}
            {/exp:channel:categories}

The pagination code needs to be inside

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

But I want to display it at the bottom of the page, therefore it needs to be outside

I can't move the closing

           {/exp:channel:entries}

tag lower down, otherwise it will repeat all the markup (e.g. where Browse by Category, see .col-md-3) up to 10 times (10 being the limit on the query).

The only solution I came up with was to add this outside the original row. But this means repeating the query, which is not DRY.

    {exp:channel:entries channel='news' orderby='date' sort='desc' limit="10" paginate="bottom"}
    {paginate}
    {pagination_links}

        {first_page}

&laquo;

        {/first_page}
        {page}

{pagination_page_number}

        {/page}
        {last_page}

&raquo;

        {/last_page}

    {/pagination_links}
    {/paginate}
    {/exp:channel:entries}

How can I improve this?


texts: Add on to Make Categories 'Required' in Channel Form?

texts:
Is there a way to make category checkboxes work like custom fields and be 'required' in Channel Form? With a message that shows the error if not?

Been looking for a plugin but doesn't seem like there is one..

Anyone had to do something like this?


texts:
Wondering if there was quicker way to update Product Modifiers.

We have a lot of products which are the same price but bit of a pain having to update every price modifier 1 by 1.

Anyone used Zenbu to maybe mass edit these. Don't think it's supported.


texts: Solspace Calendar: conditional for minutes?

texts:
I'm trying to find a way in Calendar for start times that are on the hour (e.g., 8:00pm) to output as "8pm" and for times that are not on the hour (e.g., 8:15pm) to output as "8:15pm". I'm not figuring out how to write the conditional to do that. Any ideas?

EDIT: Just to make this a little more clear, I want any times that are on the hour to just be the hour (8:00pm should render as 8pm) and any times that are not on the hour should have the hour and the minutes (8:25pm should render as 8:25pm).


texts: Orderby price doesn't work with dynamic parameters - {exp:store:search}

texts:
I'm trying to build some filtering into my store listing. The standard 'low to high' and 'high to low' kind of thing.

Dynamic Parameters seemed like a good option

http://ellislab.com/expressionengine/user-guide/add-ons/channel/dynamic_parameters.html

By using $_GET variables, I'm able to control the sort & orderby parameters. However, when I set ?orderby=price on my url, the filtering doesn't work.

?orderby=title works. ?sort=asc/desc works.

Price seems to be the only thing that doesn't. I'm wondering if this is a bug. Since the {exp:store:search} tag augments the native entries tag, maybe something is getting lost in translation.

Below is an abstract of my code:

{exp:store:search
  channel="shop"
  limit="12"
  dynamic_parameters="orderby|sort"
  dynamic="yes"
  paginate="bottom"
  show_future_entries="yes"}

  < Markup in here >

{/exp:store:search}


texts:
I am getting an error when I try to load and entry in our EE Install.  I am posting here first as I think it is an Assets issue.  I am running EE 2.5.5 with latest version of MSM.  This is only happening to users accessing this specific entry so far.  As a Super Admin I can access the entry without issues.  Here is the error I am getting. Originally this shows up as a blank white page until I turn debug mode on.  Any help you be appreciated!

Fatal error: Uncaught exception
'Exception' with message 'Assets could not complete the requested operation.' in
/home/uuoci/public_html/system/expressionengine/third_party/assets/sources/ee/file.ee.php:33
Stack trace: #0 /home/uuoci/public_html/system/expressionengine/third_party/assets/sources/base_source.php(807
): Assets_ee_file->__construct(1467, Object(Assets_ee_source)) #1 /home/uuoci/public_html/system/expressionengine/third_party/assets/libraries/assets_lib.php(64
7): Assets_base_source->get_file(1467) #2 /home/uuoci/public_html/system/expressionengine/third_party/wygwam/helper.php(899):
Assets_lib->get_file_by_id(Array) #3 /home/uuoci/public_html/system/expressionengine/third_party/wygwam/ft.wygwam.php(397):
Wygwam_helper::replace_asset_tags('&lt;h2&gt;??Swi...') #4 /home/uuoci/public_html/system/expressionengine/fieldtypes/EE_Fieldtype.php(242): Wygwam_ft->display_field('&lt;h2&gt;??Swi...') #5 [internal function]: EE_Fieldtype-
>display_publish_field('&lt;h2&gt;??Swi...') #6 /home/uuoci/public_html/system/express in /home/uuoci/public_html/system/expressionengine/third_party/assets/sources/ee/file.ee.php on line 33


texts:
Getting the following error message on the front end of the sites sub pages and not the home page of the site. I have fixed it before by optimising & repairing the database but it has come up again and would like to fix it permanently. EE 2.5.2

Error Number: 1030

Got error 122 from storage engine

SELECT c.cat_name, c.cat_url_title, c.cat_id, c.cat_image, c.cat_description, c.parent_id, p.cat_id, p.entry_id, c.group_id , cg.field_html_formatting, fd.* FROM (exp_categories AS c, exp_category_posts AS p) LEFT JOIN exp_category_field_data AS fd ON fd.cat_id = c.cat_id LEFT JOIN exp_category_groups AS cg ON cg.group_id = c.group_id WHERE  c.cat_id = p.cat_id AND  p.entry_id IN ('17') ORDER BY c.group_id, c.parent_id, c.cat_order

Filename: modules/channel/mod.channel.php

Line Number: 953


texts: Auto generate a csv from Freeform 3.x on server.

texts:
how would one be able to get data collected in freeform into a csv on the server. So a CRM can access it via FTP.

Is this even possible? I know very little about cron jobs, is there a plugin that could handle this?

Thanks!


texts:
I am building landing pages that will be used as direct links, not from a list on a catch all type page. I want to use one template, no categories. I am showing content from two different channels, one for the landing page and one for the "program" area. I am using an embed and {if} statements for the program channel that is nested within the other.

This all seems to be working, although to have the embedded program channel content display, I have to include the folder structure in the url_title field for the entry (so, instead of just putting "caribbean_culture" or "examine_change" in the url_title field, I'm having to put "template_group/template/url_title" or else the embedded channel content won't show up.) And then after it saves, its converted to template_group_template_url_title.

However, I'm not able to have the URL pull the specified entry. Instead, it just pulls the first or the last, depending on how I have the sort set up. So, using this:

{exp:channel:entries channel="landing" disable="member_data|pagination" sort="desc" limit="1"}

I get the same entry for either of these URLs, although they should actually show different entries:

http://www.sea.edu/learn_more/sea_semester_voyages/caribbean_culture
http://www.sea.edu/learn_more/sea_semester_voyages/examine_change

If I change the sort to 'asc' in the channel:entries tag, then I do see the other entry, but again, at both URLs. I have the functionality of the single entry displaying on a page working on other templates in the site, but they are fed by an initial link on another page, that uses

href="template/{url_title}"

to build the page.

Is there some parameter to include in the channel:entries tag that uses the url_title to dictate the entry that is on the page that matches the URL? Or some other solution?

I tried "require_entry" to no avail.


texts: Not sure what happens but a site I'm running on a windows server displays nothing now. I can't get it into debug mode. Also, works perfectly fine locally on MAMP and on a linux set up with 1and1... any help would be amazing!


texts:
Matching one URL segments always works fine but is possible to match more than one?

For example this works:

{if segment_2 == "page"}nav-expanded nav-active{/if}

But this does not:

{if segment_2 == "page1" OR "page2"}nav-expanded nav-active{/if}

I tried all operators and conditionals possible and nothing works for me from the official docs here:
https://docs.expressionengine.com/latest/templates/conditionals.htm

I need to match more than one page (not at the same time) but no operators I test like equal, or, and seems to work with segments. I'm trying to avoid having to create a whole new {if segment_2} for every single sub-menu page

Maybe this is not possible?


texts: Assets: pick a random one of the assets in this entry

texts:
If my client attaches 4 images to an Assets-field for an entry, how would I get a random one of those images? I was hoping something along these lines:

{exp:channel:entries channel='types'}
    {type_map_icon limit='1' orderby='random'}

    {/type_map_icon}
{/exp:channel:entries}

Where {type_map_icon} is the Assets-field which holds the 4 images. Any thoughts?


texts: Tagdata Fetch Params Not Accepting JSON String

texts:
EE 5.2.4

I'm developing a feature for custom analytics. Certain activities are saved as channel entries in order to be presented in a dashboard later.

I have the first part of the feature working. The way I've gone about it is to save the activity as a string of JSON in a channel entry field. My intention was to parse this out later, as I'm not sure what sort of technology I'll be using on the dashboard and JSON seemed like a universal/consistent format to store the data.

My issue is when I try to pass the JSON string as a tag parameter into a php class method, it doesn't like the JSON and returns nothing.

Example.

Template:

{exp:channel:entries channel='analytics' dynamic='no' status='not closed'}
    {exp:class:my_method json='{json}'}
{/exp:channel:entries}

Class:

  function my_method() {

    $json = ee()->TMPL->fetch_param('json');
    print_r($json);
  }

When the {json} is the saved JSON string from the channel (I know that's working because it shows just fine in the template), the $json variable will return nothing, but if I replace {json} in json='{json}' with a normal string or even another entry field like {title} it will work just fine and I'll get a correct print.

Any ideas what's happening to this JSON string?

I could use php to work with this data in the template, for example

<? php
   $json = '{json}';
   print_r(json_decode($json, true));
?>

but I'd really rather use the EE template features if possible because I just like them so much.

Thanks for your help!


texts: Get the custom fields for top-level category

texts:
I'm trying to get the category description and some custom fields of the currently "active" category. By "active" I mean based on a URL-segment. So if my category-structure looks like this:

websites

design
development
information-architecture

brochures

And my url is http://www.mydomain.com/portfolio/category/development i want to get the custom fields etc. from the category websites (because it's the top-level parent for development). What's the best way to do this?

Thanks,

Steven


texts: If custom channel field entry exists display content else display alternate content

texts:
I am trying to set up a slider in ExpressionEngine which will display a video if the video embed code exists, otherwise it will display an image slider. Currently, I am not able to hide the image slider if the video code exists(but the video does get placed on the page).

Here is my code:

{slider}
    {if video}
            {video}
    {if:else}
        {if total_rows > "1" && row_count == "1"}

        {/if}

        {if total_rows > "1" && row_count == total_rows}

        {/if}
    {/if}
{/slider}

Any ideas? Thanks!


texts: Membership Fields Failing to Map During Checkout / Account Creation in Expresso-Store

texts:
Hullo

We've a 4 stage checkout process working (Select Billing, Email Address & Passwords, then Optional Shipping Stage, then Delivery/Shipping Method, then Payment Method).  This all works lovely as far as getting an order through the system, with all the right data in the order details.  A member account is created, with the matching password, however all of the mapped fields are nowhere to be seen.

ExpressionEngine 2.5.3 |
Expresso Store 1.6.2

Any ideas? Have we missed a magic tag? We are using register_member field in the checkout tag.

Many thanks

Geoff


texts: Foreign Languages Displayed as HTML Entities

texts:
So we've just completed a transition from EE1 to EE2 for a client with a very large database of publications. Some of the publications are available in multiple languages, with Chinese, Korean, and Vietnamese being some of the more popular translated languages, behind Spanish.

On the front-end, the languages are displaying fine, but in the Control Panel they are displaying as HTML entities. Now database wise, this is the same. All the languages were always stored as html entities in MySQL, but before, when the record was pulled up in the control panel, it was readable as that languages.

This is a Korean Publication in EE1.

This is the same Korean Publication in EE2

Now if I go back from the Control Panel and re-enter the data as Chinese, Korean, or Vietnamese the data then displays in that language.

Obviously, we don't want them to have to re-enter hundreds or more publications just to view the text in the proper language, but I can't seem to figure out why EE2 isn't converting the html entities back into the specified languages.

The database is set for UTF-8, charset is also UTF-8, language is English. We didn't have any foreign language packs installed, since the translations only apply to the documents, not the control panel. We still have an EE1 version of the database with Control Panel ONLY access and can compare the databases, and with the exception of table name changes, they look the same.

I'd assume this is or at least was a setting somewhere, but not in the normal config.php settings. Does anyone know where or what I can troubleshoot to get this conversion working properly again?

Obviously, the text needs to be readable for the client to edit and update the publications.


texts: Assets 2: Image Manipulations not showing for images in subfolders?

texts:
This title should be pretty self-explanatory. All the images and their manipulations are working just fine. Except when I upload the images into a subfolder of the main "images" upload-directory.

When I tell it to get the so-called "gallerythumb"-manipulation of said image, it returns the url:
/images/store-photos/_gallerythumb/111.jpg

Which corresponds to the usual pattern:
/upload-directory-path/user-created-subfolder/_manipulation-name/filename.jpg

Is this something that was never a part of Assets' functionality? I mean, I know it's not part of EE's functionality, but...


texts: Count and list the consecutive years for 10 years

texts:
I would like to know if I can do this using ee or if I have to implement a PHP method. Basically I want a dropdown that lists years from the current year to the next ten years so: 2014, 2015, 2016 ..... until 2024. I want this to obviously change annually without me having to actually add ten years in the list every time it should just loop through.

I know I can get the year using this:

{current_time format="%Y"}

So are there things I can add or do to this date to get the dropdown I want?


texts: Super Search Doesn't Work on Live server

texts:
I’ve just launched a site using Super Search.

Everything works nicely on the dev server but on the live server the search produces no results:

Here is a search for 1 bedroom:

http://demo.alexmarks.com.php53-26.dfw1-2.websitetestlink.com/properties/search_results/search&bedrooms-from=1&category=&channel=lettings/

which shows 15 results

Same search on the live server:

http://alexmarks.co.uk/properties/search_results/search&bedrooms-from=1&category=&channel=lettings/

which shows 0 results

What could be causing this?

Niall


texts:
Been using dataGrab for a new site, to import stuff that’s exported to a Json-file from a PIM-system.
All good, working like a charm.

Yesterday, we tried triggering the remote URL, with only 5 entries to be imported: It returned the page that says import done. But when going to the datagrab-plugin-page, it’s stuck at 4/5, and saying “running”.

This prevents me from trying it manually. If I try triggering it manually,  I get the same “Import success”-page, but it’s stuck.
And the logs return “A session had already been started - ignoring session_start()”.

So, my question is, any way of stopping the session?
Also, any idea of why it’s messing with me like this all of a sudden? :)

Running EE 3.4.2


texts: Why do I keep getting automatically logged out of control panel?

texts:
I have never had this with older versions of EE but I just began working with the latest version, 4.3.6, and I keep getting automatically logged out of the control panel after saving changes to templates. I will click Save and wind up back at the login page. Sometimes when I attempt to log back in without refreshing the login page I get an error message "error: this form has expired. please refresh and try again."

I have found the proposed solutions to this problem for versions 2.X and have tried them but they have not worked. I have not seen any solutions specifically for the latest version.

Thanks.


texts: Why won't minimee work? Works in all my sites except one in https://

texts:
The question pretty much says it, but here is some additional info:

Config file, with "siteurl" taking place of the real url:

$config['minimee'] = array(

    /**
     * ==============================================
     * BASIC PREFERENCES (REQUIRED)
     * ==============================================
     */

    /**
     * The path to the cache folder.
     * Defaults to site's FCPATH + '/cache'
     */
    'cache_path'        => '/var/www/vhosts/siteurl.com/cache',

    /**
     * The URL to the cache folder.
     * Defaults to $EE->config->item('base_url') + '/cache'
     */
    'cache_url'         => 'https://www.siteurl.com/cache',

    /**
     * ==============================================
     * BASIC PREFERENCES (OPTIONAL)
     * ==============================================
     */

    /**
     * Turn on or off combining of CSS assets only. 'yes' or 'no'.
     * Values: 'yes' or 'no'
     * Default: yes
     */
    'combine_css'       => 'yes',

    /**
     * Turn on or off combining of JS assets only. 'yes' or 'no'.
     * Values: 'yes' or 'no'
     * Default: yes
     */
    'combine_js'        => 'yes',

    /**
     * Turn on or off minifying of CSS assets. 'yes' or 'no'.
     * Values: 'yes' or 'no'
     * Default: yes
     */
    'minify_css'        => 'yes',

    /**
     * Turn on or off minifying of the template HTML.
     * Values: 'yes' or 'no'
     * Default: no
     */
    'minify_html'       => 'no',

    /**
     * Turn on or off minifying of JS assets.
     * Values: 'yes' or 'no'
     * Default: yes
     */
    'minify_js'         => 'yes',

    /**
     * ==============================================
     * DISABLING MINIMEE
     * ==============================================
     */

    /**
     * Disable Minimee entirely; aborts all activity
     * and returns all tags untouched.
     * Values: 'yes' or 'no'
     * Default: no
     */
    'disable'           => 'no',

   );

The only difference (besides https) between this site and other sites on which I have it installed & active and it works, is that that this server (client owns it) does not have an http(s)docs folder.  Not sure if that is why the whole thing is being thrown off.

The CSS is wrapped in tags like this.  JS files are done the same way:

{exp:minimee:css}
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <link rel="stylesheet" type="text/css" href="/css/mobile.css" />
    <link rel="stylesheet" type="text/css" href="/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/css/bootstrap-responsive.min.css" />
{/exp:minimee:css}


texts:
Is it possible to only target specific MSM sites, as opposed to all sites.

I have two subdomains and a www site using the same MSM installation.

Is it possible to share a cookies between sub1.domain.co.uk and sub2.domain.co.uk but not affect www.domain.co.uk

Basically i want my members to be able to login to sub1 and automatically be logged in for sub2 domains but not www.


texts: Moving EE2.2 site to new server with EE3.3

texts:
Hey I'm just looking for some advice and things to consider when moving an EE2.2 site to a new server with EE3.3.

So far, I have downloaded/uploaded all of the files on the site and have downloaded the database.  Next, I'm wondering if I just need to import the database or if the difference between 2.2 and 3.3 will provide some weird issues when doing this.  I have noticed the directory structure between these versions is different.  I'm interested to hear what you all think.  Thanks!


texts: How do I create a list of distinct categories for related entries of a single channel entry?

texts:
I have the following setup:

Each entry in a parent channel a number of related child entries from a child channel. These use a standard EE relationship field called “children”.
The parent channel does not use categories.
Each entry in the child channel has a category associated to it.
There will be a some child entries related to a single parent entry from the same category.

Given a single parent channel entry, how do I generate a list of the categories for its related child entries without including duplicates if more than one child entry has the same category?

Here’s what I’ve tried so far, which results in duplicate entries when child entries are in the same category.

{exp:channel:entries limit="1" channel="parent_channel" disable="{sn_disable_standard}" required="Yes"}
    {children}
        {children:categories}
            {category_name}
        {/children:categories}<br />
    {/children}
{/exp:channel:entries}

Is there a plug-in that I can use to store the results in a variable, then strip out the duplicate entries?

Or can this be done using standard EE tags? Or even the query module?


texts: Get Category Name from a known Category ID

texts:
Possible Duplicate:
  How do I display a category name based on a segment?

I am trying to construct a Breadcrumb navigation system on my navbar. The URL will look like this: http://mysite.com/case_studies/index/3 - where '3' is a Category ID.

I want to be able to retrieve {category_name} or similar dynamically. How can I do this? I have seen {exp:channel:categories} but that seems to not let you filter by ID.

Any ideas? Thanks!


texts: couple Solspace Freeform multi-page form questions

texts:
I'm using the multi-page function of Freeform Pro for the first time and I have a couple questions.

is it possible to have a "back to page X" button on other pages of the form that sends someone back to a previous page in the form? If I do it manually, it will take me to that page, but the data previously entered into the fields is gone.
most of the fields in the form will be required. I setup inline errors and left a field empty to test. The page refreshed and displayed the error successfully, but I lost all the field date previously entered. Can the inline errors be displayed without removing all the data from fields, or will i have to rely on some JS error detection?


texts: Grouping entries by relationship field (title)

texts:
I have one channel named Zone (zones)
 (All Zone entries are named zone 01, zone 02, etc)

A second channel is named Club Listing (club_listing)
 (All club entries are named Dubbo, Eden, etc)
Within this channel is a relationship field {zone} that relates to the Zone channel.

So each club (200+) belongs to a certain zone (28).

All i need to do is list all the clubs, but have them grouped by zone;

Zone 01
 - Alstonville
 - Bega

Zone 02
  - Avondale
  - Eden

Zone 03
  - Blacktown
  - Dubbo

Is this possible to do?
(Natively or add-on required?)

{exp:channel:entries channel="club_listing" dynamic="no" sort="asc" orderby="zone"}
???
<h4>{title}</h4>
{/exp:channel:entries}

ANY help is much appreciated!


texts: Cartthrob Realex Direct/Global Iris transaction status not returned

texts:
I'm using the Realex Direct payment gateway (Global Iris), and the return page isn't showing the transaction's status (I'm using the docs' example code, hence the text showing beneath where the status should be):

I should note that previously I was instead getting a "The action you have requested is invalid" error returned. I solved that by adding "$config['secure_forms']; n" to the config file and/or setting csrf_exempt to = 1 in the database.

I gather the gateway uses 3D Secure / MPI. Could that be returning different results to what the plugin is expecting (maybe liability-related results?)

Any suggestions would be appreciated.


texts:
Freeform documentation says exp:freeform:entries limit defaults to 20. I want to show all entries.

When I add limit="200" - even though right now there aren't 200 entires - the page takes forever to load. At least 3x as long. Problem is that client is hoping for 2000+ entries eventually.

Suggestions? Solspace, ideas?

Thanks
Amanda


texts:
I am working the store default templates into my custom layout. I am using the {exp:store:cart} tag to display totals in my site's header, however it is not displaying any data.  If I browse to the example templates it still shows the items in the cart.

I am perplexed to why this is not working, wondering if its a server configuration?


texts:
I have a page where I want to display either a featured image or an image gallery in the left corner of a text block, which wraps around the image.  Pretty basic.

If I use just a single image for the story, I have a class that shows a border around the image. If I decide to use a gallery (via a grid field), the images rotate, and the user can click on them to view larger versions.  Also pretty simple.

The complication is evaluating whether either of the two is empty, and if so, show the one that has content. Further, if neither the gallery or single image have any content, show nothing.

I attached my code in Image1
You can also view an example here of the gallery, and HERE of what a single image is supposed to look like (second link is not coded, only "About" template is).  The main "About" link is where I have a single image uploaded, but does not show.

Thank you all for any help you can give!!


texts: Is still necessary using the Add-on Ifelse from Mark Croxton with EE2.9?

texts:
In the new EE version (2.9), the conditionals evaluate when ready, so the performances are boosted.

Is still necessary using the IfElse Add-on from Mark Croxton, when using EE conditional?


texts: safecracker + ajax = readyState: 4 on home page

texts:
I have a super simple safecracker form in my header (embedded template). It's literally 1 field. I'm using the ajax example in the ee docs (http://ellislab.com/expressionengine/user-guide/modules/safecracker/examples.html#ajax-driven-entry-form).

The form works everywhere except the home page. I get readyState: 4 which I read (https://stackoverflow.com/questions/5852257/jquery-s-ajax-error-handler-being-executed-if-readystate-4-and-status-200) means the returned json is malformed. It's true because the responseText is the code for the home page.

I've changed "Make the index template in this group your site's home page?" to a different template group and then the original home page works and this new temp home page fails.

My safecracker opening:

{exp:safecracker json="yes"
channel="email_submission" id="email-subscribe" logged_out_member_id="2"
datepicker="no" include_jquery="no" safecracker_head="no"}

And my js:

$('#email-subscribe').ajaxForm({
    dataType: 'json',
    success: function(data) {
        if (data.success) {
            alert('You successfully added a new entry with entry_id '+data.entry_id)
        } else {
            alert('Failed with the following errors: '+ JSON.stringify(data.errors));
        }
    },
    error: function(data) {
        // this is what's coming up
        alert('Failed with the following errors: '+ JSON.stringify(data));
    }
});

Has anyone encountered anything like this before? Any suggestions? I feel like I'm taking crazy pills.

Thanks
Amanda


texts: Trying to display specific code based on current language

texts:
I'm using Transcribe 1.6.2 with EE 2.10.3.

Our site is in both English and French, and due to differences, I need to adjust some of the template code slightly depending on the current language.

I'm trying to validate based on {exp:transcribe:language_abbreviation}, whether it's "en" or "fr".

{if '{exp:transcribe:language_abbreviation}' == "en"}
    {exp:low_replace find="\
|\<\/li\>" replace="

|

" regex="yes" multiple="yes"}
{if:elseif '{exp:transcribe:language_abbreviation}' == "fr"}
    {exp:low_replace find="\
|\<\/li\>" replace="

|

" regex="yes" multiple="yes"}
{/if}

    {cf_static_headline}
{/exp:low_replace}

Basically, if it's French, throw in an extra style class on the h1 tag that will change the font size because with the current styling, in French it takes up too much space.

I've also tried using preload text replacements, with no success. In either case, it only takes what the first statement is.

The same if statement works fine for another bit of code that I've used it for (changing the way the date is displayed), but I don't understand why it's not working for this.

Thanks.


texts:
I'm using CartThrob v2.71 (the last available v2.x?) on EE v2.11.7 (the latest available v2.x) under PHP 7.0 (just upgraded) and now getting CP errors:

A PHP Error was encountered
Severity: 8192
Message: Non-static method Cartthrob_mcp::module_enabled() should not be called statically
Filename: cartthrob/mcp.cartthrob.php
Line Number: 264 [...and 251...]

Any suggested fix for this or am I being a cheapskate by not upgrading both EE and CartThrob to v3...?


texts:
Using EE to display FAQ's on my site. Each FAQ will have a link to an individual page for SEO reasons. I have two options:

1: Using EE's native channel entries and adding FAQ's individually/importing them as a batch with DataGrab.

2: Using a matrix field and having them all stored in one channel entry.

To get the faq's to display as separate urls I will use the additional matrix_url_title field type:  https://github.com/pixelandtonic/matrix_url_title.

Now to me the standard entries way seems more efficient. However, can someone tell me which one is the best way in terms of Database queries etc.

Thanks,
Ian


texts:
We inherited an EE site, and are working with the client to upgrade from v2.10.1 to the latest v5. We are working on the initial 2->3 upgrade and found some instructions here.

Step 4, unfortunately, has a broken download link:

  Download the latest release of ExpressionEngine (either ExpressionEngine Core or the standard edition, whichever your site is currently running) and unzip the files to a folder on your computer.

I assume since these are dated instructions, when they say "latest release", they actually mean download v3.5.17.

Where else might we get the files needed?


texts: ExpressionEngine 2.3.1 and PHP 5.6 support

texts:
My service provider have upgrading from PHP 5.4 to PHP 5.6.
I'm currently running EE 2.3.1.

After the upgrade, I get a "ERR_CONTENT_DECODING_FAILED" on frontend.
In the backend, I can log in, but none of the menuitems work and I get some mysql errors.

As far as I can see, the mysql_escape_string() is used, but is deprecated in PHP 5.6

The errors in backend:
https://www.dropbox.com/s/r769zkuf8qnphvz/Screenshot%202016-03-04%2010.29.35.png?dl=0

First of all, can I upgrade to another version or am I stuck in this version? If so, which possibilities are there, to get the site up and running again?


texts: Extensions Error and Unable to Login After Upgrade from EE2 to EE3

texts:
My hosting company upgraded to PHP 7 recently which rendered an old site running EE2 inaccessible on the front end and admin sides.  I completed an upgrade from EE2 to EE3.5.17 after reading that EE3 was compatible with PHP 7 hoping this would be an easy fix.  The upgrade went well through the installation until I got the following error and can't access the admin side.
Unable to load the following extension file: ext.dry_accessible_captcha.php
I did some research and read where all add-ons not compatible with EE3 needed to be removed prior to completing the upgrade.  However, in this case, I was not able to do this since I did not have access after my hosting company made the PHP update.  Any ideas on a workaround to get me up and running?


texts:
I'm working on a site that uses CartThrob as it's order handling system.  We are using the PayPal Express payment gateway to collect the funds, but the problem is that the business model was really intended to use the PayPal Adaptive Payments API.  Has anyone had any experience using the PayPal Adaptive Payments API with CartThrob?  If so, I would love to have a conversation and determine how we can accomplish this.

Thank you,
Lucas


texts:
I want to display most of my Channel fields in a table (with some exceptions). Is there a way to loop through the Channel fields and display their labels and field values? Keep in mind that some fields are relationships and I need to use related_entries to access the correct data.

Also, I have created a custom publish layout (grouping related fields under certain tabs). It would be even better if I could output separate tables based on the tab organization in my custom publish layout. Doable?


texts:
Is it at all possible to have a text input or area field in which we could enter EE code to be processed by the template.

For example, if we could have a text area called "Advanced Functionality" and within this write things like

 {sn_contact-form}

Right in the channel entry, and then in our template call...

{advanced_functionality}

then that could be valuable in some instances.

Is this too far down the parse order to happen? Or does anybody know of a solution?


texts: I'm considering implementing EE5 with SSO. Does anybody have experience or recommendations for this? I've found a miniOrange solution https://www.miniorange.com/expressionengine-single-sign-on-(sso) that might be good--any comments on that?


texts: Repeating entries within a Structure tree

texts:
I'm trying to create a category-like hierarchy using only Structure, but am having issues with the requirement of each entry having a unique url_title.

For example...

Category1
  Sub1
    Item1
    Item2
    Item3
  Sub2
    Item4
    Item5
    Item6

Category2
  Sub1
    Item7
    Item8
    Item9
  Sub2
    Item10
    Item11
    Item12

The issue is that Sub1 and Sub2 have to have unique url_titles, which effects the URL.

I realize this is not a Structure-only issue, it's essentially EE's limit, but the Structure tree in the CP - organized as above - is so easy for clients to manage, I prefer to go this way instead of using categories.  And, I can simply use {exp:structure:nav} to output the entire listing.

Is there a way to allow Sub1 and Sub2 to exist as '/sub1/' and '/sub2/' but be used throughout the Structure tree, across multiple Categories (ie: Category1, Category2, Category3, etc.)?


texts: Pagination links on CP module's view are not clickable

texts:
I have a problem quite similar to the one found
here, where I am trying to form a table using the tutorial found on Ellis Lab's site. I found some of their guide totally lacking on pagination, and as a result when I implement it, I lose my table sorting and have links for pagination that do not work when clicked.

After looking on StackExchange I found the helpful post above, so that now I am at the same starting state as the OP's problem. My code looks like this:

$method_url = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=my_module'.AMP.'method=my_method';
return array(
        'rows' => array_slice($rows, $offset, 5),
        'pagination' => array(
        'page_query_string'     => TRUE,
        'base_url'      => $method_url,
        'per_page'          => 5,
        'total_rows'        => count($rows)
        )
    );

However, adding $this->EE->table->set_base_url() does not solve it for me. Although I may need to add it in a place that I did not try - the solution post did not specify.

Perhaps the best way I could summarize would be this:
What is the EllisLab tutorial missing from making a functional pagination/sorting table?


texts:
I have a couple of formats that a news story can display on the site. I have each of these as a different Stash embed.

They're named in this format: story-block, story-focal, story-standard.

The site is in a magazine format and so uses many different styles on one page, often mix and matching them.

For example, on the homepage it loads in 16 blog posts, the first 4 are in story-block format, the next 6 are in story-standard format and the final is in story-block format.

The following code doesn't work, but demonstrates the concept I'm trying to achieve.

    {exp:stash:get_list name="news" limit="4"}
      {exp:stash:embed:modules:story-block process="start"}
    {/exp:stash:get_list}

  {exp:stash:get_list name="news" limit="6" offset="4"}
    {exp:stash:embed:modules:story-standard}
  {/exp:stash:get_list}

  {exp:stash:get_list name="news" limit="1" offset="10"}
    {exp:stash:embed:modules:story-block}
  {/exp:stash:get_list}

story-block has the following markup:-

{title}

      {excerpt}

        {type}
        {date}

But when rendered it doesn't load in the data, it will still show {title}.

My inkling is that embedding with process="start" should do the trick as it would then work as an EE snippet would, but this doesn't make a difference.

If I don't embed and instead copy the code directly into the template it works fine - but this is going to lead to massive code duplication around the site.

Is this possible, or is there a workaround?


texts: "Is Default" EE 2.7+ and Grid compatible field - Alternatives to MX Lone Star

texts:
I was looking for some fieldtype that is supported by Grid to act as a "is_default" flag in my Grid rows. This field would only allow 1 row checked.

Looking at this page, I thought that MX Lone Star would do the job. But after trying it out and doing some investigative work, it is only compatible as a fieldtype in 2.7+ but not as a fieldtype that is supported by Grid.

Are there any alternatives out there?


texts: Wygwam Adding Extra Span Tags with Font-Size Style

texts:
I am running into an error when editing content in Chrome on Mac. I upgraded to Wygwam v2.7 to ensure I was using the latest version. I am using EE v2.5.3.

When adjusting paragraph text, if I delete the break and merge it with the previous paragraph then create a new paragraph, SPAN tags are being added. You can see the example in this video, http://cl.ly/3S2N0z2p1G3p

Any ideas what is causing the issue?


texts: P&T Playa update from 4.4.5 to 4.5.1 database error

texts:
This has been covered elsewhere for earlier versions but the solution doesn't seem to fix this issue. I'm getting the following error when I update from Playa 4.4.5 to 4.5.1, on EE 2.7.2:

A Database Error Occurred
enter preformatted text here`Error Number: 1060

Duplicate column name 'parent_element_id'

ALTER TABLE exp_playa_relationships ADD parent_element_id VARCHAR(255) NULL AFTER parent_var_id

Filename: third_party/playa/ft.playa.php

Line Number: 488


texts: Wygwam Module: Browse server button hidden

texts:
For member groups other than Super Admin, the "browse server" button is hidden when trying to import an image into the content area while editing.

I've tried turning on all member group options...changing the File Browser for Wigwam between CKFinder and EE Manager, no luck.

Running EE 2.4.0 - would the upgrade fix it?

Any other solutions or things to try welcome. Would rather not make everyone a Super Admin.


texts: 404 thrown when trying to access file manager

texts:
On an EE 2.7.3 we are seeing a strange behaviour on the live server where we get a 404 when trying to access the file manager from Content > Files > File Manager.

We have the admin.php file renamed so the URL is this:

  /cms.php?S=0&D=cp&C=content_files

When we hit that URL, we get this:

I've no idea why as it's fine on the test and development environments and we've never seen this kind of error before.

Edit:

We also get this on other URLS such as Channel Admin:

  cms.php?S=0&D=cp&C=admin_content&M=channel_management


texts:
I am creating a site that is ONLY for members, does every template have to be wrapped in a

{if logged_in} template {/if}
{if logged_out} {redirect='login'} {/if}

Is there a better and more flexible way? I will be having multiple member groups and I am using layouts, does that mean my if statement has to be in the wrapper template because whenever I do an "if" statement around the layout tag it does not work.


texts:
When I go to tools -> communicate and try to send an email (with my smtp configuration that was previously working fine) I get the following error:

  Message: fsockopen() [function.fsockopen]: unable to connect to
  smtp.mandrillapp.com:25 (Operation not permitted)

  Filename: libraries/Email.php

  Line Number: 1670

Does anyone have an idea about why this is happening?

To me it's weird because previously emailing worked fine... It's been a while since I last sent email, but I didn't change any email related config since then...


texts:
I have been having issues with the assets plugin in our new server and am having a hard time trying to debug.

When using ee file manager I get the below error.
ee: 2.6.1,
assets: 2.1.3

A Database Error Occurred
Error Number: 1364

Field 'date' doesn't have a default value

INSERT INTO `exp_assets_files` (`file_name`, `source_type`, `source_id`, `filedir_id`, `folder_id`, `kind`) VALUES ('5551725767_38cb459f19_b.jpg', 'ee', NULL, '2', '1', 'image')

Filename: C:\www-customers\websitename\wwwrootV2\system\codeigniter\system\database\DB_driver.php

When uploading via assets the progress bar fades away and I receive and 200 response of

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

Paths and permissions are all (supposed to be) set up correctly. Any ideas?

Cheers


texts:
I want to exclude my site's tracking code(s) from my local development templates, but I've a hard time writing the conditional.

I am using an embedded template which contains the doctype, metadata and also has an embed for the css template.

Could you write a conditional within this embedded template which checks if there is a file (snipped or embedded template)  called "analysis"?


texts: ExpressionEngine website not caching on Cloudflare

texts:
I am having problems getting my ExpressionEngine website to cache on Cloudflare.

I am running:
- ExpressionEngine 2.11.7
- PHP 5.4 / MySQL 5.5
- IIS 7.0.

Let me run through steps I am taking:

On Cloudflare, I have the rule .domain.com/ to be cached i.e. everything is being cached.
After doing curl -I on https://www.domain.com/ I noticed the response was coming back with cf-cache-status: MISS. I then tried https://www.domain.com/page/ and I got the same response. /page/ is a template created inside ExpressionEngine.

If I create a test page https://www.domain.com/cachetest.php i.e. not ExpressionEngine, it caches that page absolutely fine. So it isn't an IIS configuration, and it isn't the web server, or otherwise I would expect that page not to cache.
my web.config file strips out index.php, which I thought might have caused the issue, but I have tried with and without that rule but still not working.
I have checked over my output caching in IIS and although caching is enabled, there are no rules. As a 'to be sure', I disabled caching to test again.

Am I missing something? Is there a setting that could be preventing Cloudflare to cache the website for some reason? I have no issues with Wordpress sites using Cloudflares cache, using the same settings.

Thanks in advance,

EDIT
I've just found this on the Cloudflares support page (https://support.cloudflare.com/hc/en-us/articles/202775670-How-Do-I-Tell-Cloudflare-What-to-Cache-):

  or if there is a cookie in the response, then Cloudflare will not cache the resource.

If I look at the response in Curl, well we see the exp_last_visit, exp_last_activity, exp_tracker, exp_csrf_token cookies in the response headers.

So does this mean we cannot use ExpressionEngine with Cloudflare?


texts: Conditional redirect after Freeform submission

texts:
I am having trouble with my form.
I have four questions and if any of them are NO, then I need the user to be directed to a "not eligible" type response.
However if all of the answers are YES, then I need the user to be directed to another form to complete a consent to participate.

There is a simple variable fix, but for the life of me I cant get it to function...help please!

{exp:freeform:form
    form_name="application_SANmeter_Eligibility"
    required="name|email|phone1|user_birthday|services|address_1|gender|language"

    // IF ALL ANSWERS ARE YES, THEN THIS IS WHERE I WANT THEM REDIRECTED
    return="http://www.xxxx.org/index.php/translational_research/digital_medicine/SANmeter_index/SANmeter_Consent/"

    // IF ANY ANSWER IS NO, THEN THIS IS WHERE I WANT THEM REDIRECTED
    return="http://www.xxxx.org/index.php/translational_research/digital_medicine/SANmeter_index/SANmeter_NotEligible/"

    notify="xxxx@xxxx.org"
    template="SANmeter_Eligibility_Response"
}


texts: Tag caching seems not to be reducing number of queries

texts:
I'm just applying some tag caching to templates on a client's site to improve performance (which isn't bad, but having no caching currently set could obviously be improved). I'm no expert at implementing caching in EE but I'm not seeing any reduction in database queries or in the memory used. So either I'm misunderstanding what I should be seeing, or I'm doing something wrong, or perhaps there is some setting that is preventing tag caching from taking place. (I'm aware of the disable_tag_caching config variable; mine is set to 'n').

Here's my testing process:

Add cache="yes" refresh="720" parameters to a template's channel:entries tag
turn on template debugger and output profiler via config variables
Clear caches from the CP
Load page template in front end, examine number of queries and memory used
Reload page template, compare queries and memory usage to [4]

I would expect there to be a difference in the reported number of queries and, perhaps, the memory used, between stages 4 and 5, since -- as I understand it -- the content of the channel:entries tag will be generated by database queries in stage 4 but ought to be taken directly from the cache in stage 5. But I'm seeing the exact same numbers from both stages.

This really isn't a high traffic site at the moment, so I don't want to go down the road of buying a third party cache add-on if I can help it. I'd much prefer, at this stage, to understand either what I'm doing wrong (or misunderstanding) or, if my process is correct, what might be interfering with it.

Does anybody have any advice?


texts: Conditional {if} and {if:else} Getting Error Message

texts:
I get an error message each time. "You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}." Stuck not sure what to do.

  {exp:channel:entries channel="{segment_1}"}
     {if banner}
     <img src="{banner}" alt="photo:{title}" class="margin-top-minus-20 img-responsive osd-border" />
     {/exp:channel:entries}
     {if:else}
      <!-- snippet-->
     {snp-banner-grid}{/if}


texts:
I have been looking for a way to sell EE entries.

I have come across Membrr, but I have seen quite a lot of negative feedback.

Does anyone know of any other modules that would allow this?


texts: How to make overlay popup work dynamically with entries?

texts:
I am using a pretty simple css overlay code to bring up a popup. It works fine by itself. But when I use it within Expressionengine tags to bring up the content of entries dynamically it shows the first entry only every time, instead of the content of the entry you click on.

How can I get the overlay to appear with the correct content each time you click on a title?

I am using the following code:

{exp:channel:entries channel="topic-content" category="5" limit="10"}

{title}

        X
        {overview}

{/exp:channel:entries}

The overlay popup comes up fine but only shows the results (the 'overview' field) from the first entry, no matter which entry ('title') you click on.

Below is the code for the overlay itself:


texts: Load data from "File System" rather than "Database"? Modify template file is not working

texts:
I am migrating an EE application to a new server. However, it shows the previous version. And if I modify the template file, it's not showing on the site.
Someone said it's because it's loaded from Database rather than File system. I tried to get rid of Database connection. Then it will show nothing.

Does anyone know what is wrong in this case? Thank you guys!


texts:
When submitting my form that stores my facebook id it is sent to the method save_settings(). No matter what I do I can't dump variables or echo them out to see what is being sent, so I think this is because it's not actually getting to the method for whatever reason. My form action params are:

index.php?S=32016fcb4a352c152f953d5a97d8efb6a290edfc&D=cp&&method=save_settings&method=save_settings

I'm wondering if having the double && is an issue. Here are my URL vars controlling this:

public function __construct()
    {
        $this->EE =& get_instance();
        $this->_base_url = BASE . AMP . 'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=facebook_photos';
        $this->EE->load->helper('text');
    }

And here is the form variable sent to the form

$data = array(
        'form_action' => $this->base_url . AMP . 'method=save_settings',
        'facebook_id' => $results->setting_value
    );

Thanks.


texts: og:description not pulling contents from meta

texts:
I am recently experiencing problems with metadata for Facebook and I was wondering if any other EE user has experienced the same.

In principle, the code should be fine and was actually working till not long ago. At some point it stopped doing so and FB scraps no content for og:description (and neither for meta:description for that matter). I thought it might have been aproblem with my descriptions starting with the  tag so I installed streeng and did this:

<meta property="og:type" content="article">
<meta property="og:title" content="{pages_title}">
<meta property="og:description" {exp:streeng allowed="none"}content="{pages_summary}"{/exp:streeng}>
{if picture}
<meta property="og:image" content="{picture}">
{if:else}
<meta property="og:image" content="http://www.ecfr.eu/page/-/logoxfb.png?v=1415186136948">
<meta property="og:url" content="{url_title_path='article'}">

but still no result. All other meta works.. any idea?


texts: Freemember email validation for specific domain using jQuery

texts:
I'm trying to verify a Freemember registration form email input using jQuery to check for a specific domain. Below is the jQuery I'm using, ultimately my goal is to prevent the form from being submitted unless they are an example.org email address.

      $(document).ready(function() {
      $('form#example-register input#register').submit(function() {

                $(".error").hide();
                var hasError = false;
                var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
                var emailLegalReg =  /^([\w-\.]+@(?!example.org)([\w-]+\.)+[\w-]{2,4})?$/;

                var emailaddressVal = $("input#email").val();
                if(emailaddressVal == '') {
                    $("input#email").after('Please enter your email address.');
                    hasError = true;
                } else if(!emailReg.test(emailaddressVal)) {
                    $("input#email").after('Enter a valid email address.');
                    hasError = true;
                } else if(emailLegalReg.test(emailaddressVal)) {
                    $("input#email").after('No eamil other than example.org.');
                    hasError = true;
                }

                if(hasError == true) { return false; }
                else {
                    $("input#email").after('');
                    return false;
                }
    });
});

Here is the template code for the Freemember registration form.

    {embed="included/html_head"}
    {embed="included/page_header"}

         {if logged_out}

Registration

Fill out the form below to register, once submitted your account will have to be approved the Administrator.

         {/if}

            {exp:freemember:register return="/example/" form_id="example-register" error_handling="inline" error_delimiters='|'}

                    Email
                    {field:email}
                    {error:email}You must register using an example.org email address.

                    Password
                    {field:password}
                    {error:password}

                    Confirm Password
                    {field:password_confirm}
                    {error:password_confirm}

                    <input type="submit" value="" class="register" />

            {/exp:freemember:register}

   {embed="included/page_footer"}
   {embed="included/html_footer"}


texts: Category links not working after category filter is used in channel

texts:
I have been trying to get the category links to filter properly on a news site.

Whenever I click on a category I'd like to filter, it still shows everything.

The filter worked before the restriction was implemented.

Below is the code (The area I need help with is where "entry-info" starts):

{exp:channel:entries channel="news" limit="11" orderby="date" sort="desc" paginate="both" category_group="1" category="33" show_empty="no"}
{exp:eehive_hacksaw words="110" allow="

" append="&nbsp;<a href={url_title_path='news/entry'} ...Read more"}

{title}

    {if sub_headline}{sub_headline}{/if}

    {news_body}

{/exp:eehive_hacksaw}

Date Posted: {entry_date format='%M %j%S %Y'} | Posted in: {categories backspace="2"}{category_name}{/categories}

Any help on this would be great. The site is set to go live next Friday and I'd like to fix this problem ASAP.

Thank you in advance!


texts: Zoo Visitor: confirm delete user account

texts:
In the 'member area' I have the ability for a user to delete their own user account, with a confirm password field.
Still, I would like to add an 'Are you sure?' Checkbox that is required.
Even better would be to have the user redirected to a confirmation page with an 'Are you sure?' button.
How would I accomplish this.

If I add rules:name_of_checkbox="required" to {exp:zoo_visitor:delete_form} it does not work.


texts:
I am currently using CartThrob for my ecommerce system. We sell educational products and services, therefore the physical items that we sell are taxable while the services are not. I have added the following to a package:

Study Book = $100.00 (taxable)
Exam and Application = $200.00 (non-taxable)

Package Price = $265.00

The problem I am having is that when I add the package to the store it taxes the total Package Price, rather than just the Study Book that is taxable. Is there anyway around this? The package option seemed like the ideal solution to my problem, but it's not working when it comes to taxes.


texts:
I have a Template Group set up as follows:

ask_us.group/index.html
ask_us.group/post.html

As you can possibly tell this is for a Blog type of area on a website. The index.html is supposed to list the latest posts, with pagination. The post.html is for an individual post. Pretty simple.

It all works as expected when using default URL's which go off the Template Group name, e.g.

http://domain.com/ask_us (index.html)
http://domain.com/ask_us/P2 (index.html, with pagination)
http://domain.com/ask_us/an-example-post (post.html)

I want to use the Template Routes so that "ask_us" is formatted "ask-us" (dash rather than underscore).

So I've taken a look at the documentation (which is awful, by the way) and can't for the life of me get this to work.

The routes I set up are as follows:

Template: ask_us/index.html
Route: /ask-us/{page:pagination}
Segments required: No

This gives a 404 error when going to http://domain.com/ask-us.

If I remove the /{page:pagination} bit so the route is just /ask-us it will load the index.html but break the pagination.

Why is this so damn complicated, and how can I fix it?

One solution you might say is just to rename "ask_us.group" to "ask-us.group" but I really don't see why I should use hacks like that just because the documentation is so poor.


texts: How to show category of entry within relationship field

texts:
How do I show the category of an entry within the native EE relationship field?

I've tried using this which doesn't seem to work. (EE v3.4.3)

{relationship_field:categories}
    {relationship_field:category_name}
{/relationship_field:categories}


texts: Solspace Freeform email notifications coming from "unknown sender"

texts:
I'm using Freeform 4.1.4 (the free version) w/ EE 2.8.1.

I have a form with a first name field ({name_first}), a last name field ({name_last}), and an email field ({email}) field, all of which are required. When I created the form's notification, I configured the "From Name" field to use "{name_first} {name_last}" and "From Email" to use "{email}".

In the past, this has always worked: the email notifications used the user-submitted values for the sender info.

However, on this site, the email notifications arrive but they come from "unknown sender" (according to Gmail). Everything else about the notifications is fine -- e.g., the message comes through intact -- but the sender info is missing.

On a whim, I tried hardcoding the notification's "From Name" and "From Email" fields so they weren't using user-submitted values, but that didn't fix anything. And I've checked the EE installation's email settings, which are the defaults (AFAIK). Nothing seems out of the ordinary there.

Am I missing something? Did something change in notifications with the new version of Freeform?


texts: Channel from. The action you have requested is invalid

texts:
I have a main site with mobile template group.

And I have a subdomain for mobile site and it will redirect to the mobile group template in main site.

But currently I am facing "The action you have requested is invalid.
" when form submit to main site url.

anyone know what the problem?


texts: mx_jumper contents not available outside channel:entries tag

texts:
I'm trying to set some mx_jumper content from within an {exp:channel:entries} tag, and then output it somewhere else on the page. The page is an entry page and available on a url such as:

 /blog/entry/the-blog-entry-url-title

I created a simple test page to eliminate anything that might interfere with the functionality, and the code looks as follows:

{exp:channel:entries channel="blog"}
    <h1>{title}</h1>
    {exp:mx_jumper:put name="test"}Move this content to outside the loop{/exp:mx_jumper:put}
{/exp:channel:entries}

{exp:mx_jumper:out name="test"}

The problem is, that the contents of the mx_jumper test content only shows up when the exp:mx_jumper:out tag is inside the {exp:channel:entries} loop.

Any ideas what could be wrong?


texts:
If I have channel tags in my template that look like this, is there an available hook to always run before the /exp:channel:entries?

I need to have something put at the bottom of every entry displayed without putting in a plugin tag into the template.

Is this at all possible?

{exp:channel:entries channel="news" limit="3" disable="categories|member_data|category_fields|pagination"}

//do plugin stuff here without loading the tag.
{/exp:channel:entries}


texts: Schedule emailing members - PM notification

texts:
Members can set to be notified (or not) when they receive a private message from another member. However, this email is sent immediately after the private message is sent.

Ideally, the email notification can be bundled and sent, say, once a day. And if the private message is already read before the email notification is sent, the no need to send email notification for that private message. Is this possible to configure in EE (or via addon)?


texts: channel entries loop doesn't display entries added by channel form when their status is closed

texts:
I made a channel form. In the CP I configured the "allow guests to submit entries" and choose a guest default user in the list. In the channel preferences I choose "closed" as default status for new entries.

When I post a new entry by channel form, it creates the entry (closed) by the author I set and I can see the newly created entry in the entries list in the CP. But... when I want to display the entries in a template

{exp:channel:entries channel="mychannel" status="open|closed" orderby="entry_date" sort="desc"}
{title}
{/exp:channel:entries}

the ones created by channel form don't show up.

I tried to create some new entries by the CP, in this case they show up in my entries loop in my template.

What am I missing?

EE version : 2.9.0


texts: Matrix field sorting/filtering in the frontend

texts:
Is there a proper way to do this?  Say I want to have a list of restaurants, and I want to filter them by city AND by type of restaurant.  Is this easily done?  I'm guessing it would have to be AJAX or something.

This would preferably be done using a SELECT field.

Thank you!


texts: Avoid duplicate entries tagged with multiple categories

texts:
Let's say I have entries tagged with multiples categories, for example category_id="1" and category_id="2".

Then when I do:

{exp:channel:entries channel="news" category="1" orderby="date" status="open"}
    {categories}
    {category_id}

{title}

    {/categories}
{/exp:channel:entries}

I get the following result:

1
My entry title
2
My entry title
1
Another entry
2
Another entry

Why is that? How can I avoid this? If I ask specifically for category_id="1" in my {exp:channel:entries} parameter, I should get only entries belonging to said category.

Thanks in advance for your help.

FYI: EE version is v2.7.2


texts:
I just installed the latest version of Charge on my 2.10.1 ExpressionEngine site and now I'm seeing the following error:

Parse error: syntax error, unexpected ')' in /wwwroot/system/expressionengine/third_party/charge/mcp.charge.php on line 800

Anyone else having this issue?


texts: Submit Video URL no longer working in Channel Videos

texts:
My clients site has been using Channel Videos module for a couple years. Recently the 'Submit Video URL' for YouTube has stopped working, you enter a URL click OK, but nothing happens. Searching for them by Keyword still works, and both functions still work for Vimeo. I have tried to update to the latest version (3.2.0A) as noticed in the Change Log it adds support for Youtube v3 API. (Which I figured could have been the problem) But when I try and update the module as described in the documentation I get a syntax error on the site –

  Parse error: syntax error, unexpected ':' in /home/sites/domain.com/public_html/system/expressionengine/third_party/channel_videos/ft.channel_videos.php on line 293

and have had to revert back to the previously installed version. Can anyone offer any help?
Thanks in advance.


texts: Remove query string from images in the file manager

texts:
this might sound silly but I can't find help in the documentation. When I upload images in the File Manager, their URL automatically gets a query string at the end, which I would like to remove. Do you know how to do that?

I'm running version 2.9.0,

what happens is that if I copy the link address of an image file from the file manager, the URL I get is something like this: http://www.ecfr.eu/page/-/Luxembourg.jpg?v=1483717036

having a query an version number that I'd like to remove as I'm not using any form of automatic image sizing


texts:
UPDATE

Looks like it's only related to the particular product page. I can add PRODUCT A to another related page. Taking a look at that next :)

#

I'm not sure what's happening here.

SCENARIO

I have Playa and Stash working together to give me the Categories that the related entries are located.

ISSUE

PRODUCT A is added and select a Category. NOTHING appears on that particular entry page

If I change the Category of an existing product then it changes the category that's displayed.

If I add a NEW category and link PRODUCT A to it nothing appears.

If I change an existing product to the NEW Category it shows up.

Does Stash do some weird caching or something?

Trying to get my head wrapped around this one!

Here's my code:

{exp:stash:set_list name="product_info" parse_tags="yes" parse_depth="2"}
    {exp:playa:parents channel="products_accessories" sort="asc" orderby="title" disable="members"}
        {stash:product_url}{url_title_path='/products/accessories/'}{/stash:product_url}
        {stash:product_title}{title}{/stash:product_title}
        {stash:product_part_number}{products_accessories_part_number}{/stash:product_part_number}
        {stash:product_image}{if products_accessories_images}
{products_accessories_images limit="1"}
{/products_accessories_images}

{/if}

        {if products_accessories_images ==''}
{products_accessories_images_old limit="1"}
{/products_accessories_images_old}

{/if}

        {/stash:product_image}
        {stash:product_content}{if products_accessories_content}{exp:eehive_hacksaw}{products_accessories_content}{/exp:eehive_hacksaw}{/if}{/stash:product_content}

        {!-- create an index for this product to match against --}
        {stash:categories}{categories}@{category_id}@{/categories}{/stash:categories}

        {categories}
            {exp:stash:append_list name="cat_accessories"}
                {stash:cat_id}{category_id}{/stash:cat_id}
                {stash:cat_name}{category_name}{/stash:cat_name}
            {/exp:stash:append_list}
        {/categories}
    {/exp:playa:parents}
{/exp:stash:set_list}

{!-- list unique categories only --}
{exp:stash:get_list name="cat_accessories" unique="cat_id" orderby="cat_name" sort="asc"}

                {cat_name}

{!-- list products that belong to this category --}

{exp:stash:get_list:nested name="product_info" match="#@{cat_id}@#" against="categories" orderby="product_title" sort="asc"}

                    {product_image}

{product_title}

{product_content}

Product Number: {product_part_number}

{/exp:stash:get_list:nested}

{/exp:stash:get_list}


texts: Custom add-on not appearing in Add-On Manager

texts:
I've created a barebones add-on directory structure, but ExpressionEngine will not list it. The only file that I've included, addon.setup.php, is defined as follows:

return array(
      'author' => 'h',
      'author_url' => 'j',
      'name' => 'name',
      'description' => 'desc',
      'version' => 'version',
      'namespace' => 'ns',
      'settings_exist' => false
);

While that is obviously junk, that is a well-formed array, providing EE with all the fields it is expecting. It is in the directory system/user/addons/wmd_cp. I have enabled debugging in admin.php, but no issues are being displayed.

At this point, I don't understand why EE will not acknowledge this add-on's existence. For what it is worth, I have other add-ons in the directory (some third party, some I have written myself) and they display correctly. I have also matched this folder's permissions and ownership with that of the working add-ons. EE's path settings are pointing at the correct directories.

I would appreciate any insight. What have I missed? Thanks.


texts: {filedir_X} tag not parsing in File field

texts:
I have a link to an uploaded PDF in my template but some of links seem to output a mystery {filedir_3} instead of the path to the upload folder.

So the following template code...

{if download_details}Download details &raquo;{/if}

outputs as...

Download details »

This seems to be occurring on new files and older uploaded files don't seem to be effected. I had a look at the database and the exp_files table doesn't show any obvious different between working and broken links. I upgraded to EE 2.4.0 recently, could this be the issue? I'm not using MSM and the files aren't being uploaded through RTE or wygwam, just through a file channel field.


texts: Stash embeds containing multiple nested plugins doesn't retrieve anything

texts:
I'm trying to do some stash embeds but when embeds contain nested plugins (so, more than one) he doesn't retrive any value.

{my_loop}{stash:embed name="my_total{count}" file_name="_stash:total_htva_stash" stash:collection_name="acompte{count}" process="inline" parse_stage="set"}{/my_loop}

My embed stash template :

{exp:mx_calc expression="round(({exp:tally:total collection='{stash:collection_name}' decimals='2'}*0.21),2)" parse="inward"}{calc_result}{/exp:mx_calc}

If I just put 1 plugin in the embed :

{exp:tally:total collection='{stash:collection_name}' decimals='2'}

the embed retrieve a sum (tally plugin is made to sum some numbers) but when I put tally into mx calculator (to do a math on the tally's sum) it doesn't work. When I made it in EE embed it works but I need stash embed to use the result as a variable in the host template.

I don't know if it is clear (english is not my mother tongue).


texts: "Invalid Conditional" error if relationship :count is 0 in conditional?

texts:
I'm getting an error if my relationship field does not have any related entries selected:

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

  Parser State: Invalid Condition: Not enough operands for operator ” >
  “.

The code throwing the error:

{if {select_testimonials:count} > 0} <--conditional open

      {select_testimonials} <--relationship field open

        {select_testimonials:testimonial} <--relationship:matrix field open

...stuff...

        {/select_testimonials:testimonial} <--relationship:matrix field close

      {/select_testimonials} <--relationship field close

{/if} <--conditional close

What I'm trying to do here is only show this if there are related entries selected (I don't want an empty div if not).

If the relationship filed does have entries selected, everything works as expected.

What would be causing this error?

I have also tried removing everything but the conditional, and I still get the error, like this:

{if {select_testimonials:count} > 0} <--conditional open

{/if} <--conditional close


texts: Javascript modals so slow when I parse EE content into them

texts:
I have a small simple site that is one index page with four popup modals. Everything works fine on the iphone until I try to parse EE content into them. This is the first bit of EE content I am pulling into the site:

                                                   {exp:channel:entries channel="about" disable="categories|member_data|pagination"}
                                                {about}
                                                {/exp:channel:entries}

Once i do this it slows down so much that the site is unusable on the iphone...

Whats going on? I am just pulling in text? Is it something to do with the way its loading? The modals are controlled by javascript.

When I load the content outside of the modals it loads quickly and is ok. The modals load okay on their on desktop only on iphone) - how can I fix this? I have enable caching, but its not doing anything....

This is not good! Please help!


texts:
I want to list a channel's entries by category. It's a kind of hybrid of using EE's category_archive tag but inside of exp:channel:entries. I have an ugly solution (shown here); it violates every DRY principle out there, but I don't know how to do it better.

The channel is a glorified list of links with explanation text and image.

The results I'd like to have:

Resource Page Title heading H1

Category A H2
Resource Link 1
Another Resource Link
And another

A different Category H2
Resource Link
Yet Another one
One more here

etc.

How the channel fields are set up:

{title} (obviously)

Channel fields
{resource_url_link} — Link to destination website
{resource_src_logo} — Destination website logo
{resource_rte_blurb} — Brief description of destination site

Note: {title_url} has no business in this channel. At all.

Option I considered but rejected:

Category Archive (link to EE Docs): Limited to only entry title and a path or entity akin to title_url, which will not work.

Ugly workable code/tags I'm using at the moment

(It is ugly, it violates DRY/Don't Repeat Yourself, but the total number of categories are limited so it's doable.)

For each category (see H2 tags), I hand-code category ID in the low_title item, and match that ID in the subsequent exp:channel:entries.

{exp:low_title:category category_id="7"}

    {exp:channel:entries channel="resources" disable="pagination|member_data|category_fields" category="7"}

{title}
{resource_rte_blurb}

    {/exp:channel:entries}

{exp:low_title:category category_id="10"}

    {exp:channel:entries channel="resources" disable="pagination|member_data|category_fields" category="10"}

{title}
{resource_rte_blurb}

    {/exp:channel:entries}

Do you know how I can do this better?