Questions tagged [php]

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

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
56 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 ...
2
votes
2answers
165 views

Any concerns running ExpressionEngine on an IIS server?

I want to setup EE on an IIS server what should I be aware of before proceeding? Never having developed a site running on a server using IIS I am hesitant. Based on initial searches I see that I can ...
2
votes
1answer
456 views

New server, EE migration, PHP 5.4 issue

We've just set up a new server with the identical set up of a previous server, with one small difference: php 5.4 instead of php 5.3. This is an EE install, version 2.6.1. When I go to the site I ...
2
votes
0answers
40 views

php parse syntax error on cartthrob checkout

On my cartthrob site I can add and remove things to and from the cart just fine but when i go to checkout i get this error Parse error: syntax error, unexpected $end, expecting ':' or '{' in ...
1
vote
0answers
58 views

Transfered EE site to cPanel and keep getting errors

Had this site on an ispManager server. Moved it over to cPanel and kept getting errors. Now down to this. Not sure why I can't get the site to pull up and just how to fix these errors. A PHP Error ...
1
vote
0answers
27 views

PHP in Template Forbidden - Can't even save

On EE 2.11.7, I've enabled PHP on a template and set it to output and even a simple echo of some text between PHP opening and closing tags results in a Forbidden error page when I try to save the ...
1
vote
0answers
77 views

Parse template and get content with PHP

I developed an extension for EE2 much earlier for parsing template to send the content to an email address. Now I am porting it for EE3 and facing problem that instead of returning parsed template ...
1
vote
0answers
211 views

getting a EE template to function as a php file

Is there a secret to getting a EE template to function as a PHP file? I have a map that is loading the data from a php file. I want to load the data from an EE template instead. I have set the ...
1
vote
0answers
91 views

Low Yearly Archives - EE3

Im trying to use Low Yearly Archives to show a list months with a list to an individual month of articles. I also want to show a list of years excluding the current year so the page will look ...
1
vote
1answer
1k views

Proper way to add PHP code in Expression engine Template?

I am new in Expression engine. I know that We can not write PHP code in template due to security reason. I want to know the flow like from where can write php code and how it will render in my ...
1
vote
1answer
53 views

Code-driven way to enable PHP parsing on a template

Still a bit new with EE2, but I'm looking to be able to construct a way we can push changes up in environments, without having to sync up database-level stuff. Right now I have several templates that ...
1
vote
0answers
102 views

How to give site id or site name in Search in Expression Engine(bug in expression engine)

Search functionality is not working for multiple sites i have three website eg. 1)example1.com 2)example2.com 3)example3.com the (2) and (3) no. site is taking data from site (1) but search is ...
1
vote
2answers
172 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 ...
1
vote
0answers
568 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 ...
1
vote
0answers
171 views

Exp-resso Store SSL error

My store has worked fine for me for the past several months using Paypal Express, then recently I started getting this error: Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' ...
1
vote
0answers
130 views

Freeform Pro Plugin Unsupported operand after plugin installation

