texts: Input Radio buttons are processed in Cartthrob only according to their position

texts:
I have a big doubt about Carttrob.

Here a simple form code:

 {exp:cartthrob:add_to_cart_form    allow_user_price="yes" return="{template_group}/view_cart"}

                    <input name="price" autocomplete="false"
                          type="number"placeholder="" />

                        15
                        <input type="radio" name="price" value="15" id="15"/>

                        30
                        <input  type="radio" name="price" value="30" id="30"/>

                        45
                        <input  type="radio" name="price" value="45" id="45"/>

                    <textarea placeholder="None" name="item_options[donation_note]" ></textarea>

                <button type="submit" class="button">Add to Cart</button>

    {/exp:cartthrob:add_to_cart_form}

if
is placed before the radio buttons block code <input type="radio" name="price" value="x" id="x"/>

it works fine, because in the In the mysite/donate/view_cart page,  appears:

but if  is placed after the block code <input type="radio" name="price" value="x" id="x"/>

here the simple form code modified, the input type number is placed after.

 {exp:cartthrob:add_to_cart_form    allow_user_price="yes" return="{template_group}/view_cart"}

                            15
                            <input type="radio" name="price" value="15" id="15"/>

                            30
                            <input  type="radio" name="price" value="30" id="30"/>

                            45
                            <input  type="radio" name="price" value="45" id="45"/>

                        <input name="price" autocomplete="false"
                              type="number"placeholder="" />

                        <textarea placeholder="None" name="item_options[donation_note]" ></textarea>

                    <button type="submit" class="button">Add to Cart</button>

        {/exp:cartthrob:add_to_cart_form}

The <input type="radio" name="price" value="x" id="x"/>  buttons are not processed,  In the mysite/donate/view_cart appears:

So the input radio buttons are not processed if they are placed before the input type="number. It appears R$0.00. Only the input type="number is processed, the radio buttons not.

Why the radio buttons are processed only if they are placed after the input type="number ? A process priority problem ?


texts:
I am trying to send email from ExpressionEngine using Amazon's Simple Email Service via SMTP and I can't get this working.

https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html provides direction on how to connect. I configured EE3 outgoing email in the following way:

Server Address: email-smtp.us-east-1.amazonaws.com
Server Port: 587 (I've also tried 25)
Username: [my AWS-provided SMTP user credential]
Password: [my AWS-provided SMTP user credential]
Connection Type: STARTTLS (I've also tried SSL and unencrypted)

I've tried all of the port/connection combinations that I can think of. Some of them throw a PHP fsockopen() error. Other times no error is thrown and FreeForm shows a successful submission screen, but SES never got the request to send a message.

What is the correct way to configure EE to work with SES?


texts:
How can I use a stash variable that has been stored up in the template as a value for an embed parameter further down?

{embed="template/_include" email="{exp:stash:get name="email"}"}

Obviously at the moment I am hitting some parse issues but I don't know how to rectify.


texts: How to change the font colour in EE cPanel?

texts:
How to change the font colour in EE cPanel ?
I never have taken to the idea using "Grey" text instead of Black text. It seems daft spending money to buy a large monitor, and then give the text a faded look ? I have copied the CP themes folder and renamed it as my custom scheme. But I am unable to see how to edit the font colour. In the CSS file some of the values are visible and can be changed. But, for example, 'subtext' shows a size etc, in the global css file, but no options for the colour.
Can anyone help on this ? I want to change all of the light grey text to Black
I am doing this on my localhost.


texts: how to redirect back 2 pages after add to cart in Cart Throb

texts:
I am trying to redirect a user back 2 pages after they add an item to the cart.

Is there any plugins or dynamic methods that would make this work?


texts:
Strange problem has just manifested out of nowhere (seemingly). Basically when trying to edit an existing or publish a new entry in the CP it redirects to a blank page and does not save.

No errors reported when debugging turned on and no errors in server log.

Not sure how to start troubleshooting this one. Any ideas?


texts:
I have an application being developed that will need some complex member permissions. There is one channel that has an ownership field with a text value that represent a particular department. There will be several hundred users in this system, and most of them should only be allowed to add and edit channel entries that belong to their department.

Adding a simple custom member field is a quick solution, but the problem is that their will be multiple users who need multi-department access (but not full access to all records) as well as some admins who can see all. The template conditionals and all that are easy enough, but this renders using custom member fields useless, and having 3-400 hundred member groups and juggling their permissions means hundreds of conditionals and growing as the member groups grow...

I know their is Zoo Visitor, but I don't know if that has the functionality I'm looking for. Basically I'd think I'd like something along the lines of "permissions tags" for members. Does anyone have this type of user-role control implemented and can suggest something? I've actually only been at EE for as long as I've been a member here (6-8 months), and haven't deployed a lot of popular addons. Thanks.


texts:
Can anyone confirm that in EE3 once a field has been created, you can't change the field type?

Ellis Lab, is this a feature yet to implemented, or data management perspective no longer a good idea?


texts:
I have version 3.0.6 of the Calendar installed on my local EE and on our production environment. On my local EE CP, I see the 'updates available' at the bottom of the Calendar settings with a description of three updates but on our production CP, I do not see 'updates available' at all. Does anyone know why this could be?

Thanks in advance for your help.


texts:
Hoping someone can help me with this problem. I have a list of channel entries that I am storing in a stash tag then outputting the complete list, but if there are no entries then it displays something else.

What I am hoping to do is if the total count of entries == 0 then display one thing, if the count == 1 then display something else and finally if the count is > 1 then display a third option to the viewer.

Here is the code that I currently have.

{exp:stash:set name="dynamic_adventure" trim="yes" parse_tags="yes" parse_depth="2"}
    {exp:channel:entries channel="adventure_settings" dynamic="no" author_id="CURRENT_USER"}

          {exp:switchee variable="{embed:adventure_name}" parse="inward"}

              {case value="{dynamic_adventure_template:title}"}

                    View Adventure

              {/case}
              {case value=""}

              {/case}
          {/exp:switchee}

    {/exp:channel:entries}
{/exp:stash:set}

{if {exp:stash:not_empty name="dynamic_adventure"} }

{embed:adventure_name}

        {exp:stash:get name="dynamic_adventure"}
{if:else}

{embed:adventure_name}

    Start New Adventure
{/if}

Any help is greatly appreciated.
Thanks


texts:
I've set up what I thought to be simple pagination links but when you click a link, it goes to an all blank/black page. Anyone ever experienced this?
Here is my code:

{exp:channel:entries channel="news" limit="4" dynamic="yes" paginate="bottom"}

{title}

      {news_date format="%F %j, %Y"}
      {news_source}

{news_summary}

      READ MORE &#62;

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

Thanks for the help!


texts: How can I specify a Primary Category in a Moblog submission?

texts:
The EE Moblog syntax allows you to set categories and multiple categories via a {category} tag pair in the email submitting your content.

That's fine unless you have Primary Category set for that channel. In that case, the content - although it's added to the channel by the Moblog module - won't render in a channel entries loop unless a Primary Category is set.

Is there a workaround (besides manually editing the channel entry)? Would Primary Category have to hook into Moblog submissions to identify a primary category tag for this to work seamlessly?

Thanks

Steve


texts: Cannot sent SMTP email after updating to EE 2.7.3 from 2.5.5

texts:
So i have EE sending SMTP mail via a remote server which was all working fine in EE 2.5.5 but now i have upgraded to 2.7.3 it's not having it at all!

The error i get is:

An Error Was Encountered
Unable to send email at this time.

220 brightmail.redacted.local ESMTP Symantec Messaging Gateway

hello: 250-brightmail.redacted.local says EHLO to 111.111.111.111:41353
250-ENHANCEDSTATUSCODES
250-SIZE 15728640
250-8BITMIME
250 PIPELINING
Failed to send AUTH LOGIN command. Error: 500 5.5.2 unrecognized command
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

I have got this stuff already configured:

$config['email_newline']    = "\r\n";
$config['email_crlf']       = "\r\n";

And nothing else i try has any effect.

Any help would be grand!


texts: How do you correctly display entry tags within a tagger:entries_quick loop?

texts:
I have a News landing page with Tagger tags displayed by each entry. You can filter the view with tags, but once the entries are displayed within the tagger:entries_quick loop, the tagger:tag_name variable is overridden by the tag that defines the loop.

That is to say, all the tags for each entry render as the tag we're filtering by, but the tagger:urlsafe_tagname is correct.

Example:

Output of the standard entries loop output:

Related tags for this post:
Tag 1
Tag 2

Output of the tagger:entries_quick loop, filtered by Tag 1:

Related tags for this post:
Tag 1
Tag 1

Hopefully I'm missing something? Is there a different variable for use within this loop?


texts: safecracker - how to specify who gets notified on form submission

texts: As the admin of my site, I currently get notified when someone submits an entry via safecracker, but is there a way to specify which other emails or users get notified on submission?


texts:
could not upload the file - server returned an unexpected response. please check the server settings

I have read every single post about Assets upload fails here (I think!), but sadly, nothing is working. My client is running EE 2.10.3 and Assets 2.6.

The paths are accurate and there is/isn't a trailing slash

I've synced the directories

I've updated her software and run module updates.

I've updated the indexes

I've made sure the htaccess is accurate and tried Brandon's fixes for index.php removal and all that stuff.

I've checked with the host and made sure the server requirements are met.

I've made sure the folder and subfolder permissions are correct.

I'm at my wit's end. But my client is launching a new book today and I can't get her images to upload and I've been researching this for weeks.

Does anyone else have any other ideas? This used to work until I upgraded her recently. (I even ran the upgrade again, in case there was some sort of hiccup.)

Help?


texts:
I've updated to Google Maps for EE version 3.3.1 and now I'm just getting a "Click to Activate" message in the channel entry.  I seem to remember having this problem before and it was due to a Javascript issue, but for the life of me, I can't remember how to fix it.

The existing maps are showing ok on the front end, I just can't update or add new ones.

Edit: I've updated to the latest version, 3.3.4, but issue remains.

Any help, much appreciated.
Thanks,

Link to image: http://i44.tinypic.com/14a8uo2.png


texts:
I have a channel with entries
Every entry have only one field for file upload.
How to add second/3-rd/4 etc.. file into entry without adding fields for new files?
May be anyone know module?


texts:
Hi there I am having issues upgrading from v2.5.3 to v2.9.3 the wizard starts fine and goes from 2.5.3 to 2.6.0, then moves onto the next step 2.7.0, but at this point I the server times out and I get the following message:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I have upgraded EE many times before, but not across the relationship change (from <2.6.0 to >2.7.0)... is this the issue? Surely it must be possible.

My install runs MSM and has Assets, Matrix and Playa installed along with some other add-ons. (all upgraded to the latest version) before running the wizard.

Hope you can help.

Edd


texts:
Is it possible to have an email auto-generated when an order is paid?

Our system currently allows customers to order and choose manual payment. Once the order is received and confirmed, we then allow them to pay for their order by visiting the /order/order_hash page.

Because the order was already received, it's not firing to a "new" status and we don't receive an email on payment.

Is there a way to send an email to user and admin when the order changes from "unpaid" to "paid"?


texts: Is there a way to use global templates in expression engine?

texts:
By default, each template in expression engine is an entire template. Is there a way to set a global template, and have each template be inserted as the content section of that template?

ie.
.template.php:

    {embed:currentpagecontent}

The only way I can think of doing it is to have common elements and embed them on every template - like so:

{embed:'.header.php'}
{embed:'.navbar.php'}

ipsum lorem

{embed:'.footer.php'}

it just seems messy having the same prefix and suffix on every template

(nb. this question sounds annoyingly confusing due the dual meaning of the word 'template' in expression engine!)


texts: EE v2.5.3 + SafeCracker Registration = Invalid activation request

texts:
I'm trying to create a SafeCracker form to register users (I'm using SafeCracker Registration). Registration form only has 3 fields:

email
password
password_confirm

When I enter all the fields and click submit, all seems to go well. I receive an email that says I need to activate my account. When I click the link, I am redirected to a page that says:

Error
Invalid activation request.

However, it seems like the registration process worked, though. I see my account in the member group id that I defined the in SafeCracker registration tag pair. Any ideas what's causing "Invalid activation request?"

Also, should I be seeing newly registered profiles immediately in the group member I defined? Or should it go to "Pending" first?

UPDATE 1:

If group_id parameter is not specified in the tag pair, registrants go from "Pending" prior to activating, then to "Members" after activating. No more "Invalid activation request" error.


texts:
How can I use Solspace Importer to recognize uploaded files (that are already available in the file manager)?

Possible ways:

Use the filename?
Use some file ID?
Use the files entry name?

I couldn't find anything about in the documentation.


texts:
I'm setting up an email contact form for a page, it's working fine for logged in users, but for non logged users, they get the message:

A valid sender email is required

I'm sure it's the {member_email} field that's causing it, it's obviously not picking up the field if your not logged in.  Does anybody know a way to use this form without the {member_email} field, or a way to fill this field for someone whos not logged in?

  {exp:email:contact_form user_recipients="no" replyto="yes" recipients="mark@emagine.ie" charset="utf-8"}

Register

            Your Name:

            <input type="text" name="required[]" size="40" />

            Institution/Organisation

            <input type="text" id="Institution" name="required[]" size="40" placeholder="institution/organisation" />

            Contact Number

            <input type="text" id="number" name="required[]" size="40" placeholder="contact number" />

        Email Address

        <input {if logged_in} value="{member_email}"{/if} {if logged_out} type="text" value=""{/if} id="from" name="from" size="40" />

            <input type="text" id="subject" name="subject" size="40" value="Contact Form" style="display:none;"/>
            <textarea type="hidden" id="message" name="message" rows="18" cols="40" placeholder="Register" style="display:none;">
                    Sent on:  {current_time format="%l %mF %Y"}
            </textarea>

            <input name="submit" type='submit' value='Register' />

{/exp:email:contact_form}


texts: Display a heading for a stash:get_list if there are more than X entries

texts:
I have a stash set list that's getting all the entries from a channel as follows;

{exp:stash:set_list name="items-{segment_2}" parse_tags="yes" parse_depth="3"}
    {exp:tag:related_entries
        channel="items"
        orderby="title"
        sort="asc"
    }
        {stash:item_id}{entry_id}{/stash:item_id}
        {stash:item_title}{title}{/stash:item_title}
        {stash:item_count}{count}{/stash:item_count}
    {/exp:tag:related_entries}
{/exp:stash:set_list}

I'm then using a get list as follows, first to get the first 3 items and then again to get all the rest in the "more_items" div;

Items View more

{exp:stash:get_list name="items-{segment_2}" limit="3"}
{item_title}
{/exp:stash:get_list}

{exp:stash:get_list name="items-{segment_2}" offset="3"}
{item_title}
{/exp:stash:get_list}

You'll notice I have a h1 that contains a link to View more. This has some JS to handle the reveal of the "more_items" div. However, i'd like to hide the View more link if there are only 3 or less items.

I have tried moving the heading inside the first list but because it is limited by 3 it can't figure out if there are more than 3 to show the link.

I would be grateful if anyone has any advice. :)


texts: Google Maps for EE stopped plotting markers for new entries in the control panel

texts:
I've just noticed that the Google Maps for ExpressionEngine fieldtype no longer seems to be plotting markers onto the map for new entries in the control panel. When I enter a location and search, nothing happens. It should plot a marker on the map. I have a few sites that use this add-on, and the same issue is happening on each of them.

Any ideas what's going wrong with this? I know the add-on is no longer supported, but if anyone has run into the same issue and knows a fix, please let me know. I suspect it might be a Google API change or even a call-back to the Objective HTML servers/services that is suddenly causing this issue.

I'm using ExpressionEngine 2.7.2 and Google Maps for EE 3.3.8.


texts: Primary Category display in EE2.6 Relationships loop

texts:
I can find no way of displaying any of the Primary Category tags within the new EE2.6 Relationships field loop.

It works fine with Playa fields.

Does anyone know if there is a way to display Primary Category tags within EE2.6 Relationship Child loops?


texts: Difference between Template Parsing Finished and Total Execution Time in Debugging

texts:
I'm having major performance issues and I'm trying to nail down the culprit. I'm on EE 2.7.1 with a number of add ons (All of P+T's, Structure, ect.) However, I'm getting pages loads in excess of 5 seconds or even more. While I was combing through the Debugging I noticed that while Template Parsing would say one number, the Total Execution Time would give another number, sometimes twice as long as the Template Parsing time.

Here is one example

(2.658272 / 43.45MB) Template Parsing Finished
Total Execution Time    5.4786

I must be misunderstanding something, but I would have thought those two to be very similar instead of so far apart. Suggestions?


texts: Why is Channel Images searching for images in the cache folder?

texts:
I cloned a site to overhaul it, meaning I copied over all files and databases, but following the instructions in the ExpressionEngine User Guide to upgrade (from 2.5.2 to 2.10.2) I cleared all caches.

I updated Channel Images to version 5.4.19, but when I try to regenerate images I get the following error (username and filename redacted):

A PHP Error was encountered

Severity: Warning

Message: copy(/home/<username>/public_html/dev/system/expressionengine/cache/channel_images/<filename>.jpg): failed to open stream: No such file or directory

Filename: local/local.php

Line Number: 111

Fatal error: Uncaught exception 'Exception' with message 'Image file not found: /home/<username>/public_html/dev/system/expressionengine/cache/channel_images/<filename>__small.jpg' in /home/<username>/public_html/dev/system/expressionengine/third_party/channel_images/libraries/PHPThumb/ThumbBase.inc.php:193 Stack trace: #0 /home/<username>/public_html/dev/system/expressionengine/third_party/channel_images/libraries/PHPThumb/ThumbBase.inc.php(172): ThumbBase->triggerError('Image file not ...') #1 /home/<username>/public_html/dev/system/expressionengine/third_party/channel_images/libraries/PHPThumb/ThumbBase.inc.php(110): ThumbBase->fileExistsAndReadable() #2 /home/<username>/public_html/dev/system/expressionengine/third_party/channel_images/libraries/PHPThumb/GdThumb.inc.php(96): ThumbBase->__construct('/home/<username>/...', false) #3 /home/<username>/public_html/dev/system/expressionengine/third_party/channel_images/libraries/PHPThumb/ThumbLib.inc.php(127): GdThumb->__construct('/home/<username>/...', Array, false) #4 /home/<username>/p in /home/<username>/public_html/dev/system/expressionengine/third_party/channel_images/libraries/PHPThumb/ThumbBase.inc.php on line 193

Why is it searching in the cache directory for the images? Shouldn't it just be searching for the original files in the /images/uploads directory? What are my options to resolve the issue?


texts: Insert Freeform entries to Channel Entries

texts:
I am setting up a form using FreeForm.  I would like user-submitted entries to be sent as a Channel Entry.  Is this possible?  I know that I can use the {exp:channel:form} tag to set this up, but I'd prefer having the backend features of Freeform.

I saw nothing about this in the documentation.

So here's a short demonstration on how I want this to work:

Freeform form > User submits form > Form is uploaded as a Channel Entry and marked as "Unpublished" > Admin changes status of channel entry and the entry is live on site.

Possible?  Thank you!


texts: Is there a way to automatically use images from entries with Campaigns?

texts:
I am using EE 2.10.1 and Campaigns 2.1.0a

Is there a way to automatically pull images from the entry being posted to FB, twitter, etc.?

For example, if I am using a Channel Images field in the entry, can I specify it to pull from that field?


texts:
It seems that mobile isn't compatible with CE Cache. Or the other way around. Can this be solved? When caching a page, you only see the desktop version of the template. The mobile template isn't loaded.

Thanks in advance!
Diederik.


texts:
We have EE 2.1.0.

One of our Super Admins actually had some WYSIWYG editor for the content in entries. I have never seen a WYSIWYG editor and I'm a Super Admin as well.

I don't see that we have any plugins or extensions installed.

The "Center Content" field in the entries shows as Wygwam type.
I'm also showing a Wygwam Field Type (v2.0.4) but it has no License Key entered. I know this has worked before. I don't want to uninstall it because it will remove all content with that field type and I've got TONS of it.

Why would she have that and now today, no longer has it?

BTW, for some reason, I can't post new topics on the EllisLab forums, did they "mothball" them?


texts: Freeform form on busy homepage kills the DB

texts:
just used freeform on a large ecommerce site in a dropdown header contact form. Shortly after we went live with it, it killed the db.

We are seeing:

  tail -5000000 /var/ | grep exp_freeform_fields | awk ' { print $1, $2, $3 } ' | cut -d: -f1,2 | sort | uniq -c

happen for every visit:

  1 Jun 10 11:38
  1 Jun 10 11:39
  5 Jun 10 11:40
  2 Jun 10 11:42
  1 Jun 10 11:43
  2 Jun 10 11:44
  3 Jun 10 11:45
  1 Jun 10 11:46
  2 Jun 10 11:47
  1 Jun 10 11:48
  1 Jun 10 11:50
  2 Jun 10 11:52

This seems to happen with every visit. Is this standard behavior?

Thanks,
Ian


texts: I am adding a blog, but I have to attend a meeting. How do I save the blog without actually publishing it to my website. I click on submit and it automatically is published. Thx


texts: How to hide events that is already past in Solspace Calendar

texts: I use Solspace Calendars for booking of a conference room. Since we do not need to see past bookings, is it possible to hide all past entries so the calendar in month view is not so cluttered. Thanks!


texts: freeform multipage reset some values from other pages

texts:
I have a multi-page form set up as following :

question 1 > question 2 > question 3 >

question 4 if answered yes > question 5
question 4 if answered no > question 6

All my questions have a return to last step button.

now my problem is that if someone answers yes on question 4, then answers question 5 and goes back to question 4 and set it to no and answers question 6
both values will be set. This is a problem for me since the the result page will depend on the answers on every question.

I have tried using the extension hooks, but every page only has the $_POST values of that given page.

Does anyone know a way to clear the value when another value is submitted.


texts: What EE_Table.php file is Testee add-on referring to?

texts: I've just copied the Testee files into the appropriate places in my EE installation. When I try to install the module from the control panel it complains that it can't find the file system/expressionengine/libraries/EE_Table.php. This file does not exist in that directory of my installation, what is it? Is it from an older / newer version of EE? (I am running 2.1.3).


texts: Character number limiter on Wygwam field

texts:
I've been using MD Character Count on a text field to force users to keep the size of a summary field short and concise. But I want to switch it to a Wygwam field so the method of adding links is the same as the Wygwam body field.
I've looked at Limitee as well but it doesn't do Wygwam fields.
I know I can limit the amount of text on output in the template but I need the author to now when they have hit the limit.


texts: "Closed" status pages urls still exist - How do I make these display the 404 page instead?

texts:
My client sometimes needs to set a page as "Closed", but the url still gets traffic, and the users will now see a broken template page.

I would like to redirect the user to a 404 page upon visiting a "Closed" page.

How would I go about doing this? I'm very unfamiliar with EE, but because this site was made years ago by an earlier employee, I must find a solution to this, even with my lack of experience.

This exact type of question was explained here - redirect_to_404_when_expressionengine_entry_has_closed_status

...but I couldn't manage to make any sense of it, with so many comments giving different solutions and fixes of their own, I was left confused, and while trying what the post explains, I've yet to get it to work, and I can't necessarily follow the steps correctly, since I don't know too much about how EE works.
This is a ExpressionEngine  v 1.7.0 site.

I have FTP access and Super Admin access.


texts: Navigation link structure: two templates, two channels, one category group?

texts:
I have a navigation/URL structure issue, and I haven't been able to find online exactly what I want to accomplish.

I have an "About" template and a "Staff" template - so different URL's for each template.
I have two Channels, one for each template, but have only ONE category group.

I've set up the navigation so that I have a drop-down under my "about" navigation item, which lists all of the categories - About, Mission, Staff, Facts.
All of the categories, except for Staff, will pull up on the "About" template.  I want "Staff," however, to direct to my staff template.  Is this possible?

What variable do I use to direct that one category to another template?

I have this code in my nav:

{exp:channel:categories category_group="1" style="linear" show_empty="no"}

{category_name}

            {/exp:channel:categories}


texts: Cannot change the template assigned to an entry item

texts:
I am working on a complex EE site (version 2.5.2) that I've been handed that has a large number of templates. I wish to customize the template for a specific entry. I have created a duplicate of the template that an entry item is using. I wish to change that template to accommodate a design change. The original template for that entry item is "index" and the new template is called "graduate-program" However, when I edit said entry item, and then use the "template" dropdown menu to change the template assignment to "graduate-program" and click "submit" the entry's template does not change. It remains the "index" template.
Any ideas on how to resolve this?
Update: more details:
The channel in question has 8 channel entries associated with it. I wish for one of the 8 entries to use a unique template.
Snippet from the currently-selected template. This allows me to confirm via view source which template EE is applying to the content:
{embed="common/_header"}

<!-- academics/index -->

{if segment_1 == "academics" && segment_2 !="" && segment_2 !="a"}
{if segment_2 != "" && segment_3 == ""}

The channel entries in question
The entry in question as output via the edit entry page, shows the wrong template as being the current selection. (had to remove external link to screenshot)
Finally, here is what I'd like to use for the template for said item:

Please let me know what other details I may provide for clarity.


texts: Solspace freeform: sending pre-generated token to user

texts:
I am trying to send an unique code when user submit their form.

Each unique code should send only once in order with each submission.

Any help would be appreciated.


texts:
Is there a way to sort Channel Entries by a Matrix field?

How would this work if date was a Matrix field?

{exp:channel:entries orderby="date" sort="desc" limit="10"}
        {title}

{/exp:channel:entries}


texts: Expresso Store - Order conformation email not sending

texts: We're using EE 2.9 and Expresso Store 2.3.1. We've set up an Order Conformation email template, but no matter what we put in the To or BCC fields, no email is sent to the client.  We can send email ok from Tools > Communicate and other emails from the site are sending ok.


texts: Add-on Manager checkboxes select more than one

texts:
Is this a feature or a bug?

I have a fresh install of EE 3.5.15 (and have noticed this on other installs, thus my test on the fresh version).  If I'm in the CMS on a page with checkboxes, such as the add-on manager.  I click one checkbox in the middle of the row and several above it are also activated.  It's not all above and it's not the same # of boxes above each time.  And after you uncheck everything you are then able to check just a single box if it happened to be included in the initial auto selection.


texts: Has Channel Image 6.0.3 been made available?

texts:
Hi there I just downloaded the latest version and uploaded but the version still says 6.0.2 and the bug persists. Images disappear after setting the cover image.

Many thanks


texts: Unable to delete only existing row in Matrix field with required columns in Channel Form

texts:
I'm using a channel form with inline errors containing matrix fields in EE 2.10.1 with Matrix 2.6.1

The matrix fields are set to have no rows initially & they have some required columns, but the fields themselves are not required.

I've realised that if you have a matrix field with one row & then delete that row, deleting doesn't work. The row does vanish on clicking delete, but when you submit the channel form you get errors for the required columns in the row which has reappeared.

Deleting rows within a multi row matrix does work (even the first row if there are multiple rows). It just seems to be deleting the one & only row left in a matrix field that doesn't work.

Any insights or help on this would be greatly appreciated thanks.


texts: Deleted Template Variables (created via Low Variables) keep reappearing

texts:
http://recordit.co/R8eImfvLyP

EE3 with Low Variables installed. I created a bunch of variables in both EE and Low Variables only to try to remove them. They are showing in the Template Variable area and Low Variables. When I delete them via the CP, or files they reappear and the files are recreated.

I've tried uninstalling the plugin and removing files, to removing files and uninstalling the plugin. Turning off LV save as files and sync options.


texts: I am using Structure Entries and trying to use hide from nav. This works well when I'm trying to hide an entry on ground level, but when I'm trying to hide a sub item the whole menu collapses. I'm not doing anything weird and just copied the 4th example.


texts: Store {price} field without the currency?

texts:
in exp:resso store, is it possible to display the {price} field without the currency symbol in certain situations? e.g. {raw_price}

I want to calculate alternative currencies with a currency converter. obviously currency converters only accepts integers without currency symbols...

cheers
stefan


texts:
When trying to add an image the following problems occur:

EE v2.5.0.
Matrix 2.2.2.1

Select '+ Add Image' the File Manager opens correctly, but the navigation is broken, and 'Show files as' seems to have no effect. The error when trying to navigate to a previous page of images is:
'C=content_publish&M=filemanager_actions&action=directory_contents&tbl_offset=15'

So I upgraded EE and Matrix:

EE v2.5.4.
Matrix 2.5.4

But when I select '+ Add Image' nothing happens.

I think I have pinned the problem down to the Themes/third_party/matrix/ directory, as if I change this directory back to its old version, 2.2.2.1, File Manager opens but I get the original problem with navigation.


texts: Convert a row's site_pages cell (inside exp_sites) into a key-value array

texts:
For the purpose of using PHP to automate the creation of custom URLs that will be placed in the Pages Module, I'm first retrieving and decoding the whole block of encoded, serialized data in the exp_sites table and the site_pages column.

All is well when fetching the string from the site_pages column and assigning it to a variable like $decode_this_string.

All is again well when I get the list of URLs with PHP like so:

$site_pages = unserialize(base64_decode($decode_this_string));
$the_uris = $site_pages[1]["uris"];

When I var_dump $the_uris, I get output that looks like this, where I see string length, the page_uri, and the associated entry ID for each.

array(236) { [23]=> string(13) "/tools/index/" [36]=> string(8) "/voting/" [48]=> string(13) "/links/index/" [100]=> string(19) "/supporters/thanks/" [119]=> string(15) "/cancel/return/" [222]=> string(10) "/pressroom" ...

That's normal. But what I'd like to do is plunk this into a two-dimensional array where I can manipulate the Pages entries as rows (and can then sort them, search through them, add to them, delete them).

However, I'm confused how to break the rows down further. I can loop through them this way:

<?php foreach ($the_uris as $uri): ?>
    echo '
' . $uri . '
';
<?php endforeach; ?>

...but this way, all I can seem to output is the page_uri, not the entry associated with the page_uri. This is the output from the code above.

/tools/index
/voting/
/links/index

etc. In other words, I don't know how to break the row $uri into its related key and value (or "pair" of entry_id and page_uri, if that's a better way of describing it).

Is there a way to do this, so I can grab the entry_id along with the page_uri?


texts: ee4 Save and close redirecting to /admin.php?/cp/addons/settings/structure/index

texts:
Just one of my channels is misbehaving.  When editing a channel entry and clicking on "Save & Close" it redirects me to /admin.php?/cp/addons/settings/structure/index

I do not have an admin.php on the site, I renamed it.
What is causing this one channel to behave like this?  Is there anywhere I should look to check the settings or the like?


