Questions tagged [php]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
629 views

Iterate child categories inside parent category loop

I have a simple two-level category structure like this: Fresh Fresh Pre PackedFresh Bulk Frozen Frozen Pre Packed Ready To Go MealsCondiments I'm simply trying to iterate though the parent ...
1
vote
1answer
267 views

How to use EE classes like DB,channel API from a php file

I have a requirement in one of my EE site wherein I need to insert some data in tables and make some channel entries using EE channel API,I am able to do this within a EE template using database class ...
1
vote
1answer
283 views

How can I use third party class in EE to render instagram images on templates?

I have been using an instagram class in projects for Laravel and other small php sites and it has seemed to work well. I include a require_once in my functions file. I then create a function that ...
1
vote
1answer
479 views

Remove .php extension from index.php. where .htaccess file is to be located?

I have code in .htaccess file RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^.]+)$ $1.php [NC,L] My directory like.. www/careers/index.php And i have putten .htaccess file ...
1
vote
2answers
175 views

Upgraded ExpressionEngine, php error on site brings entire site down

I've just upgraded from ExpressionEngine 1 to 2. The upgrade ran smoothly and I can access my admin panel. Whenever anyone goes to the site, they're greeted with this error: A PHP Error was ...
1
vote
1answer
106 views

Compare contents of two grid inputs, possibly with variables?

I have two grid inputs and I need to have a conditional statement that says: if all fields of both grids are equal to 0, output some text. The way I'm trying to do this is by changing a variable value ...
1
vote
1answer
396 views

Store API Rest response in entry form with PHP

I'm trying to save an API Rest response in entry with PHP. This is the functional PHP script: {exp:channel:entries channel="products" limit="1" require_entry="yes" entry_id="{segment_3}"...
1
vote
1answer
27 views

Why Php variable repeats 1 entry?

{exp:cartthrob:order_items order_id="1937" variable_prefix="items_"} $titlu_carte = '{items_title} '; $gestiune_id = '{product_sku} '; $cantitate_carte = '{items_quantity}'; $...
1
vote
1answer
112 views

homepage.php Hack Doesn't Work on Media Temple (DV) Server

I'm using the Publish Prefixes extension, and I ran into this problem. I applied the fix given in the issue tracker, and it works on my local WAMP server and Rackspace Cloud hosting. But it doesn't ...
1
vote
1answer
876 views

Store - PHP Error was encountered when tried to export order details in store

Good day, An error was encountered when I was trying to export order details to PDF in Store Module. Following are the errors: A PHP Error was encountered: Severity: Warning ; Message: Illegal ...
1
vote
2answers
482 views

changing the assigned template to Structure listing

Have inherited an EE build that uses Structure and has a handful of channels. There is 1 'page' type and 4 'listings'. Unfortunately, the dev has decided to use 1 template for the single entry views ...
1
vote
1answer
44 views

Create month member groups/lists from Solspace User addon

I am looking to create lists/groups of data from the Solspace User addon. I am looking to list the members by their join_date from a certain group_id, for example: July 2013 (2 members) member 5 ...
1
vote
2answers
44 views

Product to Retailers (one to many) in ExpressionEngine

I have to build a website using the popular Expression Engine CMS. I have managed to get my head around how channels and channel fields work. The problem I now have is that when an admin user adds a ...
1
vote
1answer
231 views

Using categories in my php variable?

How do I get the if statement below, to return TRUE and therefore return my string "Africa is in this array"? Note: template is set to parse on INPUT (I cant use output for this template) <?php ...
1
vote
1answer
46 views

Attempting to trouble shoot email issues but I have no exp_postmaster_mailbox

I currently have two sites I'm working on right now which utilize the built in email module. I can fill the form out, hit submit and I get a message saying it's been sent, but it never gets sent. I ...
1
vote
1answer
245 views

ExpressionEngine, php and stash - scope problem, please help

I'm hugely grateful for a resource like stackexchange and the really useful posts. I've researched the problem I'm having for a couple of days now and am seriously stuck - so any help is massively ...
1
vote
1answer
661 views

301 Redirect URL Appending Query String

