PHP is an open source general-purpose server-side scripting language.

learn more… | top users | synonyms

0
votes
2answers
11 views

Use of undefined constant FILEINFO_MIME_TYPE

I'm currently testing a site (EE 2.10.1) and getting a string of the following errors when trying to do anything with image uploads. A PHP Error was encountered Severity: Notice Message: Use of ...
0
votes
1answer
18 views

Freeform and Dynamic Email Recipients

I have a Freeform form that is a request for information. There are checkboxes in the form for various locations on the site. I want to dynamically send emails based on the checkboxes that are ...
1
vote
2answers
17 views

Expression Engine + FreeForms Pro --> MS Dynamics Integration

At the moment we have a website running on Expression Engine with FreeForms Pro. We hope to integrate the forms in a way that this data exists in our MS Dynamics CRM package. What's the best way to ...
0
votes
1answer
24 views

Include Issue Calling an External PHP Script from Expression Engine

I'm trying to call an external PHP script from an Expression Engine form response template that sends emails using Mandrill API. The script I have works on regular PHP, I have tested it, but there is ...
0
votes
1answer
15 views

Date range in EE postmaster template

I have a notification setup that is pulling the top 5 most viewed entries within the specific channel, and I want to send this email with the top 5 most viewed entries, and I want to send this ...
0
votes
1answer
27 views

Template Not Detecting Plugin Class?

Working on a plugin integrating with the Active Campaign API. What I have is a folder inside third_party containing pi.ActiveCampaign.php with a lib folder containing the API. The class describing ...
2
votes
1answer
15 views

Expression Engine: Change the style of a template wrapped in another template

I have a post/posts template wrapped inside a template called blog-posts.html . I would like to have the post/posts template display a different grid column class than how it is displayed when it is ...
0
votes
2answers
59 views

Simple PHP Substring not Working in Template

This should be straightforward. I just need to take my event summary from the Solspace Calendar plugin and truncate it to say 280 characters. I have PHP set to "Yes", and "Output" parsing stage. It ...
0
votes
1answer
23 views

$_POST to EE template not working as expected

Using this form to post to itself is not working as expected. But why? <form method='POST' action='gen_req'> <input id='input' name='uid' placeholder='uid' /> <button ...
0
votes
1answer
14 views

Adding an action to happen at Login

