Questions tagged [php]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
56 views

How to trigger P&T Assets to Update Indexes from a template

I have created a PDF generating tool that creates certificates for members, creates a sub-folder within a one of my file upload directories, then places the file into the new directory. I am trying ...
2
votes
2answers
232 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 /xxx/system/expressionengine/libraries/...
2
votes
1answer
86 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 ...
2
votes
2answers
99 views

Including php code in Postmaster message

Has anyone experience in using php code in postmaster messages? I am developing a weekly email using parcels and have tried to include code as simple as echoes and prints but there has been no output....
2
votes
2answers
416 views

Really need help - Trouble with EE3, Addons, and server settings - ERRORS

I really need to get some help on this as I have reached out to EL, The Outfit, DD, etc. All have been helpful and eager to assist, but we can't resolve the issue. I have never run into issues like ...
2
votes
1answer
99 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 ...
2
votes
4answers
3k 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
146 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'); $this->EE->db->...
2
votes
1answer
700 views

Simulate date/time in PHP for Expression Engine

We're running an annual event website and we're keen to simulate the site for a different date. In other words, add say 3 months to the current date/time so we can try out some options for when the ...
2
votes
1answer
2k views

How to pass form data to external php script

I need to pass a value from a form to an external php script via a url, but my code isn't working. When I submit my form, I'm expecting the url to look like this: example.com/script.php?zip=12345 but ...
2
votes
1answer
82 views

How to make EE ignore database table prefix when writing your own queries

I'm working on an ExpressionEngine 3.5.10 website. All my tables are prefixed with exp_ I've added 3 tables to my database to store some data relating to a custom written PHP ecommerce module. These ...
2
votes
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 ...
2
votes
1answer
115 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 ...
2
votes
1answer
224 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 ...
2
votes
1answer
63 views

PHP Cart Object for Expresso:Store

Is there a cart object for Expresso:Store? Something like "$this->EE->cartObject" where I can access the items that is in the cart? The purpose of this is to find out which category the item is in and ...
2
votes
2answers
243 views

How to display entries from current category grouped by another category

I have content entries in a channel called resources. Resources primary categories are whitepapers and downloads. Secondarily, the entries are categorized by "brand" What I want to do is grab the ...
2
votes
2answers
144 views

Object of class EE_Session could not be converted to string in DevDemons forms

I've installed the latest version of DevDemons Forms(3.3.5) When I navigate to the index page of the Control Panel I'll get the following error. A PHP Error was encountered Severity: 4096 Message: ...
2
votes
1answer
172 views

Capturing post processed template into PHP variable

Is there a way to capture in PHP a post processed version of an embed? I have a footer embed template. There are 2 rendered states for the footer, user logged in and not. What I would like to do is ...
2
votes
2answers
558 views

Solspace Freeform Pro no field types available

I recently bought freeform PRO(version 4.0.11) and upgraded my freeform(version 4.0.8) using the Solspace update method. When I navigate to the module page and select the tab field types the page ...
2
votes
1answer
106 views

Site was working, but this morning there is an error showing. mysqli_connection.php:117

I installed the site with whatever the version was 5 months ago. When I log into the control panel, I get this. I don't know what any of it means and I'm desperate to get my site up and running again. ...
2
votes
1answer
59 views

Hosting an external web app within EE pages

Not an EE developer, but trying to answer a question for a client. They have a database (oracle) that they know they'll need to create a custom front end for, but they want it to somewhat integrate ...
2
votes
1answer
461 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 ...
2
votes
0answers
133 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
1k views

Create tag pair variables

I now have my module working like I need it to and my single tag pair calls the correct function. But I'm wanting to create a tag pair that is common in most modules/plugins. Here is the function I am ...
1
vote
2answers
173 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
82 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
3answers
4k views

How do I force a jpeg image to download instead of open in a browser window?

I have a gallery page that lists medium and high resolution images of plants that users can download. However, the default behavior of a jpeg image inside an href is to open in the browser window. For ...
1
vote
2answers
65 views

Solspace and Structure conflict?

So this is my problem. I am using Structure for a site. But, I am also using Solspace Calender-- particularly for the ICS function more than anything. (So, if there is another option out there that ...
1
vote
1answer
166 views

Problem with External S3 Source in Assets 2.1.3 and EE 2.5.5

I get the following error when attempting to save an external source using Assets 2.1.3 in EE 2.5.5: Fatal error: Call to undefined method stdClass::result_array() in /home/active/public_html/...
1
vote
1answer
484 views

Deprecated hash replacement

EE is warning about a deprecated function from the NCE LDAP plugin: $encrypted_password = $this->EE->functions->hash(stripslashes($user_info['password'])); I see the replacement below, but ...
1
vote
2answers
779 views

Is there a way to access an embedded template variable with PHP?

Is there a way to access an embedded template variable with PHP? I thought maybe it'd be in the $_GET or $_POST var, but no such luck.
1
vote
4answers
574 views

how to convert $_GET and include from php to EE tags

How can i convert the following code to EE Tags? <?php if($_GET['rel']!='tab'){ include 'header.php'; } ?> I've used this with enabling the template to PHP, but i get the following error. ...
1
vote
1answer
34 views

Is it possible to use an extension in a template like a plugin?

I built an extension which works fine and I'm trying to make it work in my template but I don't know how to do and actually, I don't even know if it could work. My code looks like: class ...
1
vote
2answers
81 views

What fetch_template() really means?

Could you tell me please, what fetch_template() really means in ExpressionEngine? Debugger shows me an info like below and not only for ".head" template but for a few more templates. 0....
1
vote
1answer
85 views

Low Variables causes php 7 warnings in ee 3.1

I get some errors when using Low Variables in EE 3.1 with php 7. I don't have the issue when using php 5.6. So I'm using that. But it would be nice to use php 7. Is there any road map for making Low ...
1
vote
1answer
662 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: [ {exp:...
1
vote
1answer
95 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
1k 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
1answer
75 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
8k 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 : http://tageto.pnf-sites.info/developer/headcategory_controller/...
1
vote
1answer
286 views

How do I prevent users from entering HTML tags in a safecracker form?

I'm working on an EE powered website which also serves data to a mobile app. I'm trying to make a safecracker form, but one of the fields cannot have HTML code in it or the app breaks. How do I stop ...
1
vote
3answers
1k views

Freeform Pro check form submitted on same page return

Is it possible within Freeform Pro to set the return path of a form to the current page (ie. if the form is in the template "contact/index", set return="contact/index") and then when it loads the page ...
1
vote
1answer
179 views

ExpressionEngine API - Adding a category

I am wondering if it's possible to dynamically create a category using the Expression Engine API? To explain my issue a little, I'm reading a 3rd party SOAP API which returns me a list of categories ...
1
vote
1answer
120 views

Running a query within a class method

So i'm looking at http://ellislab.com/expressionengine/user-guide/development/usage/database.html I've used $query = $this->EE->db->query("SELECT channel_name FROM exp_channels"); many ...
1
vote
1answer
478 views

PHP not processed when Stash parses conditionals in the same template

I've got a template with PHP enabled and set to On Output, and any PHP at all is getting commented and printed, without being processed, in the HTML. Template (simplified): {embed=".header"} {exp:...
1
vote
1answer
143 views

wygwam error after move of server

I am new to ExpressEngine. One of my clients has a website built in EE by another developer. We have just moved the site to a new server, and now we are getting the following errors, if anyone can ...
1
vote
1answer
660 views

Using an IF ELSE statement to find user option & redirect appropriately

Very inexperienced with EE 2.4, but im experienced with PHP & HTML. I am attempting to use the following code to get variables from URL & then run an IF/IF ELSE statement: <?php $firstname=...
1
vote
1answer
81 views

Receiving error code that seems to be locking up the Edit Channel Search function

I am new to EE and hoping for some help. Currently using version 2.5.5. Received the following error code: A PHP Error was encountered Severity: 8192 Message: Non-static method Calendar_upd::...
1
vote
1answer
55 views

Expresso Store PHP 7

I have a site that has failed PCI compliance due to an older version of PHP. I need to upgrade the PHP install but need to know if Expresso Store v2.5.1 is compatible with PHP 7? Thanks for any help.