Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
33 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 ...
0
votes
0answers
9 views

Return null at the very begging of a module

Does anyone know what does it means and why do I have to add this snippet at the very beginning of my module in the main file? mod.my_module.php public $return_data = NULL;
0
votes
0answers
28 views

Problem connecting to EE website

I’ve been experiencing intermittent problems connecting to a website running on ExpressionEngine 3.5.10 - I’m not sure if the problem lies with EE or the hosting. Often I’ll see a browser’s “Unable ...
0
votes
0answers
191 views

How to solve The upload path does not appear to be valid

I have successfully integrated ckfinder and ckeditor. but when I upload the image it shows message Unknown error and The upload path does not appear to be valid. How to fix it? I need you help all ...
0
votes
1answer
30 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
27 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 ...
0
votes
1answer
25 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 ...
2
votes
2answers
66 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 ...
1
vote
0answers
22 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 ...
0
votes
0answers
63 views

check whether is uploaded file is mp3 or not .(if chenge the name of dll or exe to mp3 is not to upload)

if(isset($_REQUEST['add_audio'])) { $mp=$_FILES['audio_song']['tmp_name']; $audio_song=$_FILES['audio_song']['name']; $ext = pathinfo($audio_song, PATHINFO_EXTENSION); ...
0
votes
0answers
11 views

Return Query Results From Ext Database

Using the following: http://360adaptive.com/connecting-to-multiple-databases-in-expressionengine/ I created a second database, and a template (php on>input), but when trying to establish and echo ...
1
vote
1answer
210 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=...
1
vote
0answers
43 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 ...
2
votes
1answer
32 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 ...
0
votes
1answer
69 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 ...
0
votes
2answers
116 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 ...
1
vote
1answer
50 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::...
1
vote
1answer
735 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/...
0
votes
0answers
27 views

EE1 and empty field after MySQL update

Sorry for my English. ;( Now i’m using EE1. My server administrator update PHP and MySQL and now in CP i see empty fields. I do not remember what versions were before. Now: PHP 5.4.45 and MySQL 5.5....
2
votes
0answers
124 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 ...
1
vote
0answers
68 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 ...
1
vote
2answers
61 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.0003s 1....
0
votes
1answer
137 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. ...
1
vote
1answer
48 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.
0
votes
1answer
61 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 ...
-1
votes
1answer
26 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 ...
0
votes
1answer
76 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. ...
1
vote
1answer
684 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
26 views

Parsing entries using custom field in session storage

Hey There friends of the forums, First time posting, so please forgive any miss conduct. I am trying to develop search functionality for my web page based on json results returned from an API ...
0
votes
1answer
197 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 ...
0
votes
0answers
10 views

Php Error - for Entry Creation

I keep getting this error everytime I want to update an entry. This entry already has a built in map service and it's not functioning properly. I'm using PHP version 5.4 Can you help?
1
vote
1answer
117 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:...
0
votes
1answer
146 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 ...
2
votes
2answers
330 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 ...
1
vote
1answer
66 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 ...
0
votes
0answers
36 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 ...
1
vote
1answer
32 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 ...
0
votes
2answers
27 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 ...
0
votes
1answer
159 views

php template shows code in {}

I use php templates when I need to send notification emails to multiple people. Since upgrading to EE 2.10, I have noticed that when I echo the code, before the code that I am echoing, there is a ...
8
votes
5answers
2k views

ExpressionEngine on PHP7

PHP 7 Release Candidate 7 came out today. Rasmus Lerdorf has been giving talks on the advantages of PHP7 including benchmarking against many popular PHP applications -- for example here's the ...
1
vote
1answer
46 views

Duplicating an entry based on entry_id

I'm having a small issue creating a script that take in an entry_id, and based on that creates a new carbon copy entry with a new entry_id. I've got this working, however as it stands now i'm forced ...
1
vote
1answer
44 views

Code-driven way to enable PHP parsing on a template

Still a bit new with EE2, but I'm looking to be able to construct a way we can push changes up in environments, without having to sync up database-level stuff. Right now I have several templates that ...
0
votes
1answer
36 views

How to send email report of total channel entries in Expression egnine on daily basis

hi I am new to Expression engine I am getting total channel entries using EE Tag :- {exp:stats channel="products" site="default_site"}{total_entries}{/exp:stats} Now I want a email report that gives ...
0
votes
0answers
326 views

Can't get CodeIgniter Helpers to work in Custom Module

I have very limited experience developing custom modules for ExpressionEngine, but have managed to get an API integrated and working. Now I am trying to input data via a form, using CodeIgniters Form ...
2
votes
2answers
41 views

How to trigger P&T Assets to Update Indexes from a template

I have created a PDF generating tool that creates certificates for members, creates a sub-folder within a one of my file upload directories, then places the file into the new directory. I am trying ...
0
votes
0answers
73 views

Load framework outside of folder structure

OK so basically I'd like to load the EE framework and its container outside of an ExpressionEngine path... I know there's been some questions about this, but I haven't found a great answer, and it ...
0
votes
1answer
329 views

loading country code selection javascript file once per site visit

On my website I am displaying a country specific icon for the visitor. I'm doing this by setting a data-country variable in the head of the html document and loading a javascript file that sets the ...
0
votes
1answer
42 views

How to synchronize Template in Expression engine

I have three sites working in EE using MSM and I am using subscription addon of http://www.devdemon.com/documentation/subscriptions/#installing-and-updating-subscriptions I have created two templates ...