close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Parse error: syntax error, unexpected 'if' (T_IF) in /Applications/MAMP/htdocs/Shop_2019/webassist/email/waue_quote_success_international_1_body.php on line 12

Thread began 9/06/2019 10:40 am by Roxana | Last modified 9/07/2019 2:48 pm by Ray Borduin | 2504 views | 8 replies |

Roxana

Parse error: syntax error, unexpected 'if' (T_IF) in /Applications/MAMP/htdocs/Shop_2019/webassist/email/waue_quote_success_international_1_body.php on line 12

After updating the Universal Email behavior to MySQLi and working out most of the error messages, this one I can't solve.

The same error is repeated multiple times on the page (line number shows in red), but only has one notification.

Supposedly it is a missing semicolon in the row before, but I don't think that applies here.

Sign in to reply to this post

Ray BorduinWebAssist

Two things... first you need to declare globals for any objects that are created on the main page and referenced in the email body, so you have to add this to the top of the page:

php:
<?php

global $segufix$rscontent;
?>


Then on the line referenced in the error you have:

php:
if (!$segufix->IsEmpty());     {



It shouldn't have the semicolon... it should just be:

php:
if (!$segufix->IsEmpty())     {
Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

I made the change. It is still showing the parse error. It also still shows the line numbers in red.

Sign in to reply to this post

Ray BorduinWebAssist

You still have the extra semi-colon..

if (!$segufix->IsEmpty()); {?>

should be:
if (!$segufix->IsEmpty()) {?>

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Sorry, I must have forgotten to save. I also removed a semicolon from line 43. It is still not working though

Sign in to reply to this post

Ray BorduinWebAssist

What is the current error?

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Parse error: syntax error, unexpected 'if' (T_IF) in /Applications/MAMP/htdocs/SEGUFIX-Shop_2019/webassist/email/waue_quote_success_international_1_body.php on line 15

Sign in to reply to this post

Ray BorduinWebAssist

update lines 14-16 to:

php:
<?php  //WA eCart Show If Start

 
if (!$segufix->IsEmpty())     { 
  
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Thank you, that helped, also with similar parse errors.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...