texts: Cartthrob Show Conditional Text/HTML Code Based on Coupon Code?

texts:
Is it possible to show conditional HTML code or text based on the coupon code that has been entered?

This works fine if there is a coupon code:

{exp:cartthrob:coupon_info}

"{coupon_code}" has been applied  remove coupon code?

{/exp:cartthrob:coupon_info}

But say I want to add a class to an item or change some text:

No coupon code:

Subtotal {exp:cartthrob:cart_subtotal}

Shipping {exp:cartthrob:cart_shipping}

Discount {exp:cartthrob:cart_discount}

Total {exp:cartthrob:cart_total}

Coupon code == cash:

Subtotal {exp:cartthrob:cart_subtotal}

Discount {exp:cartthrob:cart_discount}

Cash {exp:cartthrob:cart_total}

I've tried a few things and can get them to work when there is a coupon code but not when the coupon code if empty.


texts: Using Low Search with a custom date range

texts:
I'm trying to add 2 text fields in Low Search for users to select a beginning and end date for an event search. I'm basing my events off of entry_date instead of a custom field (though I could run a custom field if it's easier).

    From
    <input type="text" class="datepicker" placeholder="From" name="start_on">

    To
    <input type="text" class="datepicker" placeholder="To" name="stop_before">

When I enter my dates (currenty being returned in YYYY-MM-DD format, search results return nothing. I'm feeling a bit lost on how to get low search to read my start_on and stop_before limits.


texts: How to stop EE Sending "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"

texts:
Full Story:

I'm backing an HTML application with expression engine, using the wonderfully unreliable appcache tech. It works in firefox and chrome, but not IE and i've nailed (using charles proxy debugger) it down to the fact that IE is refusing to cache the page because it has the above cache-control headers.

So, I need to stop that happening.  Of course, there is a setting in EE:

Admin > Output & Debugging > Generate HTTP Page Headers?

But changing that has no effect.

I have tried using meta tags for cache-control, but of course, that is no longer valid html, and it would have no effect, anyway (despite knowing this, i did try it, and it did have no effect).

I am certain it is EE causing it, since opening /index.php in the root and doing the following results in the correct headers (though, obviously, no markup).

header("Cache-Control:public");
die();

If i leave the above header line in place, the incorrect headers are being sent, conclusion being that EE is sending its own headers, after I'm sending that one, meaning it is being overwritten.

I've found declaration in EE_Output.php, but this isn't where the headers are being sent for templates.

So, I need to find where they are being sent... and I can't seem to find anywhere obvious - which is obviously irritating.

If you guys can offer any assistance, that'd be really useful.


texts: Ensure a product is always in a CartThrob cart?

texts:
I have a site with a CT store with 1 product.  The customer never adds it to their cart, that happens automatically on the page that links them to the cart, using the following tags:

{exp:cartthrob:clear_cart}
{exp:cartthrob:add_to_cart entry_id="xxx" quantity="1" no_tax="yes"}

This code generally ensures that this will be the only item in the cart.  The problem is that customers, by putting in the url for the checkout manually, can get past this page on occasion and end up on the checkout page with an empty cart.  That should never happen with this site.

I get what the original developers of this site were doing with the above code, and it's 99% reliable, but I'd like to be 100% sure that when a user reaches my checkout page they have this item in their cart exactly once.

Ideas?


texts: How to upload photo, edit it with Aviary and then submit through a front-end form?

texts:
I'm not an experienced user and would like to make something complicated: I'd like to use aviary editor to edit photo's on form submit. I need a form where user's can upload their image, edit it with aviary and submit it. Aviary provides a temporary link to the new edited image, I want this edited image to not be sent to the server until the whole form is submitted. How should i go about doing this?

I had hoped to pass the url into the input file path.

How can i do it?

should be something similar to http://freeonlinephotoeditor.org with submit instead download

Thanks


texts:
I have constructed a real estate site that has a channel containing property entries, each of which have several channel fields, such as price, number of bedrooms, year built, location (state), property id, etc..

It is my objective to create a search form where the user can perform a search to locate properties. The form will have inputs where the user can select an number of parameters such as a price range, minimum number of bedrooms, a state. When they click the submit button, the resulting page will list properties that meet the user's search criteria.

EE's core search seems VERY limited in that it can only search entry metadata like titles, authors or date published. To accomplish my search requirement, I might need to invest in something like Solespace Super Search. I don't have a problem with that but I would like to know if anybody has constructed anything similar with Super Search or Low Search or something else. I have not used these add-ons and cannot determine from the documentation of it possible. It seems so but I would like to hear from someone who has done something similar. I also know there is a free plugin called Search Fields, but is appears limited in what it can do.

I'm also looking at implementing an EE exp:query. I have not used query before and wonder if it can perform the operation I want. I've created db queries using CodeIgniter and wonder if this sort of database query is possible within EE.

Thanks for any suggestions.

I have tried using the EE Search but I don't see any way to limit a search to only one field.

{exp:search:simple_form channel="news" search_in="entries"}

 Search:

 <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">

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

{/exp:search:simple_form}

This will search channel fields that have been designated searchable, however there seems no way to limit the search to a specific field, for example price over or between.


texts:
I've tried both of the below and category 18 is still being outputted in the category list.

Version 1

{exp:channel:categories category_group="1" category="not 18"}
{category_name}
{/exp:channel:categories}

Version 2

{exp:channel:categories channel="{product_channel}" category_group="1" category="not 18"}
        {category_name}
{/exp:channel:categories}

Strange thing is it was working previously.


texts:
I recently installed 'Assets' by Pixel & Tonic for a client that has multiple member groups with access to the control panel. Each member group has varying permissions level. The install went fine, but as I was writing up the instructions for one of the members group, I switch my control panel access to a user within that group, 'writers' and notice that none of the images display in the Assets field.

Here is the field, a mini-photo-gallery, viewed as a super-admin

This is the same field, same record, viewed as a writer

I've adjusted the setting under the 'Writers' group, so that they now have access to the Assets Module (which I'm not certain is required), but they still can't view the added images, except on the front-end.

This seems to be directly related to permissions, but I can't seem to find what permissions are stopping a writer from viewing content that's obviously in the record. Especially, when they can add new items to the record.

So my question is, where should I go to look for other permissions that maybe interfering with the display of the images? We need all the groups that have access to the field_type, to be able to see what data has already been added to it, so that they don't re-add or can just verify that the correct photos have been added.

I've not had to deal with this in other installs of Assets, because generally there is just SuperAdmins and one member group level, like 'staff' who have access to the control panel.

Updated: The site is running ExpressionEngine 2.5.3, Build Date: 20120911 and Assets 1.2.2.


texts: Cartthrob 3 : notification email sent is blank when order as a guest is made

texts:
I made my tests of order frequently (connected as super-admin) and everything was fine with the notification emails when an order was placed (email sent to the customer and email sent to the admin).

I disconnected from CP, to check really as a guest and then the email notiications (both admin and customer) arrived completely blank...

What I am missing?

Thanks in advance for your help.

Cartthrob version : 3.0.2
EE version : 3.4.3


texts: CartThrob Customer Subscription Date Changes

texts:
CartThrob's site demos and screenshots, unfortunately, don't go into much detail, so I'm turning to this for some answers.

Is it possible in CT to update the subscription renewal date on a customer's order after the fact?


texts: {structure:page_uri_for:X} and parse order

texts:
I need to send a page URL as a parameter into a plugin. So I have a global var called lv_shop_page (early parsing) which is an entry ID to a page which I'm passing to structure's {structure:page_uri_for:X} function. When I just output {structure:page_uri_for:{lv_shop_page}} it comes out with the proper URL but when I put this into the parameter of a plugin like so:

{exp:someplugin
parse="inward"
page="{structure:page_uri_for:{lv_shop_page}}/blah/blah"}

I get

{structure:page_uri_for:470}/blah/blah

I know this is a parse order problem, is there any way round this so I can make {structure:page_uri_for:X} parse earlier than my plugin? Or maybe another workaround using stash or embeds?


texts:
I have a EE site that has 62k entries. It's a directory site using open data sets. We are expanding to more countries and we expect at least 500k entries to be added in the next year and 400k plus on 2017.

I've being working with EE for years now. I read already this, and this (Looks like zocalo newspaper has 1M entries or so).

In your opinion; What's the best approch for that # of entries, categories and channels?

Setup 1

One EE install. We have 10 countries. Each country has between 20-50 channels. Each channel has 30-600 categories. Each country shares a unique custom field group between all channels with about 60 custom fields. Potential entries: 1M.
What about using a SQL Cloud service like google or rackspace? that will help?

Setup 2

We have 10 different EE installs in different directories in same domain (domain.com/es, domain.com/de, etc). Problems: not sharing templates, not sharing user credentials, etc. Potential entries: 100k per EE install.

Setup 3

Will MSM help? Why? As far as i know; all the information will be at the same db as in setup 1, am I wrong? Is it possible to define each msm license to a directory, or only to a different domain or subdomain?

Thanks in advance,

Sorry for my english; it's not my primary language.


texts:
This is my first time using ExpressionEngine to allow users to log into the front end interface and see different content. The login aspect is working fine... but I can't seem to be able to log out!

Some details:

EE 2.6
CE Cache (using database caching, with the salient parts escaped, and turned off in the config file anyway as I'm not yet in production, so this should not be causing a conflict)
Objective HTML's Authenticate plugin
Security setting "User Session Type" set to "Cookies only". When setting it to "Session only" I cannot seem to log in at all!

I've tried using both {exp:authenticate:logout} and {path='logout'} (both rendering ?ACT=8, which I've confirmed in the database calls Member class method member_logout) but using either link does not seem to actually log the user out.

I've tried disabling the Authenticate extension and running the same ACT?ID=8, and though I get EE's "You are now logged out." screen, when I return I am stilled logged in and can still see logged in material.

Clearing local cache has no effect.

The only action that seems to get the user out is to go into my cookies and delete the exp_sessionid cookie.

Any suggestions/pointers/leads to follow are welcome.


texts:
I feel like I have seen a solution to my issue in the EE docs before, but now I can't find what I'm looking for. I would like to exclude some information from repeating inside of a channel entries loop, i.e. the header of the section. the reason for this is because i would like to display a different header-type depending on the amount of information that's returned (therefore, I can't just put the header outside of the loop).

