Author Topic: send email notify Users waiting not working  (Read 4920 times)

ptrouw

  • Jr. Member
  • **
  • Posts: 129
send email notify Users waiting not working
« on: June 20, 2017, 11:55:57 am »
Using VM3.2.2.
We have to send emails to a lot of users about new stock arrival. We always used the "send email" to notify Users waiting, but this Send Email button is not working anymore with the product admin.
In browser console I can see these error:
Failed to load resource: the server responded with a status of 500 ()  https://www.xyz.com/administrator/index.php?option=com_virtuemart&view=product&task=ajax_notifyUsers&virtuemart_product_id=524

Is it an ajax problem?
Any ideas to solve this or a work around?

Note: I also have an 3.2.1 installation and this one works fine!

HTML code seems fine:
<div class="button2-left btn-wrapper btn btn-small" data-type="sendmail">
<div class="blank" style="padding:0 6px;cursor: pointer;" title="Send the email to the shoppers">
<span class="vmicon vmicon-16-email"></span>
Send Email
</div>
</div>

<script id="vm.validator_js" type="text/javascript">
<script id="submit_js" type="text/javascript">
<script id="updateChosen_js" type="text/javascript">
<script id="vm.remindTab_js" type="text/javascript">
<script id="vEngine_js" type="text/javascript">
<script id="vm.cookie_js" type="text/javascript">
<script id="datepicker_js" type="text/javascript">
<script id="dynotable_ini_js" type="text/javascript">
<script id="mediahandler.vars_js" type="text/javascript">
<script id="onReadyProduct_js" type="text/javascript"

stAn99

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 97
    • One Page Checkout for Virtuemart 2
Re: send email notify Users waiting not working
« Reply #1 on: June 20, 2017, 16:15:36 pm »
hello, pls install and enable our fatal catcher extension from here:
https://www.rupostel.com/utilities-for-joomla/extensions/fatal-catcher-plugin

- install
- set your own email (or system email will be used)
- enable the plugin in joomla plugins
- repeat the action to receive the error

the plugin should send you an email with:
- file and line that causes your error
- backtrace if available (if xdebug is enabled)

you should provide the plugin's output so that any advise can be done.

best regards, stan, rupostel.com
----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

ptrouw

  • Jr. Member
  • **
  • Posts: 129
Re: send email notify Users waiting not working
« Reply #2 on: June 20, 2017, 16:45:14 pm »
got it.
thanks Stan, mail_html_notify.php script from template was incorrect

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3
Re: send email notify Users waiting not working
« Reply #3 on: June 21, 2017, 12:40:49 pm »

ptrouw

  • Jr. Member
  • **
  • Posts: 129
Re: send email notify Users waiting not working
« Reply #4 on: June 21, 2017, 12:46:34 pm »
Hey,
Do you think the waitinglist will include language code in the near future?
Now all waitinglist persons will get the same email message in just 1 languages. We have 4 languages, the work around for us is now 1 email with 4 messages in 4 languages. Not very professional.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3664
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: send email notify Users waiting not working
« Reply #5 on: June 21, 2017, 12:56:49 pm »
Hello

Use language strings and edit the template files to include this for the language specific text:

echo vmText::_('VM_MY_MESSAGE_ETC');

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ptrouw

  • Jr. Member
  • **
  • Posts: 129
Re: send email notify Users waiting not working
« Reply #6 on: June 21, 2017, 13:09:40 pm »
Will not work, the waitinglist doesn't store the original language of the person leaving behind the email. Therefore the email can never be in 1 specific language or the use of vmText!

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3664
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: send email notify Users waiting not working
« Reply #7 on: June 21, 2017, 13:52:40 pm »
You´re right, have to store language together with mailaddress for waitinglist. I have made some Changes to my waitinglist in order to get a notification to admin when someone puts there name on the waitinglist. Maybe I could add this feature to that. I will see if I get the time for it.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ptrouw

  • Jr. Member
  • **
  • Posts: 129
Re: send email notify Users waiting not working
« Reply #8 on: June 21, 2017, 14:34:46 pm »
Would be great to store user Front end selected language in waitinglist table. We can then use it in template specific mail_html_notify.php file, but it also needs a language depended mail subject line which is in a VM core file.

vangelisg

  • Beginner
  • *
  • Posts: 11
Re: send email notify Users waiting not working
« Reply #9 on: February 28, 2018, 09:46:06 am »
I am having the exact same problem and I am searching for a sound solution for quite a while now.
So I came with the following workaround.
  • Uninstall VM.
  • Uninstall Joomla.
  • Cancel hosting.
  • Cancel Domain Name Registration.
  • Refund the client.
  • Throw a gallon of hot water on the computer while power is on. (having a Fire extinguisher close by is strongly advised).
  • Join a lumberjack community at the Appalachians in a location without signal.
  • Learn to carve animals on wood.
  • Live happily ever after!
I hope this helps.

PS. Seriously now, if anyone has solved this please post a solution or just point to the right direction. I am too fat and very lazy to be a lumberjack at this age.

tramber91

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: 3.8.8
Re: send email notify Users waiting not working
« Reply #10 on: March 19, 2021, 18:51:40 pm »
Hi all

I come back in this old topic
I have exactly same issue with latest version of VM

I can see Customer E-mail on products
But no way to send a notify
Error message in Chrome console
Code: [Select]
Failed to load resource: the server responded with a status of 500 () at
/administrator/index.php?option=com_virtuemart&view=product&task=ajax_notifyUsers&virtuemart_product_id=590

It should be solved ? or it remains an issue ?

Thanks for your support

Bertrand

Jommla 3.9.25
VM 3.8.8
joomla 3.9.25 -    php 7.3 - VirtueMart 3.8.8

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3664
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: send email notify Users waiting not working
« Reply #11 on: March 20, 2021, 07:25:40 am »
Read through the thread again and correct the error in your custom template.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

tramber91

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: 3.8.8
Re: send email notify Users waiting not working
« Reply #12 on: March 20, 2021, 21:05:18 pm »
Thanks for your quick answer

I have installed fatal catcher and error message is

Code: [Select]
2 strtoupper() expects parameter 1 to be string, object given in file: /home/etlbertrand/sitetest/jouarre/libraries/src/Language/Language.php line: 314
2 strpos() expects parameter 1 to be string, object given in file: /home/etlbertrand/sitetest/jouarre/libraries/src/Language/Language.php line: 361

Correspond to joomla core line
Code: [Select]
if (strpos($string, '\\') !== false)
{
// Interpret \n and \t characters
$string = str_replace(array('\\\\', '\t', '\n'), array("\\", "\t", "\n"), $string);
}

We are in VM administration, cannot be issue from template override ?

take care

Bertrand
joomla 3.9.25 -    php 7.3 - VirtueMart 3.8.8

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3664
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: send email notify Users waiting not working
« Reply #13 on: March 21, 2021, 07:48:35 am »
What back end admin template do you use ?
Do You have any plugins or extensions that could interfere ?

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10250
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: send email notify Users waiting not working
« Reply #14 on: March 21, 2021, 09:25:05 am »
you need to backtrace why $string is an object  .. not the expected string
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation