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

learn more… | top users | synonyms

2
votes
2answers
18 views

Object of class EE_Session could not be converted to string in DevDemons forms

I've installed the latest version of DevDemons Forms(3.3.5) When I navigate to the index page of the Control Panel I'll get the following error. A PHP Error was encountered Severity: 4096 ...
0
votes
2answers
22 views

System folder & database.php path

I moved my system folder above the root and was updating the database.php file and was confused about the correct path for one of the settings. Should it be: $db['expressionengine']['cachedir'] = ...
0
votes
1answer
30 views

ExpressionEngine, php and stash - scope problem, please help

I'm hugely grateful for a resource like stackexchange and the really useful posts. I've researched the problem I'm having for a couple of days now and am seriously stuck - so any help is massively ...
0
votes
0answers
9 views

Calculate Total amount of value in custom_fieldtype in Purchased Items in CartThrob

I’m trying to do this with “purchased items” entries. When a product is bought, i add two item_options to it. They are: item_options:purchased_designer=”{author_id}” ...
0
votes
1answer
18 views

Creating session data in EE plugin

I am building an EE plugin and need to store some information in a session. How can I save and retrieve information from a session in an EE plugin? Thanks
0
votes
1answer
17 views

301 Redirect URL Appending Query String

From yesterday, I'm trying this 301 url redirect but its not working as expected. Please help me with this. here is the .htaccess file code. Options +FollowSymLinks +SymLinksIfOwnerMatch -MultiViews ...
0
votes
1answer
35 views

EE1 plugin that outputs data from third-party oracle database, can I cache?

I developed a plugin that pulls data from an oracle (oci8) database. One function in the plugin returns hundreds of rows and the page takes about 5 seconds to load. I have caching turned on, so when ...
0
votes
1answer
18 views

Can snippets contain PHP?

The documentation says: Snippets are expanded at a very early stage on each template, making it possible for them to hold dynamic content, ExpressionEngine tags, other variables, PHP, etc. ...
0
votes
1answer
12 views

Other module tags inside tag data causing issue

I am creating a small plugin, and am having an issue. I am using Carthrob for my e-commerce, and want to take some information into the tag data for my plugin. My tag is the following: ...
0
votes
2answers
35 views

Using an EE date tag with formatting in php code

I'm using some php code (output parsing) in a template, between {exp:channel:calendar} tags. I have a line assigning the value of a custom date field to the php variable %endDate. Then, I need to test ...
-3
votes
1answer
27 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
48 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
40 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
1answer
29 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
17 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
30 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
40 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
3answers
52 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
54 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
40 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
64 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
2answers
31 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
61 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
46 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
70 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
24 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
46 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
30 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 ...
1
vote
2answers
51 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
63 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
49 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
37 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 ...
3
votes
1answer
206 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
72 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
51 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
77 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
90 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
67 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
53 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
98 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
45 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
109 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
70 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
54 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
76 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
29 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
59 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
161 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
58 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 ...

1 2