From yesterday, I'm trying this 301 url redirect but its not working as expected. Please help me with this. here is the .htaccess file code. Options +FollowSymLinks +SymLinksIfOwnerMatch -MultiViews ...
1
vote
2answers
969 views

Using an EE date tag with formatting in php code

I'm using some php code (output parsing) in a template, between {exp:channel:calendar} tags. I have a line assigning the value of a custom date field to the php variable %endDate. Then, I need to test ...
1
vote
1answer
640 views

Site Error: Unable to Load Site Preferences in MSM site

I recently installed a version of EE on my local machine(Mamp Pro), v2.5.5 - Build Date: 20121220. I set this site up as per usual and started building my initial site templates etc ready for the ...
1
vote
1answer
809 views

Avoiding syntax errors with PHP and strings with quotation marks

What is the best practice for manipulating strings with PHP (output mode) that might contain straight quote marks (single or double)? I'm not totally clear how EE stores and outputs these normally, ...
1
vote
1answer
1k views

Grab logged_in user info in PHP template and assign variables

can you help me writing this lines of code for grab in a EE template the information about a logged_in user, using php. I'm using Vanilla Forum, and i want to use the JsConnect to pass the logged_in ...
1
vote
1answer
34 views

Information isn't updating & tracing

When submitting my form that stores my facebook id it is sent to the method save_settings(). No matter what I do I can't dump variables or echo them out to see what is being sent, so I think this is ...
1
vote
2answers
114 views

EE 2.5.5 Discussion Forum banner customization

I'd like to have the flag banner in our Expressionengine Discussion Forum appear only on the forum homepage. I'm taking a college php class but we haven't gotten far enough for me to know how to ...
1
vote
2answers
446 views

check if an entry has a certain playa parent

I'm looping through my entries, and I want to check if my entry has a certain entry as his playa parent. Right now I'm using this code, which works, but I'm wondering if it can be done without PHP. {...
1
vote
0answers
59 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
28 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
214 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

Duplicating an entry based on entry_id

I'm having a small issue creating a script that take in an entry_id, and based on that creates a new carbon copy entry with a new entry_id. I've got this working, however as it stands now i'm forced ...
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
1answer
93 views

How can I use http parameters to create a new record in EE

I need to get the parameters from a http post url sent to my site and use the data to create a new entry in Expressionenegine.
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
1answer
46 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 ...
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
1answer
45 views

PHP doesn't work with Relationship field

I’m having trouble embedding PHP into a template and having anything on the page render, and I assume it’s because I’m working with a Relationship field. Just as an example, this works: {...
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
1answer
27 views

Pre-Sales: multiple content moderators and security

I'm trying to check if Expression engine is the correct product for a new project. I received the request from a customer to build a portal for a sporting association. This company organizes ...
1
vote
0answers
518 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 ...
1
vote
2answers
1k views

How to pass php variable from one EE template to another

I am using a Freeform Pro form where the user can edit a numeric field (number of of places booked for an event). When they click on submit, they are sent to a processing template to do the ...
0
votes
2answers
211 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
207 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
37 views

Conditionally returning result from a plugin

I'm writing a custom plugin to tap into an external database, and I'm getting the overall results I want. However, I want to wrap my return values around a conditional to avoid processing unnecessary ...
0
votes
3answers
261 views

Structure-like behavior from Channels/Relationships (EE 2.6.1)

Some of my clients need to add what I would call "ad-hoc" pages to their sites. As many have pointed out, this is (a) somewhat contrary to the spirit/concept of EE channels and (b) when necessary, ...
0
votes
2answers
44 views

Use php inside entry-field instead of snippet

How is it possible to use php inside an entry-field? When I write e.g. in the summary-field test <?php echo 'bla'; ?> test I get exactly the same string in the frontend: test <?php echo '...
0
votes
1answer
476 views

PHP parsing stage

I seem to be a bind. I have this code below ... foreach ($items as $item) { ?> {exp:channel:entries channel="foo" search:field_name="<?php echo $item['some_key']; ?>"...
0
votes
2answers
88 views

Assets 2.3.2 Lib file - Causes PHP error

After updating to the latest versions of the Assets extension for Expression Engine. When I am logged in as a Super Admin I get the following PHP error, I don't get this error when logged in as a ...