Questions tagged [php]
PHP is an open source general-purpose server-side scripting language.
266 questions
0
votes
1
answer
62
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....
0
votes
1
answer
106
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 ...
0
votes
1
answer
75
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(...
0
votes
1
answer
125
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+ ...
0
votes
1
answer
81
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 ...
0
votes
1
answer
139
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 ...
1
vote
1
answer
555
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.
...
0
votes
1
answer
51
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 ...
0
votes
0
answers
98
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
$...
0
votes
1
answer
71
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
2
answers
112
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
2
answers
8k
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
2
answers
100
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 ...
1
vote
1
answer
192
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
1
answer
280
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/...