I am not new to expression engine but the question i have returns no answers in google. I need to: @ the time of successful login - do something outside of expression engine (various external ...
1
vote
2answers
73 views

Fatal Error - Website down!

I have a live site currently down with the message: {!-- ra:00000000638f5ffd00000000469f18aa --} Fatal error: Cannot use object of type stdClass as array in ...
1
vote
1answer
21 views

Correct way of ordering entries by a single month view

I have a calendar. Currently viewable by year. I need to add in a drop down/list of some sort which will show January 2015 February 2015 ... When the user selects from the list I need to show ...
0
votes
1answer
23 views

Define PHP var using a global var

I am trying to get a php snippet working within a template with PHP enabled(output). $uid does contain the {member_id} as expected but the php has not returned the correct result. Update I think ...
0
votes
0answers
32 views

How to setup php pointing out from webroot?

I have this line in one file that tries to locate the EE system folder. It works just fine if the folder is inside webroot. But in my case, my folder is out from webroot and I'm totally helpless what ...
0
votes
1answer
51 views

Change in output for playa:parents inside Stash when going from PHP 5.3.x – 5.4.x

This template works fine on PHP 5.3.x: {exp:stash:set parse_tags="yes" conditionals="yes"} {stash:st_content} {exp:channel:entries channel="people" url_title="{segment_3}" ...
0
votes
0answers
27 views

Date set in an entry is outputting 4 hours behind the date set

One of the expressionengine sites I run is having a strange but that I suspect is something to with the recent server move we just did. In an entry the user can set a start/finish time of an event ...
0
votes
1answer
12 views

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

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 ...
0
votes
1answer
42 views

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

I am trying to build out an api template inside our CMS to expose a particular channel as json. I'm going to call that channel "public." Here's the template that I have put together thus far: [ ...
0
votes
1answer
41 views

How to create custom PHP/Mysql page in ExpressionEngine?

I'm currently assigned to create custom page in ExpressionEngine (because that's the old code). I'm not getting used to ExpressionEngine and CodeIgniter either. I do inspecting the structure of ...
2
votes
1answer
38 views

rawurlencode not rendering correctly in anchor tag?

EE Version. 2.7.3 I am running rawurlencode on a field in a channel called description to encode it to pass on correctly to twitters sharing url string inside my template. Example input: Check Out ...
0
votes
1answer
37 views

How to capture EE embed output with Stash variable?

I have an EE embed that processes PHP code. I would like to capture that output with a Stash variable. I'm using a model/view approach, ie. have one template to retrieve the data and another to ...
0
votes
1answer
52 views

Using Reports module, need first row of CSV to be custom

I am using Nathan Pitman's Reports module to allow our client to export some custom information. I wrote up the SQL query and it works great. The only issue I have is that the first row (the header ...
3
votes
2answers
100 views

Run plugin without affecting loading time (external)

I have a plugin which doesn't actually integrate with the website. It's purpose is to grab a column of the channel entries table and manipulate it every 24 hours. The plugin will only run each time a ...
0
votes
0answers
20 views

Simple Commerce - zero value transaction

I am using simple commerce to allow clients to book places on courses that can be purchased via the application. Is it possible to set the value to 0.00 and still trigger an email when a place has ...
0
votes
1answer
24 views

Rotate entry every hour

I would like to rotate between two entries each hour depending on the time of the day. Any ideas on how to do this?
0
votes
4answers
257 views

if:elseif statement not working correctly with PHP

I have a news section on our website and I want to only show the current years articles unless it is January, February or March. Since those months are at the beginning of the year, I don't want the ...
0
votes
0answers
24 views

Output variables in a loop from within an array in custom plugin

The following query: $years_sql=" SELECT YEAR(FROM_UNIXTIME(field_id_34)) AS start_date FROM exp_channel_data WHERE channel_id = 5 GROUP BY YEAR(FROM_UNIXTIME(field_id_34)) "; $query ...
0
votes
1answer
17 views

How to display the lowest number from multiple fields - PHP?

I have channel entries with around 20 number fields, each containing a price: {price_1}, {price_2}, etc. I need to display the lowest of these prices in the entry's template but am finding it ...
0
votes
2answers
29 views

Request file through email

I want public users to have the possibilty to "order" a file (that is already on the webpage/server) through a form. After the form has been submitted successfully, an email should be sent to the ...
0
votes
3answers
32 views

Sorting pictures with matching dates into galleries

I am attempting to build galleries of photos based on {photo_date}, a custom field containing the date on which each photo was taken. My list of photos looks something like this: Photo# ...
0
votes
0answers
22 views

Getting correct pagination when showing Playa field entries in Channel Entries loop

My EE site has 3 ranges of products separated into different channels. I also have a separate channel for featured products, which is basically contains a Playa field for dragging and dropping ...
0
votes
1answer
59 views

ExpressionEngine piracy? [closed]

I used to run a fairly basic Joomla website for a real estate company. Over the years it got way too large for Joomla so they decided to hire a developer to get their own CMS, where the database could ...
0
votes
1answer
49 views

Working with PHP variables between templates

What is the best way to "send" a PHP variable between templates? I have an array $myArray that I create in my index.html template. Then I have a template which goes to fetch data from an external API, ...
0
votes
0answers
78 views

Performing math calculations on numerical channel fields within a template

I have a channel for a university survey with fields containing numerical data (fields like, {total_eligible_survey_participants} and {number_of_surveys_completed} as well as {college_attended}, ...
1
vote
1answer
34 views

Use unique id for each entry

I'm looping matrix entries and I'm trying to give each image a unique id. I've tried using {count}, but it's just outputting same number for each entry? What's the best way to do this with either EE ...
1
vote
1answer
176 views

Expresso Store + outputting store variables using PHP in XML. " and / are blowing up the whole operation

Alright so let me first say that this particular project is very odd and it has snowballed considerably in the past few months. I am not a master PHP programmer. What I am is a web developer with ...
0
votes
0answers
38 views

Search results to display category names

I need to work out how to incorporate category names into the search results url. I found a solution using php (noted below) which adds the relevant category names into the appropriate position in ...
0
votes
0answers
103 views

ExpressionEngine control panel links use wrong URL

I'm attempting to set up a staging server for a live EE powered website. I decided to use xampp but I'm having problems getting everything working. On the live website EE's control panel links look ...
0
votes
0answers
29 views

Strange PHP array issue

I have a strange PHP array issue which I am really confused about... I'm using PHP to take a stash array from within ExpressionEngine, make sure the values are unique, and then using array_intersect ...
1
vote
1answer
44 views

ExpressionEngine Stash Replacing rather than appending

I'd massively appreciate a bit of help with the Stash ExpressionEngine plugin... I think it must be quite simple but feel like I've tried everything... The {expertise} tag is an ExpressionEngine grid ...
0
votes
0answers
19 views

PHP cast Matrix row_count to int returning 0

I have a really simple if statement that I want to do a calculation on the row_count with php output I can echo out '{row_count}' just fine, however any modificaiton don't seem to work. I'm using php ...
0
votes
1answer
52 views

Check field length

I want to display one field, called {gearboxx_body}, unless that field has more then 300 characters, in which case I want to display a field called {article_blurb}. I'm pretty sure there isn't a way ...
0
votes
3answers
64 views

PHP errors in control panel; main site still working

NOTE: I am a non-technical person and know nothing about PHP. I can follow step-by-step instructions though. I am running EE v2.5.5 I am getting PHP errors on my control panel which won't go away ...
0
votes
0answers
46 views

Cartthrob - Array to string conversion error on CT's extload.php page

Getting the following error in EE 2.9 & CT 2.6 on checkout extload.php page: Notice: Array to string conversion in /usr/wwws/users/dccedgxbkf/system/expressionengine/libraries/Template.php on ...
0
votes
0answers
40 views

Default Avatars in Discussion Forum Templates PHP

My PHP skills are not that good and I have been struggling to get some code to work once I have upgraded to EE2. For EE1, I had this code to display avatars on certain forum pages that did not ...
0
votes
1answer
32 views

Only some PHP being outputted

I have the following php code in a template and it's not parsing the whole thing. Any idea what the issue is? Here's the php code: <?php include "Eventbrite.php"; $authentication_tokens = ...
0
votes
1answer
38 views

EE isn't parsing PHP code, even though it should be

I'm sending an Ajax request via jQuery to an EE template. This is the entire contents of the EE template: {exp:channel:entries channel="tours" url_title="<?php echo $_POST["entry"]; ?>" ...
0
votes
1answer
977 views

A PHP Error was encountered Severity: 8192

I have some php code that I have embedded. Which seems to work fine alone on the server however when embedded I get this error. A PHP Error was encountered Severity: 8192 Message: Function split() ...
0
votes
1answer
96 views

Expressionengine Email Contact Form Tags and Success Messages

Does anyone know of a way to create a custom success message and post to the expression engine processing controller manually? I'm using jQuery validator, and usually what I would do is something ...
1
vote
0answers
131 views

Highest version of mySQL and PHP for EE 1.7.3

My hosting company needs to upgrade my server to the latest versions of PHP and mySQL. The problem is I'm running a number of EE sites varying between versions 1.6.8 and 1.7.3. So what is the highest ...