In this example, I'd like Upcoming Events to appear only once, but i'd like the ul div to repeat:

{exp:channel:entries  site="default_site" channel="events" sort="asc" limit="8"}
    {if total_results == "7"}

UPCOMING EVENTS

    {if:else}

UPCOMING EVENTS

    {/if}

{event_short_name}

{/exp:channel:entries}


texts:
Im trying to set up this php code in EE3

<?php
$year = $this->EE->localize->format_date("%Y", $this->EE->localize->now);
?>

How would I write it to be EE3 compatible?


texts: issue with pagination being picked up by conditional

texts:
I have some code that creates my breadcrumbs and it uses this conditional:

{if segment_1 == "media" && segment_2 != "media-view" && segment_2 != ""}

Media

{title}

{/if}

The problem is that now there are enough media files to have multiple pages, and the pagination becomes segment_2, so it's no longer blank.  So now the page is broken because its trying to put in a bunch of junk for the breadcrumbs.

How do you match against pagination?  Is there a wildcard character so I could say something like the following?

{if segment_2 == "P%"}

It's been a while since I used EE and I can't seem to find the answer.  thanks in advance for your help.


texts: Why can't Simple Search find any results?

texts:
I have used Simple Search many times on many sites, but for some reason on this one, I am not getting any results when I know the keywords are there.

http://192.196.159.46/membership/business-search

Here is the code I am using:

{exp:search:simple_form channel="member_profiles" search_in="entries" result_page="/membership/business-keyword-results" where="any"}
Search:

<input type="text" name="keywords" id="keywords" value="" size="30" maxlength="100" placeholder="keywords">
<input type="submit" value="Search" class="submit">
{/exp:search:simple_form}

Is there something simple I am overlooking? I would even settle for something complex.

Thanks.


texts: Solspace freeform "form expired" under EE 2.8

texts:
I'm having problems with a freeform form since upgrading to EE2.8. It keeps giving the following error on submit

This form has expired. Please refresh and try again.

Template caching is off.

Running freeform 4.1.3

{exp:freeform:form
    form_name="contact_form"
    return="contact_us/thank_you
}

Name:

<input type="text" name="name" />

Email:

<input type="text" name="email" />

Questions or Comments:

<textarea name="comment" rows="6" ></textarea>

<input type="submit" name="submit" value="Send It" class="button" />

{/exp:freeform:form}


texts:
Field Pack - Dropdown does it work with channel:form?

I can't make it work! I need to use both "name : label"


texts: Assets: Unable to Upload Large Files to S3

texts:
I'm trying to upload a 43MB .mp4 video file to S3 using Assets. The progress bar will run all the way to the end (it takes about a minute), then I'll get an alert that says "Undefined", and the console will show an error:

Failed to load resource: the server responded with a status of 500
(Internal Server Error) - https://mydomain.com/?folder=478&ACT=161&qqfile=my-video-file.mp4

My php post_max_size and upload_max_filesize are both set to 256M
My system/expressionengine/cache directory and all sub-directories have 777 permissions
EE 2.6.1
Assets 2.1.4


texts: Why is my FoxyCart Datafeed getting a different POST than it should?

texts:
When comparing FoxyCart's Transaction Datafeed's raw POSTs to any other web service, EE's reception seems totally different.

What is going on?

I am using the latest version of EE as of this writing, 2.8.1.


texts: Autofill relationship field with no user input required

texts:
I have a channel called projects and a channel called project_update.

I'm using a reverse relationship to link project updates to a project. This allows the user to post a project update to a specific project.

The project page has a safecracker form at the bottom to allow them to post a project update to that project.

The problem I have is currently the user needs to select from a dropdown list which project he wants to post the update to. Instead of giving him the option I need it to look at the project he's currently in and automatically fill the relationship field with this project.

I heard that Playa has an autocomplete features but this looks like a search box that autocompletes as you type. This is no good to me.

Was wondering if anybody has any solutions to this.

This is the code I currently have, it lists all the projects owned by the member but I need it to list only the current project.

 {exp:safecracker channel="project_update" include_jquery="no" return="projects"}

 Update the following Project
<select name="relationshiplink" id="relationshiplink">
{exp:query sql="SELECT entry_id AS rel_entry_id, title AS rel_title, (SELECT rel_child_id FROM exp_relationships WHERE rel_id = '{relationshiplink}' LIMIT 1) AS rel_child_id FROM exp_channel_titles WHERE channel_id =1 AND author_id = <?php echo $this->EE->session->userdata('member_id'); ?>"}
        <option value="{rel_entry_id}"{if rel_child_id == rel_entry_id} selected="selected"{/if}>{rel_title}</option>
{/exp:query}
</select>

  {/exp:safecracker}


texts: Cartthrob multi-region/multi-class tax being incorrectly calculated

texts:
I've got a weird problem regarding the application of tax when checking out on a Cartthrob site.

The site sells Books and DVDs. Books are zero-rated and so don't have any tax applied. DVDs are charged with 20% VAT.

Everything works fine until you try to checkout with both a taxable and a non-taxable item in your basket (let's say 1 book and 1 DVD). This is where it gets odd.

If you added the book first (or at least it's the first item in the basket) then VAT is calculated correctly and you are only charged VAT on the DVD.

If you added the DVD first, the checkout total is calculated incorrectly. VAT is applied to both items.

The site is using a multi-class tax plugin that doesn't appear to be in the default Cartthrob distribution but was supplied by Chris from Barrett Newton. I'm guessing that this is where the problem lies but I have so far been unable to fix it.

Has anyone else seen this problem and have a way to fix it?

UPDATE

I have just noticed that the Cartthrob Multi-Location extension wasn't enabled which I guess could be the cause of the problem.

However when I try to enable it I get the following PHP Notice and Fatal error.
The Extensions list will then no longer display.

  A PHP Error was encountered Severity: Notice

  Message: Undefined property: EE_Loader::$table

  Filename: addons/extensions.php

  Line Number: 24

  Fatal error: Call to a member function set_heading()
  on a non-object in
  /testsite/public_html/eesystem/expressionengine/views/addons/extensions.php
  on line 24

UPDATE 2

I spent a bit of time studying the tax_by_class plugin last night and have concluded that it is fundamentally flawed.

Forgive my non-technicality here...

This is the method concerned

public function get_tax($price)
    {

$args = func_get_args();
if (count($args) > 1 && isset($args[1]) && is_object($args[1]))
{
    $item = $args[1];

    $prefix = ($this->core->store->config('tax_use_shipping_address')) ? 'shipping_' : '';

    foreach ($this->plugin_settings('tax_settings', array()) as $tax_data)
    {
        if ($this->core->cart->customer_info($prefix.'country_code') && $tax_data['country'] == $this->core->cart->customer_info($prefix.'country_code') && $item->item_options('tax_class') == $tax_data['tax_class'])
        {
            $this->tax_data = $tax_data;
            return $this->core->round($price * $this->tax_rate());
        }
        elseif (isset($tax_data['tax_class']) && $tax_data['tax_class'] == "GLOBAL")
        {
            // this doesn't account for 2 global classes
            $this->tax_data = $tax_data;
            return $this->core->round($price * $this->tax_rate());
        }
    }
}

    return $this->core->round($price * $this->tax_rate());
}

The problem, I think, is that $args[1] bit. This is an absolutely huge object (too large to output to the browser without it crashing). The method then gets all the applicable tax classes from that object. However it seems to grab far more than it needs. For instance, with 2 items in the cart it comes up with 2 tax classes repeated 20 or more times.

The way the tax class is then applied effectively only applies the last one pulled out of the object.

It seemed more sensible to me to grab the cart_items object (http://cartthrob.com/docs/developers/tax_plugins/#cart_items) and loop through it but this too yields the same huge object and I have had no luck getting it to work.


texts: Display only unique values from a Matrix column

texts:
Am trying to display only unique values from a matrix column

Is it possible with using the Query module?


texts: Parse error: syntax error, unexpected '='?

texts:
Parse error: syntax error, unexpected '=' in /var/somepath.../../ee/system/expressionengine/libraries/Functions.php(679) : eval()'d code on line 3

I get this error if I embed a a template.

I tried exit(0) at all the partitions below ,but it still gives me the same error.I tried exiting at the first line too,but I face the same problem.The code works only when the embed is removed.My php stage is output.

{embed="includes/constants"}

ini_set('error_reporting', E_ALL |  E_STRICT);
error_reporting(E_ALL | E_STRICT);
ini_set('log_errors',TRUE);
ini_set('display_errors',FALSE);
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING);
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
//True modified date - sent to header
$last_modified = gmdate('D, d M Y H:i:s T', getlastmod());
$SERVER_ROOT = '/var/www/projects/tensports/htdocs/tsport/';

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: $last_modified GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

date_default_timezone_set('Asia/Kolkata');
define("BASE_URL", "http://www.tensports.com/");

//include_once $SERVER_ROOT.'/include/cookie.php';
include_once $SERVER_ROOT.'/classes/DB.class.php';

//for all the constant variables
$STATIC_URL = 'http://www.tensports.com/';
$MOB_STATIC_URL = 'http://www.tensports.com/mobile';
$PRE_LAUNCH_URL = '';
$COOKIE_DOMAIN_PATH = '.tensports.com';
$SOURCE_COOKIE_NAME = 'tensports_source';
$APPLICATION_ROOT = '/var/www/projects/tensports/htdocs/tsport';
$from_status = array("Sent","Not Accepted","From Accepted","From Rejected");
$to_status = array("Not Responded","To Accepted","To Rejected");

//$DEFAULT_PIC = $CDN_URL."images/profile-pic-def.jpg";
//session_start();

include_once $SERVER_ROOT.'/include/social_plugins.php';
//------------------------------------------------------------------------------------------------
include_once $_SERVER['DOCUMENT_ROOT'].'/include/constants.php';
//include_once $SERVER_ROOT.'/config/country-redirect.php';
include_once $SERVER_ROOT.'/classes/Main.class.php';

ob_start();
define("PAGE_LIMIT", 10);
$host = "10.0.202.144";
$user = "tensports"; //"stensportsadmin";
$pwd  = "fd48a6aac21cfe4555f44e0e68daf805"; //"r7QMB$#ZnCV&mG";
$db   = "tensports"; //"staging_tensports_db";
$country = "";
$mysql = new DB();//DB Class

try{

    $mysql->Connect($host, $user, $pwd, $db);
}catch( Exception $e){
    print($e);
}

error_log($mysql->Connect($host, $user, $pwd, $db));
$main = new Main($mysql);//Main class
$currDate       =   date('Y-m-d');
$currDateTime   =   date('Y-m-d H:i:s');
$currTime       =   date('g:i A');


texts: How to duplicate entries in ExpressionEngine 4?

texts: Usual options like MX_Cloner seem to have no v4 option. Anyone know of one? Tbh this should are basic functionality by the 4th version now.


texts:
Overview:

current time 10:00PM
event_start_date - is a date field
trying to display all entries from today and all future entries
i understand >={current_time} includes the time as well but start_on='today' doesn't seem to include entirety of today

Issue:

It excludes entries that are past the current time and doesn't
how do you include all entries from the start of today.

List

2016-02-08
2016-03-01
2016-03-29
2016-05-02
2016-05-15
2016-05-17 (9:50 PM)
2016-05-18
2016-05-18
2016-05-30
2016-09-12
2016-10-24
2016-11-01
2016-12-06

Code:

{exp:channel:entries channel="events" search:event_start_date=">={current_time}"
    {event_start_date format='%Y-%m-%d'}
{/exp:channel:entries}


texts: EE3 Multiple database settings without core 'hack'

texts:
SO I am trying to build out a master config file to use with deployment similar to that in EE2 for EE3. In the include, I have the following:

$config['database'] = array (
    'expressionengine' => array (
        'hostname' => 'localhost',
        'username' => 'local-UN',
        'password' => 'local-pw',
        'database' => 'local-db',
        'dbdriver' => 'mysqli',
        'dbprefix' => 'exp_',
        'pconnect' => FALSE
    ),
    'localhost' => array (
        'hostname' => 'localhost',
        'username' => 'local-UN',
        'password' => 'local-pw',
        'database' => 'local-db',
        'dbdriver' => 'mysqli',
        'dbprefix' => 'exp_',
        'pconnect' => FALSE
    ),
    'production' => array (
        'hostname' => 'external-server',
        'username' => 'ext-UN',
        'password' => 'ext-pw',
        'database' => 'ext-db',
        'dbdriver' => 'mysqli',
        'dbprefix' => 'exp_',
        'pconnect' => FALSE
    )
);

The reason I left the 'expressionengine' database in there is because of the call for it in DBConfig.php which I'll show in a moment. I know the databases are being populated because when I output print_r(ee()->config->config); I get the database array as this:

[cache_driver] => file
[database] => Array
    (
        [expressionengine] => Array
            (
                [hostname] => localhost
                [username] => local-UN
                [password] => local-pw
                [database] => local-db
                [dbdriver] => mysqli
                [dbprefix] => exp_
                [pconnect] =>
            )

        [localhost] => Array
            (
                [hostname] => localhost
                [username] => local-UN
                [password] => local-pw
                [database] => local-db
                [dbdriver] => mysqli
                [dbprefix] => exp_
                [pconnect] =>
            )

        [production] => Array
            (
                [hostname] => external-server
                [username] => ext-UN
                [password] => ext-pw
                [database] => ext-db
                [dbdriver] => mysqli
                [dbprefix] => exp_
                [pconnect] =>
            )

    )

[db_port] =>

The issue I'm having is getting around the following inside the DBConfig.php file:

/**
 * ExpressionEngine Database Config Class
 *
 * @package    ExpressionEngine
 * @subpackage Core
 * @category   Core
 * @author     EllisLab Dev Team
 * @link       https://ellislab.com
 */
class DBConfig implements Config {

    protected $delegate;
    protected $active_group;

    protected $defaults = array(
        'port'     => 3306,
        'hostname' => '127.0.0.1',
        'username' => 'root',
        'password' => '',
        'database' => '',
        'dbdriver' => 'mysqli',
        'pconnect' => FALSE,
        'dbprefix' => 'exp_',
        'swap_pre' => 'exp_',
        'db_debug' => TRUE,
        'cache_on' => FALSE,
        'autoinit' => FALSE,
        'char_set' => 'utf8',
        'dbcollat' => 'utf8_unicode_ci',
        'cachedir' => '', // Set in constructor
    );

    /**
     * Create new Database Config object
     *
     * @param ConfigFile $config Config\File object
     */
    public function __construct(ConfigFile $config)
    {
        $this->delegate = $config;
        $this->active_group = $this->delegate->get(
            'database.active_group',
            'expressionengine'
        );

        $this->defaults['cachedir'] = rtrim(APPPATH, '/').'/user/cache/db_cache/';
    }

Is there a way to dynamically pass the $active_group into the DBConfig class?


texts:
I use the "field editor" plugin a lot.

But it doesn't seem to work with the new grid fieldtype.

So it now just messes up channel fields with grid.
I now can't delete the messed up field group.

A Database Error Occurred
Error Number: 1091
Can't DROP 'field_id_21'; check that column/key exists
ALTER TABLE `exp_channel_data` DROP `field_id_21`
Filename: libraries/api/Api_channel_fields.php
Line Number: 495

How do I delete the fieldgroup anyway?


texts: Exp:resso Store callback from WorldPay returning 403 Forbidden

texts:
Exp:resso Store v1.6.5 on ExpressionEngine v2.10.2

I have an integration using PayPal Express working just fine with callbacks, however with WorldPay as alternative payment provider, there's an error on the callback:

  Error reported: Callback to http://www.example.com/?ACT=24&H=8fbe37725478025650b33d945595c1cc: NOT OK, received HTTP status: 403

Request:

  POST /?installation=1234567&ACT=24&msgType=authResult&H=8fbe37725478025650b33d945595c1cc

Response:

  HTTP/1.1 403 Forbidden
  This form has expired. Please refresh and try again.

The data going from WorldPay to EE looks OK but the callback URL isn't functioning correctly.

A successful upgrade of EE from 2.9.2 to v2.10.2 did not resolve the issue.

Any ideas? Thanks.


texts: Template code to determine if an Exp:resso Store order was placed by a registered member?

texts:
In the template that shows an order from the hash in the URL (via the {exp:store:orders} tag), I want to check if the order was placed by a registered member or not. If it wasn't placed by a registered member, then I want to show a message suggesting that they register to keep all their orders together.

My first thought was to see if the order has an associated {username}, and show the message if not. However, it seems like {username} doesn't work inside `{exp:store:orders} tags, despite the docs claiming they do.

The only other thing I can think of is to pass the {order_email} field, which does work, on to some other tag that searches through members:

{exp:memberlist:fictional_tag search:email="{order_email}"}
    {if no_results}
    {!-- Order placed by non-member; show 'Consider Registering' message --}
    {/if}
{/exp:memberlist:fictional_tag}

As you may have guessed, such a tag does not appear to exist as far as I can tell.

Is there any other way to see if an order was placed by a registered member?


texts: Expresso store - {order_date} in 2011-04-15T17:58:41.000000 format

texts:
We need to export the date of orders into a CRM and it needs to be in the following format:

2011-04-15T17:58:41.000000

The current {order_date} is exported in unix format, is it easy to change this or is there any other way I can get around this?


texts:
I'm upgrading from 2.5.2 to 2.5.5 and in the upgrade process everything went well until I tried to go from 2.5.4 to 2.5.5.  When I hit the link to upgrade to 2.5.5 I am now getting the following error:

= = =

Server error
The website encountered an error while retrieving http://domain.com/admin.php?C=wizard&M=do_update&language=english&ajax_progress=yes. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

= = =

Has anyone come across this before?  Any advice greatly appreciated.  I can confirm that the server is up - it's just when I get this that I receive the error.


texts:
When I attempt to upload an image using Channel Images v. 6.0 with EE v. 3.0.6 I get the following error:

"The Local Temp dir is either not writable or does not exist"

Both the upload dir and the cache dir are set to 777. I reviewed some old posts and saw that safe_mode might be an issue, but safe_mode isn't even set in the php.ini at all.

Thanks!


texts: Can I use either Store or CT for event product hire/rent?

texts:
Just wondered if anyone had previously used either CT or Store for product hire or rent.

I have a potential project that requires the following:

The client has a contract to supply wheelchairs to events at a particular venue. This service could develop to cover more venues across the UK so the system should be designed to include multiple venues, events and dates.
Client manages the listing and adds events by location, event title and date. The client selects which items can be available at each location. Visitors can search by keyword, event, location or date and will be shown a list of results that can be filtered. Or alternatively, they could choose a product and then the event.
Once an event is chosen, the client can choose which item/product they would like to hire and go through the purchase process.
The system will log the booking and send confirmation emails to the customer. The site could also check stock levels and either show ‘out of stock’ when the limit is reached or send an email notice to the client.

I'm just looking for pointers as to the best way to achieve the above using one of the add-ons mentioned.

Relationships could be used to assign products to venues, it's assigning the product to the event in some way that decreases the stock level only for that product for that event etc.

I have good experience of using both but not in this way, so I imagine I might require some custom code?

Thanks in advance.


texts: Best practices for importing matrix data

texts:
I have some pages that display various information about specific college majors, including a table for the names of employers who hire the major and a table for job titles of those majors (http://career.uga.edu/classof2016/major_summary16/accounting_-_bachelors16). At the moment, the employer names are not connected with the job titles.

For each record/specific major/page, I need to display a new table with an employer name in the first column and all of the associated job titles in the second column.

I have started by adding a new matrix field to the existing data channel. I can use this to manually enter and display data the way I need to, but I have a significant number of records to import and I don't know if that will work with the Matrix field.

So here's my question: is there a preferred and/or simpler, native way to format a table that will display what I need?

Would it be better to create a new channel for the major, employer name, job title fields, and then pull that into the template that displays the existing data for each major using a relationship field?

Any suggestions would be appreciated.


texts: to which member group would belong pending members?

texts:
SHORT ANSWER : YOU CAN'T TELL

I have 2 member groups.

When a registration is not complete, (email not confirmed) the registred user is placed in Pending member group.

How can I know which group it would have been assigned to if he had completed the registration process ?

As a side note : I use MSM, is there any way to know at least which site the member tried to register to ?


texts: Page refresh on submission of entry_form with the text "select" in it

texts: I'm using the exp:channel:entry_form to allow users to add content to my site. A nagging bug for quite some time has been that the page the entry form is submitted on just refreshes if the form contains the text "select", even in the form of a longer word like "selection". It's not always consistent, some forms do go through. I'm sure it's a sql security thing but this particular constraint is too tight. I haven't been able to figure out how to solve it (and I'm quite familiar with editing system files). I could detect it in JS and warn the user against using it but I feel this would be a poor mans patch. Any advice?


texts: Site is loading (slowly) and pingdom shows 503 error

texts:
I've got my site running onnline at https://bartlett100.com/

(Holding page only unless logged in as super admin)

The site loads, but the initial page load is very slow. it's just the initial doument request, the rest of the assetts load fine after this.

Also, speed tests like Pingdom return a 503 error, even though the site does load.

https://tools.pingdom.com/#5a2676fdcfc00000

Could this be causing the slow loading. Could it be a problem with the .htaccess file which i'm using to remove the index.php from the URL?

This is what I have in there:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

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

Any ideas?

Thanks


texts:
Is it possible parse ExpressionEngine tags inside the content of another tag?

{exp:channel:entries channel="my_channel"}
    {parseit {my_field}}
{/exp:channel:entries}

my_field should contain any expression engine tag, even embed if it's possible.
Maybe it's possibile using stash, but I can't got how.

Thanks

EDIT, SECOND QUESTION, added allow_eecode:

<?php
    require_once "php.include/user_agent.inc.php";
?>
{embed="include/.head"}

{if segment_1 == ""}
    {exp:channel:entries channel="index" limit="1"}
        {exp:replace_plus find="index.php|.php|/app" replace="{path='site_index'}||{path='site_index'}app/" multiple="yes"}
            {responsive_body_{language_code}}
        {/exp:replace_plus}
    {/exp:channel:entries}
{/if}

{exp:channel:entries channel="multi_version|responsive" limit="1" require_entry="yes"}
    {if segment_1 != ""}
        {if no_results}
            {redirect="404"}
        {/if}
    {/if}
    {exp:replace_plus find="index.php|.php|/app" replace="{path='site_index'}||{path='site_index'}app/" multiple="yes"}
        {exp:switchee variable="{channel_name}" parse="inward"}
            {case value="responsive"}
                {exp:allow_eecode embed="yes"}
                    {responsive_body_{language_code}}
                {/exp:allow_eecode}
            {/case}
            {case value="multi_version"}
                <?php
                    if(userAgent($_SERVER['HTTP_USER_AGENT']) == "mobile"){
                ?>
                        {mobile_body_{language_code}}
                <?php
                    } else{
                ?>
                        {normal_body_{language_code}}
                <?
                    }
                ?>
            {/case}
        {/exp:switchee}
    {/exp:replace_plus}
{/exp:channel:entries}

</html>

that's the code, a bit complicate, but it work in other parts. the problem is in case responsive, where you can see {exp:allow_eecode embed="yes"}. in that field i have an embed like {embed="include/.newslist"}
and in my .newslist template I have:

test {language_code}

{exp:channel:entries channel="news"}
    {news_title_{language_code}}
    test 2
{/exp:channel:entries}

But I can see only "test it" in my responsive entry.

I have one news and it seems to be all fine. I can't got it.

SOLUTION:

adding dynamic="off" in embedded entries tag:

{exp:channel:entries channel="news" dynamic="off"}
    {news_title_{language_code}}
    test 2
{/exp:channel:entries}


texts: Solspace Calendar error: "Column 'repeat_weeks' cannot be null"

texts:
EE 2.11.8, Solspace Calendar 1.8.14 (vastly out of date, I know, I know... old client site. * le sigh * )

I'm trying to post a new Calendar Event entry. When I set it to not repeat, or to repeat yearly, it works fine. However, if I choose to have it repeat daily, weekly, or monthly, I get the following error:

A Database Error Occurred
Error Number: 1048

Column 'repeat_days' cannot be null

INSERT INTO `exp_calendar_events_rules` (`event_id`, `calendar_id`, `entry_id`, `rule_type`, `start_date`, `all_day`, `start_time`, `end_date`, `end_time`, `repeat_years`, `repeat_months`, `repeat_days`, `repeat_weeks`, `days_of_week`, `relative_dow`, `days_of_month`, `months_of_year`, `stop_after`, `stop_by`, `last_date`) VALUES ('230', '72', '230', '+', '20170621', '', '1300', '20170621', '1400', 0, 0, NULL, 0, '', '', '', '', 0, '20170628', 20170628)

Filename: third_party/calendar/data.calendar.php

Line Number: 997

I've checked the console to see if there are any JS errors, thinking perhaps the Calendar fieldtype might be having an issue with modern browser JS, but there's no apparent problems.

This site is hopefully going to be revamped this summer, but until then, I just need this to work properly. Can anyone point me to a fix, whether it's a code change, database field requirement change, or something else? Much grass!


texts:
Want to checkout as a guest. No login.

On EE 5 and Cartthrob 4.2.

When I send the checkout_form I get this error

Unable to load the requested class: cartthrob_loader

What might cause this error?


texts: Using hooks in EE3 calling methods in extensions from modules

texts:
I'm new to hooks, so pardon any ignorance in the questions...

So in my extension, (ext.staree.php), I have the following specifying the hook:

class Staree_ext
{
    public $hooks = array('channel_entries_row');
    ...

Then in the activation method, I have this:

public function activate_extension()
{
    foreach ($this->hooks as $hook)
    {
        $data = array(
            'class'     =>  __CLASS__,
            'method'    =>  'get_current_entry_id',
            'hook'      =>  $hook,
            'settings'  =>  serialize($this->settings),
            'priority'  =>  10,
            'version'   =>  $this->version,
            'enabled'   =>  'y'
        );

        // insert in database
        ee()->db->insert('extensions', $data);
    }
}

The get_current_entry_id is as follows: (Just to test right now)

public function get_current_entry_id($obj, $row)
{
    echo "<pre>";
    print_r($row);
    echo "</pre>";
    exit;
}

This gives me the following:

Array
(
    [entry_id] => 30
    [channel_id] => 5
    [forum_topic_id] =>
    [author_id] => 1
    [ip_address] => ::1
    ...

I need to get the current entry_id from my module mod.staree.php.

So inside my Staree class, I have the following method:

public function star()
{
    $testID = // (THIS is where I need the current id from the ext)

    $test = "Static return: 1, Passed Entry Id: ".ee()->TMPL->fetch_param('entry_id').", Dynamically Pulled Entry Id: ".$testID;

    return $test;
}

I know if I pass the {entry_id} like this: {exp:staree:star entry_id="{entry_id}"}, it will work by fetching the params, but I would like to just get it from the template wherever it is.

I'm close, but not used to working with hooks. Any help would be GREAT!

Thanks.


texts:
I want to add CE Image to this gallery, its a fancybox light box gallery. The code below works fine, but every time I try to add CE Images, it breaks. How do I but CE image in this code?

This code works fine, how do I integrate {exp:ce_img:single src="{grid_gallery:pop_up_photo}" width="600" crop="yes"}

There is two instances of photos.

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

{title}

        {grid_gallery}

         {/grid_gallery}

         {/exp:channel:entries}


texts: How to fix depreciation issues after upgrades

texts:
I'm still new to EE and am trying to upgrade a site from 2.6.1 to 2.8.1, but getting various errors, which I believe are all related to certain add-ons.  Here's a couple examples:

Champaign2: Fatal error: Call to undefined method EE_Fieldtype::EE_Fieldtype() in /system/expressionengine/third_party/champagne/ft.champagne.php

Structure:  Deprecated function add_to_head() called in system/expressionengine/third_party/structure/mcp.structure.php on line 213

Am I right in thinking it's down to the developers to fix these issues as EE depreciates various functions - so I need to get in touch with their support?  Or is it normal for devs to struggle through one issue at a time trying to update the third-party module's code to solve themselves?

Also, are the notices in the developer logs just notices of future depreciations?  Or do these logs indicate an actual broken function within the current version?

Thanks,
Justin


texts: Show modifiers with their own qty field in Expresso Store

texts:
In Expresso Store, I want to show all modifiers for a certain product instead of putting them in a dropdown. I saw this post which shows how to transform it into radio buttons, but it is not exactly what I need. I would like to have a quantity box next to each modifier option. The client should select an option first and then have to fill in a quantity, but he should be able to just enter a quentity next to the option of his choice.

How can I solve this?


texts:
i'm trying to write my own plugin and new to php
to simplify i want to grab a string from the tempalte then do something with it
How do i call getMyString() in another function?

EDIT:

class test
{

    public $return_data = "";

    public function __construct()
    {
        $this->EE =& get_instance();
        $this->return_data =  $this->getMyString();
    }

    public function getMyString() {
        $tagdata = $this->EE->TMPL->tagdata;
        return "
TEST : " . $tagdata . "
";
    }

    public function newFuction() {
          $this->return_data = self::getMyString();
    }
    // usage stuff here

}

Thanks!


texts: Store - accessing sale meta information in template

texts: Is there a way of accessing other sale information (other than the sale_price) in the template? I'd like to be able to display the sale name that the discount relates to...!


texts:
After upgraded from 3.5.5 to 5.1.3 .. Channel Form doesn't return..
I tested with very simple code.. like

{exp:channel:form channel="form_test" return="inscription/merci"}

        Nom *

        <input type="text" required=""  name="title" id="title" value="" aria-required="true">

<button  name="submit" type="submit" class="button expanded">SEND</button>

{/exp:channel:form}

I also tried to put these template in an other template group.. but i always get a white page after submiting.. Still the  channel form is submited as i can see the new entry in CP..

But then i tried on an other EE install (other site with 5.1.3 from 4.x).. and it works!?


texts:
I've got a site that is live that is still referencing URLs from the development site.  Nothing major, but some icons in the CMS are missing, and when I try to pull them up, they are pointing to an old URL (development site).  I've searched the config files, as well as the database, but the path doesn't come up.

Not a huge deal, but it bugs me every time I log in.


texts: Using EE as a data source for an iphone app

texts:
We're currently developing an html5 based iOS app using ExpressionEngine as the data source. So far it's working and looking great. However, we're unsure as to how approach the member side of things: we want to allow users to log in as they do on the main website. This appears to be somewhat of a challenge and we're wondering if anyone has come across a solution?

We're also using Zoo Visitor, but I don't think that's so relevant? It's the member authentication side of things we don't know how to tackle.

Any help would be much appreciated.

Jim


texts:
I'm trying to get this if statement to work, not sure what I'm doing wrong. This is my code:

{categories}{if remaining_places_available<1 && category_id==259}
Fully booked
{/if}{/categories}

This is within the channel entries tag. the remaining_places_available is a field. Replacing && with AND doesn't work either. It's just outputting {categories} {/categories}  on the front end.

Would really appreciate some help.

Thanks,
Julie

EDIT: This is my channel entries tag:

{exp:channel:entries channel="choices_events" show_future_entries="yes" show_expired="no" disable="trackbacks" orderby="date_time" sort="asc" paginate="bottom" status="open" dynamic="no" parse="inward"}

This works fine in my code, and outputs '259' on the correct entries:

{categories}
    {if category_id == "259"}259{/if}
{/categories}

I just can't get it to work within the other if statement :

{categories}{if remaining_places_available<1 && category_id==259}
Fully booked
{/if}{/categories}


texts: Site load periodically blowing up, EE Cache related?

texts:
I have an error showing up in the logs for a site:

"[Sun Jan 13 13:27:11 2013] [error] [client IP] mv: cannot move /path/public_html/system/expressionengine/cache/page_cache' to/path/public_html/system/expressionengine/cache/page_cache_delete': No such file or directory
[Sun Jan 13 13:26:48 2013] [error] [client IP] cannot move /path/public_html/system/expressionengine/cache/page_cache' to/path/public_html/system/expressionengine/cache/page_cache_delete/page_cache'"

'IP' and 'path' represent a real ip and system path.

This site doesn't make use of page caching, but I understand EE can still try to manage it's cache.  Normally I wouldn't be concerned, but this particular site has periodic spikes where server load will jump from an average of .5 to 1.5 up to 80 to 100.  This crashes the server, and one happened this afternoon.

My host is running loadwatch on the site, and it shows a large number of apache processes without a correspondingly large number of user connections.  They also said that there was an overload on the servers memory, which was followed by the load / process spike.

Why do I think these might be related? http://ellislab.com/forums/viewthread/152522/#753282 This forum thread from several years ago on an EE 1 site.  It's the only lead I have right now on why this site could be running perfectly fine 99% of the time and then periodically blowing up and taking down a VPS that's more than capable of running it.

Has anyone seen something like this happen on their own sites?  If not, any suggestions for how to monitor what's causing spikes like this?  My host doesn't seem to have any more to offer as far as tracking, so I can't trace it down to specifically what's causing the spike right now.  Any help is appreciated.


texts:
Is anyone still using the DevDocs add-on? A recent update of EE to 2.9.2 broke it.

  Call to undefined method Cp::set_variable() in /chroot/home/mydomainhere/cp/expressionengine/third_party/dev_docs/mcp.dev_docs.php on line 125

I thought there was an easy fix for this but can't find it.


texts: I just installed my first EE3 site (EE 3.4.1), and the Pages URI entries are not saving. The page entry itself saves, but not the URI. Has anyone else experienced this or have a way to fix it?


texts: I am currently trying to update my website that I have not touched in years. It is still using EE 1.6.9, and while I was following the update instructions, I came across a hiccup. The instructions tell me that I need to clear the cache, which is found under the admin tab, but there is no admin tab. It goes Edit, File Manager, Pages, Modules and then My Account. I originally hired someone who built the website, and then transferred everything to me so I am confused as to why this is happening.


texts: convert Title to Url Title with unicode characters

texts:
I'm a Vietnamese. I'm a newbie for ee2. When I enter "Nước ngập mái nhà sau cơn bão" in Title field, EE2 automatically generates "nc-ngp-mai-nha-sau-cn-baeo" in URL Title. That isn't correct. I need "nuoc-ngap-mai-nha-sau-con-bao" in my URL Title. I created my database with "utf8-general-ci" collation. May somebody help me?.
Thanks.


texts: Query module: lost connection to MySQL server during query

texts:
I have a query being compiled in a template but by the time it's run, it appears that the query module has lost it's connection to the DB:

Error Number: 2013

Lost connection to MySQL server during query

..query here...

Filename: modules/query/mod.query.php

Line Number: 181

Is there any way to extend the database connection period so this can be avoided?


texts: EE1 to EE2 update - cannot delete a nGen file field

texts:
Upgraded this EE1 site to EE2 (not without issues but managed to get most of them fixed followed this Upgrading an EE1 site to EE2 with nGen File field as a guide but forgot 1 field).
I'm stuck with 1 issue regarding 1 ngen file field that I forgot to convert to a text field.

This ngen file field sits inside a matrix field in just 1 entry in 1 channel.

I'm simply trying to delete this channel and its channel field group and recreate it without the ngen file field but I keep getting an error when I try to access the field:

    An Error Was Encountered
Unable to load requested field type file: ft.ngen_file_field.php.
Confirm the fieldtype file is located in the expressionengine/third_party/ directory

When I try to delete the field the error is:

A Database Error Occurred Error Number: 1091

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

ALTER TABLE exp_matrix_data DROP col_id_15

Filename: third_party/matrix/ft.matrix.php

Line Number: 1544

Any suggestions on how to tackle this?


texts: Matrix PHP error "Undefined index: directory" after EE update

texts:
does anyone have an idea how I can fix this error message? It flashes up after submitting an entry and stays on screen for only a second or two.

  A PHP Error was encountered
  Severity: Notice
  Message: Undefined index: directory
  Filename: celltypes/file.php
  Line Number: 395

I'm guessing it's referring to the file fieldtype. But the images and files are OK on the page. And it only occurs on one entry.


texts: Channel field not showing on page with embedded template using Multi-Site Manager

texts:
I am using ExpressionEngine 2.5.2 with Multisite Manager. I have one template embedded within another. The parent template is pulling data from 2 sites, and I would like certain information to show up depending on how many results there are from a channel:entries call. However, when one of the sites has results, the embed show correctly, but when the other site has results, the embedded template shows up, but the field results do not.

Here is the parent template:

{exp:channel:entries  site="default_site|characterized" orderby="entry_date" channel="events" sort="asc" status="next event|open" show_future_entries="yes"}
    {if total_results == "2"}
        {embed="home/side_bar_2" side_box_1_sm="{side_box_1_sm}" side_box_1_lg="{side_box_1_lg}" side_box_1_link="{side_box_1_link}"}
    {/if}
{/exp:channel:entries}

Here is the embedded template:

{exp:channel:entries  site="default_site" orderby="entry_date" channel="home" sort="asc" status="open" show_future_entries="yes"}

{/exp:channel:entries}

When the "characterized" site has 2 results, the embedded template works just fine. When the "default_site" has 2 results, the embedded template shows up with no values in the channel fields. when I look at the source code, it just shows

Anybody know why this is happening?


texts: Conditionally display a field from a related entry if it's not empty (native relationships field)

texts:
I am using EE 2.6.1 with a relationship field. The two entries in the venue related entry (telephone and email) are not mandatory fields, so the way I would usually do it is wrap it in an if statement and only display if the field is populated. Like so:

            {if course-venue:telephone}
Telephone: {course-venue:telephone}
{/if}
            {if course-venue:venue-email}

Email: {encode="{course-venue:venue-email}" title="{course-venue:venue-email}"}

            {/if}

Problem is that EE's native relationships field doesn't seem to work this way, does anyone know how I can achieve the same result? This just displays nothing.

Thanks in advance!


texts: Linking a category in one channel to an entry ID in another

texts:
I've got a music site where I am displaying a list of recordings in a "recordings" channel on one page with some info about each one; I'm not using a single-entry page for these. For each recording, I'm using  so I can link to the entry.

I have a separate "press clips" channel, with a separate category for each recording, so that it's easy to display all the reviews for a specific recording on a page.

What I want to do is link the category image from the "press clips" channel to the recordings page listing for that particular recording, so I'm looking for a link like <a href="{site_url}music/recordings#{entry_id}. But I can't figure the way to get the {entry_id} automatically.

Should I be using a relationship field (something I'm not so familiar with using) to link the recording with the press clips? Or is there some simple way to do this?


texts: expresso Store: Inventory not showing in cp for client's member group

texts:
I created a member group for the client, with this two options:
- Can access ADD-ONS: Modules > yes
- Can access module:  Store > yes

When i access with the client profile , i can see the "store" tab, but "Inventory" is not present

why? Thanks in advance


texts:
I am setting up a new site using EE 6 and I am having issues with the form. I have set the Outgoing email settings and have a valid email.
Here is the form:
{exp:email:contact_form user_recipients="no" class=" bg-light-blue mx-auto" recipients="admin@example.com" charset="utf-8"}

Get a free estimate

        <input type="text" id="from" name="from" placeholder="Name*"  value="" />

        <input type="text" id="email" name="email" placeholder="Email*" value="" />

        <input type="text" id="phone" name="phone" placeholder="Phone" value="" />

        <textarea id="message" name="message" class="pt-2 px-2" id="comments" placeholder="Tell us about your project, ask questions and let us know when you would be available to discuss your project and get a free estimate of the cost."></textarea>

        <input name="submit" type='submit' value='Submit Form' />

{/exp:email:contact_form}

I have tried PHP, Sendmail and SMTP but keep getting the following error:

A valid sender email is required

I am not sure what I am doing wrong on this.
Thanks.


texts: Expresso Store - Register Member not working

texts:
Can't seem to get the register member on Expresso Store v2.4.1 to work.

I've the following but submitting the form does nothing (stay on same page):

{if logged_out}
    <fieldset id="register_member">
    <legend>Member Account</legend>

    {field:register_member} Register Member Account?

        Password
        {field:password}

        Confirm Password
        {field:password_confirm}

        Username
        {field:username}

        Screen Name
        {field:screen_name}

    </fieldset>
    {/if}

Do I need anything else for this to work. I have allow  new member registrations set to yes in the member preferences?

I've even tried the register_member="yes" on the checkout form which allowed me through to the next page but still no account has been created.


texts:
Anyone know if it's possible to have prev/next entry linking on a single entry page using Low Alphabet (with params for ignoring 'the', etc.) - couldn't see anything on this in the docs

Many thanks!


texts: Exp:resso Store & Fedex International Economy to UK

texts: I have Fedex working for domestic (US) shipping calculations, if I enter a Japanese address the international economy option works but if I enter my home UK address I get a "Destination country is not serviced." error - anyone know why this might be happening? I've tried entering a postcode with and without a space. The country dropdown is the standard Store field.