2022 Developer Survey is open! Take survey.

Questions tagged [php]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Parse error when outputting stash with conditional inside php

I’m trying to output stuff collected and "washed" with stash with PHP in order to open and write to a file that then gets used as a json file.. pretty much. The output works, but as soon as ...
user avatar
0 votes
1 answer
24 views

Does Expression Engine 3.5+ work with PHP 7.4?

Hosting for the site is moving to a new server which will initially run PHP 7.2, but is slated to move to 7.4 soon. The documents show that 3.5+ will run on 7.2 but 7.4 is not mentioned. Will EE 3.5+ ...
user avatar
  • 1,068
0 votes
1 answer
49 views

Will EE 3.x work with PHP 5.6+

I am running a site on EE 3.5.17 and I am trying to determine which version of PHP I can use without causing issue or conflicts with existing plugins, which includes CartThrob 3.2. The EE ...
user avatar
  • 1,068
0 votes
1 answer
41 views

Allow PHP? not working in Expression Engine 2.11 templates

Has anyone experienced before having issues with the Allow PHP? option in the Templates not working? Suddenly, the server stopped recognizing the PHP code and it is now not able to show anything nor ...
user avatar
  • 133
1 vote
1 answer
297 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. ...
user avatar
0 votes
1 answer
24 views

PHP Issue: To execute another ur using PHP function file()

I have a PHP CRON script that use to execute the external url using the code below every 5 minutes: echo file("https://..."); This line of code is not working after i upgrade my server from ...
user avatar
0 votes
0 answers
36 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 $...
user avatar
  • 11
0 votes
1 answer
34 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' ...
user avatar
  • 1
0 votes
2 answers
55 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 '...
user avatar
  • 450
0 votes
2 answers
5k 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: ...
user avatar
  • 1,068
0 votes
2 answers
54 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 ...
user avatar
  • 3,562
0 votes
1 answer
83 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 ...
user avatar
2 votes
1 answer
209 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/...
user avatar
  • 193
1 vote
0 answers
84 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 ...
user avatar
0 votes
1 answer
29 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 ...
user avatar
0 votes
1 answer
64 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 ...
user avatar
  • 322
2 votes
1 answer
1k views

How to download Expression Engine version 3 and 4?

Please guide me how to download Expression Engine version 3 and 4.
user avatar
0 votes
1 answer
157 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 ...
user avatar
  • 1
0 votes
1 answer
81 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 ...
user avatar
0 votes
1 answer
64 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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
0 votes
1 answer
29 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 ...
user avatar
  • 101
2 votes
2 answers
198 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 ...
user avatar
  • 121
1 vote
0 answers
32 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 ...
user avatar
  • 137
1 vote
1 answer
859 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=...
user avatar
  • 13
1 vote
0 answers
79 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 ...
user avatar
2 votes
1 answer
95 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 ...
user avatar
  • 322
0 votes
1 answer
210 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 ...
user avatar
0 votes
2 answers
270 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 ...
user avatar
  • 589
1 vote
1 answer
84 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::...
user avatar
2 votes
1 answer
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/...
user avatar
  • 322
1 vote
0 answers
250 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 ...
user avatar
1 vote
0 answers
100 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 ...
user avatar
  • 295
1 vote
2 answers
88 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....
user avatar
  • 31
0 votes
1 answer
247 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. ...
user avatar
1 vote
1 answer
57 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.
user avatar
  • 741
0 votes
1 answer
103 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 ...
user avatar
  • 133
-1 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
117 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. ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
65 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 ...
user avatar
  • 1
0 votes
1 answer
290 views

Ee 3 and Php 7 and mamp

I switched my local install over to php 7 and when I tried to navigate to my ee install it threw a mysqli_connection.php error, that said this: SQLSTATE[HY000] [2002] No such file or directory It ...
user avatar
  • 166
1 vote
1 answer
133 views

How to include an html encode php script in a layout template?

Am trying to include an html encode php script on the very top of a layout template. Am allowing php to execute on this layout template, however I end up with something like this {!-- ra:...
user avatar
  • 98
0 votes
1 answer
217 views

$_POST empty but transferred

I am trying to access PHP's $_POST array from a template, using PHP within the template and have the expiration_date of the entry updated. The $_POST is empty, although the form is submitting to the ...
user avatar
  • 3
2 votes
2 answers
426 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 ...
user avatar
  • 1,610
1 vote
1 answer
92 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 ...
user avatar
  • 437
0 votes
0 answers
49 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 ...
user avatar
1 vote
1 answer
41 views

Wanting to filter results in EE tags

Busy developing some custom modules for EE. Everything is going swimmingly, except I can't seem to find any documentation on how to filter results in my modules tags. What I am looking to achieve is ...
user avatar
  • 13
0 votes
2 answers
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 ...
user avatar
  • 13

1
2 3 4 5 6