Jump to content

PHP error while editting e-mail templates


GeenStijl

Recommended Posts

Im getting the following error when i try to edit email templates:

We're sorry, but you cannot use "{php}" in a ticket submission as this is currently being used in exploit attempts. If you do have a legitimate issue, please press the back button in your browser and then change any instances of "{php}" to "(php)" so that your ticket may be submitted. Keep in mind that in the event that you're trying to exploit our system, that neither {php} nor (php) will function.

 

This started to happen after upgrading to 5.2.7

Link to comment
Share on other sites

did you look at your email template to see if {php} was present in the template

 

There is no {php} in the template. I could edit the template before upgrading..

 

Here is the template.

 

Dear {$client_name},

Thank you for ordering from ..., your server is setup and the information is below. Please keep this message for your records.

Voice Panel URL: http://www.domain.tld
Voice Panel E-Mail: {$client_email}
Voice Panel Password: {$client_custom_fields.0}
Voiceserver IP: {$service_custom_fields.0}
NOTE: Copy and paste the IP of your voiceserver and add it as wildcard A record to your domain DNS to use your domain name as your IP address.

Product/Service: {$service_product_name}
Payment Method: {$service_payment_method}
Amount: {$service_recurring_amount}
Billing Cycle: {$service_billing_cycle}
Next Due Date: {$service_next_due_date}

Thank you for choosing us.

{$signature}

Link to comment
Share on other sites

im curious if you remove all the smarty vars , everything in {} if it will work. Im thinking maybe those are not being assigned to smarty. Its a reach but we have to start somewhere. Try that and let us know if you get the same error. Meanwhile I will noodle over this..

 

- - - Updated - - -

 

also did you go from 5.2.6 to 5.2.7

Link to comment
Share on other sites

im curious if you remove all the smarty vars , everything in {} if it will work. Im thinking maybe those are not being assigned to smarty. Its a reach but we have to start somewhere. Try that and let us know if you get the same error. Meanwhile I will noodle over this..

 

- - - Updated - - -

 

also did you go from 5.2.6 to 5.2.7

I went from 5.2.6 with incremental patch to 5.2.7

Link to comment
Share on other sites

and I just saved {php} {/php} to mine ( I have a later version though) to test and it saved it just fine. I also did a search for the error message itself and did not find it in the script. Can you take a screen shot of the page with the error on it for us please so we can see it.. thanks.

 

- - - Updated - - -

 

might I make a suggestion here. 5.2.8 is a security patch. go to 5.2.8 and see if it still happens. You have at last 4 security patches ahead of you http://docs.whmcs.com/Changelog:WHMCS_V5.2#Version_5.2.7

Link to comment
Share on other sites

Before i did a clean install i made a backup of my current installation and compared the directory includes and includes/classes which had duplicate Smarty, TCPDF and PHPMailer directory. I assume that was causing the problems. The clean install solved the problem.

 

Thanks for your time and help durangod!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated