Skip to Content Skip to Menu

Save another user profile if email already exists

  • activha
  • activha
  • ONLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
1 day 2 hours ago #339651 by activha
Hello
When acting as a moderator and changing another user email in the frontend : if the email already exists in the database, Community Builder sends an exception and returns the standard joomla error page.
Would it be possible to have a joomla warning message instead explaining that the email already exists ? same message as displayed when doing the same thing in the backend ?
Thanks 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
21 hours 5 minutes ago #339653 by krileon
That should just be throwing a validation error and return to profile edit. What do you mean it's throwing an exception and going to an error page? Please provide the callstack for that error page as it sounds like you've something else installed that's erroring.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • activha
  • activha
  • ONLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
19 hours 21 minutes ago #339659 by activha
This is what I got when trying to save with an already existing email
Code:
A PHP Exception occurred on your site. Here you can find the stack trace:Exception Type: [code]mysqli_sql_exception
File: /var/www/vhosts/cercle.business/html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php
Line: 138
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 6 #0 /var/www/vhosts/cercle.business/html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php(138): mysqli->prepare()
#1 /var/www/vhosts/cercle.business/html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php(1020): Joomla\Database\Mysqli\MysqliStatement->__construct()
#2 /var/www/vhosts/cercle.business/html/libraries/vendor/joomla/database/src/DatabaseDriver.php(1785): Joomla\Database\Mysqli\MysqliDriver->prepareStatement()
#3 /var/www/vhosts/cercle.business/html/administrator/components/com_acym/libraries/joomla/database.php(15): Joomla\Database\DatabaseDriver->setQuery()
#4 /var/www/vhosts/cercle.business/html/administrator/components/com_acym/classes/user.php(754): acym_query()
#5 /var/www/vhosts/cercle.business/html/components/com_comprofiler/plugin/user/plug_acymailingcbintegration/acym.php(124): AcyMailing\Classes\UserClass->delete()
#6 /var/www/vhosts/cercle.business/html/components/com_comprofiler/plugin/user/plug_acymailingcbintegration/acym.php(318): getAcymTab->getCurrentUser()
#7 /var/www/vhosts/cercle.business/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php(879): getAcymTab->saveEditTab()
#8 /var/www/vhosts/cercle.business/html/libraries/CBLib/CB/Legacy/cbTabs.php(1611): cbPluginHandler->call()
#9 /var/www/vhosts/cercle.business/html/libraries/CBLib/CB/Legacy/cbTabs.php(1418): cbTabs->_callTabPlugin()
#10 /var/www/vhosts/cercle.business/html/libraries/CBLib/CB/Database/Table/UserTable.php(1099): cbTabs->savePluginTabs()
#11 /var/www/vhosts/cercle.business/html/components/com_comprofiler/comprofiler.php(499): CB\Database\Table\UserTable->saveSafely()
#12 /var/www/vhosts/cercle.business/html/components/com_comprofiler/comprofiler.php(112): userSave()
#13 /var/www/vhosts/cercle.business/html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('...')
#14 /var/www/vhosts/cercle.business/html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#15 /var/www/vhosts/cercle.business/html/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#16 /var/www/vhosts/cercle.business/html/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Component\ComponentHelper::renderComponent()
#17 /var/www/vhosts/cercle.business/html/libraries/src/Application/SiteApplication.php(261): Joomla\CMS\Application\SiteApplication->dispatch()
#18 /var/www/vhosts/cercle.business/html/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\SiteApplication->doExecute()
#19 /var/www/vhosts/cercle.business/html/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#20 /var/www/vhosts/cercle.business/html/index.php(32): require_once('...')
#21 {main}[/code]

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
19 hours 17 minutes ago #339660 by krileon
Your issue is coming from AcyMailings CB plugin. Appears to be throwing an error. Suggest contacting the developer regarding this.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum