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

learn more… | top users | synonyms

1
vote
1answer
10 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
0answers
7 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 ...
0
votes
1answer
19 views

Will EE work with php 5.5.10 okay?

Quick question regarding whether anyone knows of any issues with installing EE on a server running the latest version of php (5.5.10 as I write this)?
1
vote
1answer
18 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
18 views

Remove .php extension from index.php. .htaccess file is putten were?

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 ...
0
votes
2answers
28 views

Church Community Builder API Not Working In Template

I am using an api from a third party developer that I can get to work outside of EE with a simple PHP include, but I can't seem to get it to work within a template. You will see that this page ...
2
votes
2answers
49 views

ExpressionEngine source control via git

Im trying use some form of source control with EE. I cannot clearly see a way to decouple the database from the templates and other structures, as would be the case in a most CMSes. Creating channels ...
1
vote
2answers
56 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
0answers
36 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 ...
0
votes
0answers
12 views

timestamp date comparison and functions

On my first EE project.. I have a matrix field which returns a timestamp date (when a course was completed), what I want to do is compare the date against todays date and return the number of days. ...
0
votes
0answers
18 views

Problem with executing PHP with expressione engine tag from Freeform (Solspace extension)

I have the following code <?php $startweek = '{freeform:field:week}'; echo $startweek; ?> <?php $date1 = $startweek; $date2 = '03-09-13'; function returnDates($fromdate, $todate) { ...
0
votes
1answer
42 views

Segment parsing and embedded PHP errors

So basically we need to check the pattern of a segment and if it doesn't match our patterns we go on to start our entries loop with a category (via seg2cat). if {segment_2} is a date, it's either ...
2
votes
1answer
41 views

Query a NON EE table in database?

I have a HTML table where a user can subscribe.I send an ajax call when the user clicks the subscribe button and store it in a non ee table.Next time when the user comes on the same page,I want to ...
1
vote
1answer
55 views

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

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 ...
1
vote
2answers
56 views

Creating A-Z index for entries

sorry again for my bad english... i'd like to create a A-Z list for my entries (recipes) and show them if i click on the related letter. This code below showing entries by first letter and it's ok ...
1
vote
1answer
21 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 ...
0
votes
1answer
47 views

Embedding PHP in EE tags or using equivalent expressions in PHP

There are so many essential things you simply can't do with EE; this is one I'm having issues with. What I want to do: Use AJAX to GET a template while sending data via the URL segments. In the ...
3
votes
2answers
619 views

jQuery AJAX POST data can't be accessed via PHP

The following allways evaluates if (isset($_POST["sort"])) as false: // Base template // Fired on click event (no JS console errors) $.post( "/path/to/ajax/target/", {sort: day} ); // AJAX target ...
2
votes
4answers
162 views

Very slow performance on production, not on local dev, doesn't seem to be the database

I'm running an ExpressionEngine site using CartThrob for a shopping cart. Some of the pages are loading extremely slowly on the production server (7, 10, 15 seconds of Controller Execution Time as ...
2
votes
1answer
27 views

“Date field is required” error when saving entries

I'm using Store to manage products with lots of modifiers. At some point, a product will reach a number of modifiers where it starts producing a "Date field is required" error every time I try to save ...
0
votes
0answers
32 views

Chained Select & Related Entries

I am trying to modify the chained select article @ http://johnhenry.ie/articles/chained-selects-for-expressionenginethis so that the first drop down will show all the parent entries and on select the ...
1
vote
1answer
38 views

Need Help Troubleshooting Custom Cartthrob Plugin

I have a custom plugin that was made by a previous developer. The client has asked for it to be modified to display all items ordered, instead of just one, and for some reason, the item name field is ...
1
vote
1answer
57 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 ...
2
votes
1answer
48 views

channel entries tag seems to run before my module function

The {exp:bmi_favorite:list_ids entry_type="recipe" site_id="1"} outputs 18|19 to be passed to the entry_id parameter. It does not work, unless I manually add the 18|19 into the entry_id, like ...
0
votes
1answer
259 views

Replacing Controller and function name with attribute in Codeigniter?

in htaccess or route.php where from you want you can give answer for this issue. I Need some thing like this.if i have url : ...
2
votes
1answer
43 views

Testing add-on with Mockery without rewriting all $this->EE->db calls?

I'm attempting to write unit tests for my EE module using Mockery. Throughout my module code I have lines like: $this->EE->db->select('channel_title, channel_id'); ...
0
votes
0answers
16 views

Solspace Primary Category PHP5.4 Compatability

I'm hoping someone else may be able to shed light/ a solution on this. I have a site that heavily uses Primary Category by Solspace, mainly for URL/ SEO work. It has been working fine on a server ...
1
vote
1answer
97 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" ...
3
votes
2answers
81 views

PHP conditional inside EE conditional - parse order problem

This is a bit of a hard one to explain, but I will do my best. If you need any clarification just ask :) I have a template that needs to display a list of 3 upcoming events, listed by date ascending ...
0
votes
1answer
50 views

Linking EE Members with a Bulk Email/SMS Application

I would like to export/link member data to an Email/SMS app. When a member registers I would like it to automatically add the new member details to the app and also be able to update details through ...
0
votes
1answer
72 views

how to solve following error of php?

Hello friends i am using magento and expression engine both in my site and for integration expression engine with magento i am using one module mage_integratee in that php file i get following error ...
0
votes
1answer
37 views

Store Data in Channel Tag Variable

I'm using the EXP:QUERY tag to get the count of a channel. And I am basically trying to use this for page pagination, and its a custom pagination because of the type of template I'm building. And I ...
0
votes
1answer
63 views

Error when sending email via Communicate

We just moved from development server to live server and are having issues with email settings, we get the following error when trying to send an email: Fatal error: Call to protected method ...
3
votes
2answers
161 views

upgrading multiple versions of EE to php 5.5

For security reasons we were recommended to upgrade to the latest version of php (from version 5.3 to version 5.5.X) to fix all the possible bugs out there for that version, however I'm a little bit ...
2
votes
1answer
59 views

Integrating my code with EE?

I have two select boxes and a submit button.On click of this submit button,I redirect the user to a page which is populated by data feeded from an admin panel. Yes,I have created an admin panel which ...
0
votes
1answer
91 views

Expression Engine PHP & Embed & entry_id_from

i have the following Line: {exp:channel:entries channel="orders" entry_id_from="{embed:LAST_ID}" sort="desc" dynamic="no"} LAST_ID file : <? include '!mysql.php'; $last_id = ...
0
votes
1answer
59 views

get function value in a plugin

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 { ...
1
vote
1answer
48 views

What are the implications running EE 2.7 on php 5.1?

We've been developing a mayor update for one of our clients website. Their current website runs EE 2.5. We've made the change to 2.7 for several obvious reasons. And everything worked beautifully on ...
1
vote
1answer
21 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}'; ...
0
votes
1answer
57 views

Expression engine Classes

New to using Expression Engine Classes and not sure how to use the Email class. I created the class and placed it within my template, but now i get a Parse Error. Again new to EE. How would I go ...
2
votes
1answer
69 views

Expression Engine PHP Error Log

How can i find or get an PHP Error Log? Not server-side, only on Expression Engine Level. On my server i can see an error log but to fix a problem with assets, i need a EE-side php error log.
1
vote
1answer
75 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 ...
3
votes
2answers
136 views

Entire site down - Seemingly random (and fatal) ExpressionEngine error

Every so often, my entire site goes down for an indefinite period of time. Restarting the MySQL service appears to temporarily fix the issue. I recently upgraded to EE 2.7 and about the same time my ...
0
votes
2answers
188 views

Server upgrade PHP 5.4 - Any issues?

I've just been emailed from my site host stating they will upgrade the servers to PHP 5.4.19. We're hosting a number of sites with them and all range from EE2.2 - EE2.5. The thing that sparked my ...
1
vote
1answer
91 views

Is there a good eCard/eVite Solution available?

For several years I have been using this simplEcard solution for a site and this year it appears that the gap between the last update to the solution and the 5.2x version of PHP has grown too wide and ...
0
votes
2answers
59 views

Wrong PHP parsing order in snippet

I'm trying to parse a global variable inside a snippet that represents my page footer, and I want to perform a string function on the content of that variable. The snippet is being called into a ...
0
votes
1answer
75 views

Passing preload_replace variables into a plugin

I've been working on my first EE plugin today, and I need to make it dynamic by passing either a PHP variable, or I would have thought I can use a preload_replace variable, from the template that ...
0
votes
2answers
99 views

PHP Errors - possible firewall block?

On the site, the errors shown below are appearing on the bottom of the home page, and also appear when I try and complete a SagePay test payment. Doing a bit of digging, it appears it may be ...
0
votes
0answers
136 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
1answer
213 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 ...