we are using freeform pro 4.1.3 and are seeing form erorr - [Fatal error: Unsupported operand types in /data/websitesmywebsitedir/html/systemtudor/expressionengine/third_party/freeform/acc.freeform....
1
vote
0answers
517 views

How do Install ExpressionEngine on IIS

I've confirmed the server requirements for the windows server and they match or exceed what is recommended. I have uploaded the files to a directory on the server and am trying to run the ...
0
votes
0answers
21 views

How to use {exp:query} results in {exp:channel} parameter?

Since i can not retrieve {parents} from grid field, i am trying to find simplest workaround. This works great: {exp:channel:entries channel='channel-one' entry_id=' <?php $...
0
votes
1answer
23 views

How to use a php hook to pull data into PayPal from Simple Cart

I was wondering how to connect Simple Cart add-on to PayPal using the PHP hooks. I'm new to using hooks, but would appreciate an example to get me going. I would like to display the 'price', 'qty' ...
0
votes
0answers
13 views

Okler Porto Template - Contact Form PHP Fatal Error - EE 5.2.6

I'm running EE 5.2.6 and also using the Okler Porto Theme HTML5 Template v7.2.6 (Most Recent). I have spliced up the Okler Porto Template into Header, Body and Footer. The issue I am having is with ...
0
votes
1answer
43 views

Custom PHP throwing an error {!-ra:0000

We have a need to pull in data from an external source using PHP. I’ve run into this issue before where EE doesn’t like the PHP formatting i’m using, yet it seems to work elsewhere. For example, if i ...
0
votes
1answer
26 views

Need help upgrading EE along with PHP on my website

I have a website built in ExpressionEngine but my developer is no longer working with freelance clients. I recently received a notice from my hosting company that my website's PHP is out of date and I ...
0
votes
1answer
37 views

EE contact form - interact with POST data before sending email

We're running ExpressionEngine 3.5.17 and using the in-built contact form. We have a requirement whereby if someone completes the "From" email address on the form, and it originates from a certain ...
0
votes
1answer
26 views

Unable to pick a few elements after migrating

I have recently cloned my ExpressionEngine CMS (2.3) website to a new VPS with Plesk as its control panel. For cloning, I copied all my files and imported the database from existing website into the ...
0
votes
1answer
168 views

A PHP Error was encountered

I am receiving 'A PHP Error was encountered' error messages when signing into expression engine. Nexcess support sent me the following information. What do I do to get this corrected? I am a novice ...
0
votes
1answer
234 views

Freeform: pass variable to confirmation page

I have a freeform form with a text field with a value. Users of this form are not logged in and I need to pass the value of that field to a second confirmation page where I am building a paypal form. ...
0
votes
0answers
48 views

In EE3 can I query the Model service for template info in my template's PHP?

I want to do something like: $templates = ee( "Model" )->get( "Template" )->all(); //Loop through them foreach( $templates as $template ) ... But when I try this, it hangs the page/server. Is ...
0
votes
2answers
30 views

Issues with custom module when moving to live server

I have build a custom module for ExpressionEngine. It works perfectly on my local dev environment, but when I move it to my live server it freaks out and gives me errors, most notably: Invalid ...
0
votes
1answer
50 views

How to send email report of total channel entries in Expression egnine on daily basis

hi I am new to Expression engine I am getting total channel entries using EE Tag :- {exp:stats channel="products" site="default_site"}{total_entries}{/exp:stats} Now I want a email report that gives ...
0
votes
0answers
560 views

Can't get CodeIgniter Helpers to work in Custom Module

I have very limited experience developing custom modules for ExpressionEngine, but have managed to get an API integrated and working. Now I am trying to input data via a form, using CodeIgniters Form ...
0
votes
0answers
77 views

Load framework outside of folder structure

OK so basically I'd like to load the EE framework and its container outside of an ExpressionEngine path... I know there's been some questions about this, but I haven't found a great answer, and it ...
0
votes
1answer
108 views

How to synchronize Template in Expression engine

I have three sites working in EE using MSM and I am using subscription addon of http://www.devdemon.com/documentation/subscriptions/#installing-and-updating-subscriptions I have created two templates ...
0
votes
1answer
45 views

How to change Archive link url in Exrpession Engine

Expression engine archive is showing link in this manner eg. {exp:channel:month_links channel="news" limit="50"} {month}, {year}<br> {/exp:channel:month_links} http://www.example....
0
votes
1answer
165 views

AJAX Call on ExpressionEngine Install

$(document).ready(function () { $.ajax({ type: "POST", url: "/ajax/customcss", data: {channel: currentChannel}, }) .done(function( data ) { var jsonObj= JSON.parse(data); ...
0
votes
2answers
620 views

How can I change URL using .htaccess RewriteRule directives?

I have a URL like http://www.psreducators.com/agent-profile/?u=donald-mark, but I want the users to see the URL as http://www.psreducators.com/agent-profile/donald-mark. (donald-mark is the user ...
0
votes
2answers
375 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 ...
0
votes
1answer
504 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
53 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
64 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 ...
0
votes
0answers
147 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
71 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}" dynamic="no"...
0
votes
0answers
45 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
63 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
118 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
3answers
48 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# {photo_date}...
0
votes
0answers
73 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
218 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
1answer
344 views

Getting NSM Live Look PHP errors, even after uninstalling

I've had issues and PHP errors with NSM Live Look. It's been uninstalled and I thought it was fine, but the client has just informed me that when they try to post or edit an item from just one ...
0
votes
1answer
145 views

Cartthrob plugin for email notifications based on custom field

I found a plugin on the following site http://becordial.co.uk/expressionengine-cartthrob-email-notification-dynamic-custom-field/ which I have uploaded but does not show up in the extensions list so ...
0
votes
0answers
150 views

A PHP Error using Champagne 2 Module

I have loaded the Champagne 2 (Mighty Big Robot - no support) Module to EE and when I try and use it I just get a bunch of PHP errors listed below. Looks like it might be some sort of conflict. Any ...