Questions tagged [php]

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

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

The requested URL was not found

I have Apache/2.4.48 on Windows + PHP version 8.0.8. When I write www.sitename.com everything is OK - the website is online, but when I clicked on the same link in Facebook, the address become: www....
user13186's user avatar
0 votes
1 answer
40 views

Update expression engine channel entry content

I'm new to expression engine so my question might not sound right to most people. I'm trying to update the content for a channel entry but not sure whether it's possible or not. I checked the channel ...
Afifa's user avatar
  • 1
0 votes
1 answer
13 views

Expresso Store get cart items in PHP

EE: 6.3.4 I am aware that Expresso Store is discontinued. I would like to be able to get the contents of the user's current cart in PHP. The answer here does not work (ee()->store_cart->contents(...
Shayne's user avatar
  • 317
0 votes
1 answer
62 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+ ...
forrest's user avatar
  • 1,068
0 votes
1 answer
51 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 ...
forrest's user avatar
  • 1,068
0 votes
1 answer
82 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 ...
Leo's user avatar
  • 133
1 vote
1 answer
396 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. ...
Bruce Stanley's user avatar
0 votes
1 answer
26 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 ...
Lukas Tan's user avatar
0 votes
0 answers
58 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 $...
shbchk's user avatar
  • 11
0 votes
1 answer
36 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' ...
Graham's user avatar
  • 1
0 votes
2 answers
60 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 '...
BNetz's user avatar
  • 470
0 votes
2 answers
7k 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: ...
forrest's user avatar
  • 1,068
0 votes
2 answers
59 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 ...
JCOGS Design's user avatar
  • 3,587
1 vote
1 answer
126 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 ...
Chris Brown's user avatar
2 votes
1 answer
221 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/...
Shayne's user avatar
  • 317
1 vote
0 answers
93 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 ...
phfeiler's user avatar
0 votes
1 answer
32 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 ...
Elizabeth G's user avatar
0 votes
1 answer
71 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 ...
Andy's 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.
Ishwar Ghiya's user avatar
0 votes
1 answer
169 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 ...
shuka's user avatar
  • 1
0 votes
1 answer
88 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 ...
ByteMyPixel's user avatar
0 votes
1 answer
66 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 ...
Vky Arain's user avatar
1 vote
1 answer
35 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 ...
Marcuzio Developuzio's 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 ...
Marcuzio Developuzio's 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 ...
vin's user avatar
  • 101
2 votes
2 answers
200 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 ...
MagRat's user avatar
  • 121
1 vote
0 answers
35 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 ...
DanH's user avatar
  • 137
1 vote
1 answer
898 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=...
Satain's user avatar
  • 13
1 vote
0 answers
87 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 ...
Bhashkar Yadav's user avatar
2 votes
1 answer
100 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 ...
Andy's user avatar
  • 322
0 votes
1 answer
214 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 ...
user9179's user avatar
0 votes
2 answers
283 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 ...
pixldev's 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::...
B. Topping's 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/...
Ty Morton's user avatar
  • 322
1 vote
0 answers
254 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 ...
Peter Eastwood's user avatar
1 vote
0 answers
101 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 ...
Kippi's user avatar
  • 295
1 vote
2 answers
89 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....
Bosmi's user avatar
  • 31
0 votes
1 answer
253 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. ...
Peter Eastwood's user avatar
1 vote
1 answer
60 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.
mediapimp's 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 ...
Leo's 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 ...
Muhammed Thaha K's user avatar
0 votes
1 answer
118 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. ...
Kieran McClung's 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 ...
Rakesh Angre's user avatar
0 votes
1 answer
69 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 ...
Dee's user avatar
  • 1
0 votes
1 answer
291 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 ...
Chris B's user avatar
  • 166
1 vote
1 answer
134 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:...
Noor M's user avatar
  • 98
0 votes
1 answer
220 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 ...
gonn's user avatar
  • 3
2 votes
2 answers
427 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 ...
W3bGuy's 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 ...
Diederik's 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 ...
Don Rhummy's user avatar

1
2 3 4 5 6