TOPIC:

Fehler beim Versenden 1 year 7 months ago #260752

  • Topic Author
  • deevau
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 34
  • Thanks: 0
Hallo,
ich kann das Formular nicht mehr absenden.
Folgende Fehlermeldung wird ausgegeben: syntax error, unexpected '"SendBulkMails.com"' (T_CONSTANT_ENCAPSED_STRING), expecting ')'

Hat jemand eine Idee?

Please Log in or Create an account to join the conversation.

Fehler beim Versenden 1 year 7 months ago #260753

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 161
Hi,

maybe is a problem with some custom code in the form, did you inserted any code in the form?

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Last edit: Post by Mirec.

Fehler beim Versenden 1 year 7 months ago #260754

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 778
Hi,

I hope we can continue in English.

Are you using some custom code in your form->Advanced->More options-> Submit pieces/Form Pieces/Scripts?

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Fehler beim Versenden 1 year 7 months ago #260755

  • Topic Author
  • deevau
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 34
  • Thanks: 0
Yes because of spam i've inserted custum code

$this->execPieceByName('ff_InitLib');
if( ff_getSubmit('message_text') != '' )
{
exit; // well, it should be empty
}

// Prüfung ob Felder Bad-Words enthalten
$badWordsArr = array("http","www",".ru","My name is","visit", "your website", "Your domain name", "medical" "SendBulkMails.com");
$checkFieldsArr = array('Nachricht');
foreach ($checkFieldsArr as $Fld) {
$FldVal = ff_getSubmit($Fld);
$matches = array();
$matchFound = preg_match_all(
"/\b(" . implode($badWordsArr,"|") . ")\b/i",
$FldVal,
$matches
);
if ($matchFound) {
ff_die("Vielen Dank!");
}
}

Please Log in or Create an account to join the conversation.

Fehler beim Versenden 1 year 7 months ago #260756

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 778
Hi,

in this part of code:
$badWordsArr = array("http","www",".ru","My name is","visit", "your website", "Your domain name", "medical" "SendBulkMails.com");
you missed comma.

The code should be like this:
$badWordsArr = array("http","www",".ru","My name is","visit", "your website", "Your domain name", "medical","SendBulkMails.com");

Let me know the result

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Fehler beim Versenden 1 year 7 months ago #260757

  • Topic Author
  • deevau
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 34
  • Thanks: 0
Thank you! Now it works!
Now i also deactivated joomlacache and plugin cachecontrol because only the first time i send the formular it works, second time nothing happens, no entry in database, but i think this is another problem...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.053 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!