Questions tagged [php]

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

Filter by
Sorted by
Tagged with
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 $...
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 ...
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
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
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
2answers
189 views

Uncaught Error: Class 'PDO' not found when I upgrade to PHP 7.2

I am running EE 5.3.0, hosted on Media Temple. I have been trying to upgrade to PHP 7.2 but when I do I get the white screen of death with the following error message in ee_wizard: Fatal error: ...
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
2answers
45 views

How can I get EE to showing new programatically created entries immediately away after creation?

I have an EE (5.2.6) system to which I am adding new entries programmatically: the new entries are created during an AJAX call to an EE template that creates the new entries using php / EE Model via ...
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
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 ...
2
votes
1answer
141 views

Creating Custom Libraries In ExpressionEngine

In EE I am trying to create a php class that will query an API. When I look at the documentation for creating your own library classes (here: https://docs.expressionengine.com/latest/development/...
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 ...
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 ...
2
votes
1answer
813 views

How to download Expression Engine version 3 and 4?

Please guide me how to download Expression Engine version 3 and 4.
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
127 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 ...
0
votes
1answer
67 views

What's the best way to search for specific terms in files?

I have a situation where the client will be uploading a ton of pdf files, and then on the front-end we need a tool to search for key-terms within these files. Sometimes that key-term is in the file ...
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 ...
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 ...
0
votes
1answer
49 views

How to set adaptive web design in ExpressionEngine

I am new in web development. and I wants to use the adaptive web designs in expression engine. can any help me that how we will use multiple screen sizes (Desktop, Mobile, Tablet) templates in ...
0
votes
1answer
37 views

Parse some data with a plugin before sending as a email (plain text)

I'm trying to create a plugin to greet depends on the time of a day with a different phrase. The plugin works correctly on the ExpressionEngine environment but at the moment is not able to send any ...
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
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/...
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 ...
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 ...
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 ...
0
votes
1answer
429 views

loading country code selection javascript file once per site visit

On my website I am displaying a country specific icon for the visitor. I'm doing this by setting a data-country variable in the head of the html document and loading a javascript file that sets the ...
1
vote
1answer
622 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=...
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 ...
2
votes
1answer
76 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 ...
0
votes
2answers
239 views

how do I get cartthrob order items using only php

This question came out of discussion of a way to speed up cartthrob order/order items output. Using only a php solution, is it possible to display all cartthrob order item info? The goal is very ...
0
votes
1answer
684 views

Looking for print_r or var_dump equiv for channel:entries row

I'm new to expressionengine, and am looking to understand the channel:entries loop better. In the interest of that, I've been looking for something that allows me to print_r or var_dump a channel:...
1
vote
1answer
78 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::...
0
votes
1answer
55 views

Post-Ugrade Problem with 3.3.1

Fatal error: Call to a member function getId() on null in ~/system/ee/legacy/libraries/Session.php on line 398 The $member object (re: $member = ee('Model')->get('Member', $member_id)->first();) is ...
2
votes
1answer
2k views

PHP 7 Error with ChannelImages: Fatal error: 'continue' not in the 'loop' or 'switch' context in…

I'm getting this error when trying to upload an image with ChannelImages 5.4.19 with EE 2.11.7: Fatal error: 'continue' not in the 'loop' or 'switch' context in /home/omart/public_html/system/...
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
2answers
79 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....
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. ...
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
1answer
643 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
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.
0
votes
1answer
1k views

Which technologies are used in Expression engine

Expression Engine is based on codeignitor framework and codeignitor is developed using core PHP but I want to know which technologies are used by expression engine like it uses angular js,ember js etc....
0
votes
1answer
97 views

Memory exhausted when uploading images

I am breaking my head with this issue for several days. I am using Expression Engine 2.11.1 When trying to upload an image using the File Upload feature, I am getting the following error Fatal ...
-1
votes
1answer
27 views

Deployment server feautures [closed]

Help me to deploy expressionengine in Linux CentOS Server… Medium traffic website, we have 255 MB of database, 55 GB of static file. Provide me with proper webserver, database server, hardware ...
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 ...
0
votes
1answer
105 views

Is it possible to bypass required fields when using {freeform:submit_previous}

I've got an issue with Solspace Freeform whereby the required field error message is being triggered if the user chooses to go the previous page without entering any information on the current page. ...
8
votes
5answers
3k views

ExpressionEngine on PHP7

PHP 7 Release Candidate 7 came out today. Rasmus Lerdorf has been giving talks on the advantages of PHP7 including benchmarking against many popular PHP applications -- for example here's the ...

1
2 3 4 5 6