PHP is an open source general-purpose server-side scripting language.
-3
votes
1answer
23 views
How to disable expression engine URL
want to disable the SEO URL structure of Expression engine, i don't understand how to do that
0
votes
1answer
37 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
...
0
votes
0answers
30 views
ERR_EMPTY_RESPONSE
I am experiencing a somewhat baffling issue I've never seen before. In production, my EE site is intermittently crashing and returning a ERR_EMPTY_RESPONSE message to the browser. I can fix the site ...
0
votes
0answers
10 views
Problems with using NSM Config Bootstrap
I am unsure as to who may know about this but I have already installed a website and started putting all the common things together in the site like templates pages etc.
I then tried to use the ...
0
votes
1answer
24 views
How do I pass a variable to mySQL without using the query module?
I can echo the current entry_id but when I try to pass that variable to a mySQL statement, it doesn't work.
{exp:channel:entries channel="test" entry_id="20"}
<?php
$entry_id = '{entry_id}';
...
0
votes
1answer
12 views
Carthrob on authorize hook extension
I am creating an extension to save some data from orders through CT into a new db table.
My code is causing this error message:
Object of class CI_DB_mysql_result could not be converted to int
...
0
votes
1answer
24 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 ...
0
votes
1answer
31 views
Recovering from a site hack, preventing another one
I am trying to help someone recover from a hack and prevent a further incident. They are running version 1.7.3. The result of the hack was modified index.php files in the root and system folders ...
0
votes
2answers
42 views
Structure-like behavior from Channels/Relationships (EE 2.6.1)
Some of my clients need to add what I would call "ad-hoc" pages to their sites. As many have pointed out, this is (a) somewhat contrary to the spirit/concept of EE channels and (b) when necessary, ...
0
votes
1answer
31 views
Site Error: Unable to Load Site Preferences in MSM site
I recently installed a version of EE on my local machine(Mamp Pro), v2.5.5 - Build Date: 20121220. I set this site up as per usual and started building my initial site templates etc ready for the ...
1
vote
1answer
30 views
Expression Engine 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
55 views
Avoiding syntax errors with PHP and strings with quotation marks
What is the best practice for manipulating strings with PHP (output mode) that might contain straight quote marks (single or double)? I'm not totally clear how EE stores and outputs these normally, ...
0
votes
1answer
19 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.
0
votes
2answers
56 views
PHP error on template export, after upgrading to 2.6
Getting the following when I try to export any template group...
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Design::$api
Filename: cp/design.php
Line Number: 3516
...
1
vote
1answer
43 views
Dates before 1900 (even 1800) in EE 2.6?
With the changes to the way dates are handled in EE 2.6, can dates be set prior to 1900 (or even 1800) using the Date form field?
2
votes
3answers
60 views
Why are PHP and Stash variables not set as expected within EE conditionals?
I boiled my problem down to this template code on a template with "Allow PHP" set to "YES" and "PHP Parsing Stage" set to "Output":
{if 1 == 1}
First block
<?php echo '1 == 1 is true'; ?>
...
1
vote
1answer
21 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
34 views
Grab logged_in user info in PHP template and assign variables
can you help me writing this lines of code for grab in a EE template the information about a logged_in user, using php.
I'm using Vanilla Forum, and i want to use the JsConnect to pass the logged_in ...
2
votes
1answer
27 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 ...
0
votes
2answers
39 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
3answers
53 views
Passing ID’s from a query to Channel Entries
I'm using quite a complex query using exp:query to generate the member ID's of members who have certain data in a custom field.
I'm struggling on how to pass the generated ID's onto a channel entries ...
2
votes
1answer
35 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
34 views
Get array of entries based of catagory
I'd like to start editing a template, the template uses php to create an array. Is their documentation about how to only get an array for a certain category? Or are they channels? Sorry.
I can't ...
2
votes
1answer
162 views
Expression Engine Rich Text Editor Tools
I'm trying to follow along with the rich text editor documentation in expression engine, but it's a little unclear to me:
http://ellislab.com/expressionengine/user-guide/development/rte_tools.html
I ...
0
votes
1answer
68 views
Need to “front load” Matrix content
I have a (P&T) Matrix storing related entries from a channel where the entry_date for each entry is being used as a go-live date. Each row with its related content and more displays as its own ...
1
vote
4answers
43 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 ...
1
vote
1answer
64 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"}
...
4
votes
2answers
81 views
Twitter Search 2 Plugin PHP Error (stdClass::$to_user_id_str)
Some of my ExpressionEngine (EE2) websites that run Twitter Search 2 by Exp:resso have recently started throwing out PHP Error Notifications, and I can't see why.
A PHP Error Was Encountered
...
3
votes
2answers
59 views
increase upload_max_filesize with php.ini
I'm trying to increase the upload file size for my EE installation to 120MB. I have verified that I can modify these settings with my hosting service by adding a php.ini file to my webspace and ...
0
votes
0answers
48 views
A PHP Error using Champagne 2 Module
I have loaded the Champagne 2 (Mighty Big Robot - no support) Module to EE and when I try and use it I just get a bunch of PHP errors listed below. Looks like it might be some sort of conflict.
Any ...
1
vote
2answers
87 views
How to pass php variable from one EE template to another
I am using a Freeform Pro form where the user can edit a numeric field (number of of places booked for an event). When they click on submit, they are sent to a processing template to do the ...
4
votes
1answer
27 views
How to find out what class/function has invoked extension hook?
I have an extension that relies on certain extension hook.
The hook can be invoked either by function from EE core or third-party module.
I need to be able to tell what function / class has invoked ...
2
votes
2answers
42 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 ...
3
votes
3answers
104 views
CE Image - Only generating half the images?
I've recently moved an EE site to a new server (a reasonably beefy VPS from Memset), after lots of hunting around changing paths, I've the site working with only one problem. CE Image is used on the ...
3
votes
2answers
67 views
PHP inside a User loop — what am I doing wrong?
On an article page, I'm trying to output "more from this author" using the User add-on from Solspace.
Unfortunately, there's a bug in the current version that prevents this from working:
...
1
vote
1answer
49 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 ...
2
votes
1answer
70 views
WYGWAM PHP errors in CP after upgrade
A PHP Error was encountered
Severity: Notice
Message: Undefined index: config
Filename: wygwam/helper.php
Line Number: 535
A PHP Error was encountered
Severity: Notice
Message: Undefined index: config
...
1
vote
1answer
28 views
Information isn't updating & tracing
When submitting my form that stores my facebook id it is sent to the method save_settings(). No matter what I do I can't dump variables or echo them out to see what is being sent, so I think this is ...
4
votes
1answer
56 views
ExpressionEngine - I'm a beginner, have I set up my Channels correctly?
I'm a beginner at ExpressionEngine, so I'm wondering if this is actually the right way to do things. Here's how my site is laid out:
Construction
List of Construction case studies
Case Study 1
...
3
votes
2answers
135 views
Can't programmatically log member in
Can someone explain to me why I am not capable of forcing a new ExpressionEngine session to be generated for a specific user? I've been following this link: ...
1
vote
1answer
56 views
EE 2.5.5 Discussion Forum banner customization
I'd like to have the flag banner in our Expressionengine Discussion Forum appear only on the forum homepage.
I'm taking a college php class but we haven't gotten far enough for me to know how to ...
3
votes
1answer
104 views
undefined constants FALSEOR and FALFALSEORFALSE
In a template I was working on recently, I started to get PHP Notices about undefined constants FALSEOR and FALFALSEORFALSE:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined ...
4
votes
2answers
49 views
Is it possible to run ExpressionEngine along side a Cake PHP site?
I've been asked to add a CMS to an existing Cake PHP driven site. Cake PHP doesn't appear to drive much of the site outside of URL structure, templates and forms (there is no content management).
The ...
4
votes
1answer
90 views
How Can I Stop a Progress Bar at 100%, When Donations Exceed That Amount?
This maybe more of a PHP solve, but the website is in ExpressionEngine. I'm using a Matrix field, Store to process donations, and reverse relationships.
I basically set-up a progress bar using some ...
2
votes
1answer
72 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 ...
4
votes
2answers
160 views
How to run a php script silently (like a cron job) from an EE template
I've got a PHP script that updates an entry's status depending on certain criteria being met. I was planning on running this script as a cron job on my web server every hour.
It'd also be nice if I ...
4
votes
2answers
59 views
How to check the EE version number via PHP?
I'm writing an add-on and need to check the current EE version from PHP. What is the best way to get the current ExpressionEngine version?
1
vote
2answers
150 views
check if an entry has a certain playa parent
I'm looping through my entries, and I want to check if my entry has a certain entry as his playa parent.
Right now I'm using this code, which works, but I'm wondering if it can be done without PHP.
...
3
votes
2answers
70 views
Is there a way to define snippets in the index.php or config.php file?
I'd like to define snippets dynamically in the index.php file.
Is there a way to do this?
3
votes
2answers
42 views
Hide Category in Forum Breadcrumb
Is it possible to globaly hide the category-name in the Forum-Breadcrumb? {include:breadcrumb} includes the «Forum Home», Category, Forum and Title — but I wan't to get rid of the category.
What do I ...

