Select your language

Strawberry perl 5.32.1.1 is released

Our Supporters

Sorry, this website uses features that your browser doesn't support. Upgrade to a newer version of Firefox, Chrome, Safari, or Edge and you'll be all set.

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 ' UTC_TIMESTAMP()), DATEDIFF(UTC_TIMESTAMP(), to_date)) AS number_days FROM rh...' at line 1 (500 Whoops, looks like something went wrong.)

mysqli_sql_exception

HTTP 500 Whoops, looks like something went wrong.

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 ' UTC_TIMESTAMP()), DATEDIFF(UTC_TIMESTAMP(), to_date)) AS number_days
FROM rh...' at line 1

Exception

mysqli_sql_exception

Show exception properties
mysqli_sql_exception {#4381
  #sqlstate: "42000"
}
  1. $this->connection = $connection;
  2. $this->query = $query;
  3. $query = $this->prepareParameterKeyMapping($query);
  4. $this->statement = $connection->prepare($query);
  5. if (!$this->statement) {
  6. throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);
  7. }
  8. }
  1. $this->connection = $connection;
  2. $this->query = $query;
  3. $query = $this->prepareParameterKeyMapping($query);
  4. $this->statement = $connection->prepare($query);
  5. if (!$this->statement) {
  6. throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);
  7. }
  8. }
  1. * @since 2.0.0
  2. * @throws PrepareStatementFailureException
  3. */
  4. protected function prepareStatement(string $query): StatementInterface
  5. {
  6. return new MysqliStatement($this->connection, $query);
  7. }
  8. /**
  9. * Unlocks tables in the database.
  10. *
  1. $query->setLimit($limit, $offset);
  2. $sql = $this->replacePrefix((string) $query);
  3. $this->statement = $this->prepareStatement($sql);
  4. $this->sql = $query;
  5. $this->limit = (int) max(0, $limit);
  6. $this->offset = (int) max(0, $offset);
  1. if (!$this->params->get('send_to_group_members'))
  2. {
  3. $query->where('a.group_admin_id = 0');
  4. }
  5. $db->setQuery($query, 0, $numberEmailSendEachTime);
  6. try
  7. {
  8. return $db->loadObjectList();
  9. }
  1. PluginHelper::importPlugin('osmembership');
  2. $app = $this->getApplication();
  3. // Send first reminder
  4. $rows = $this->getSubscriptionsToSendReminder(1, $numberEmailSendEachTime);
  5. if (count($rows) > 0)
  6. {
  7. $reminderType = 'first_reminder';
  1. foreach ($this->listeners[$event->getName()] as $listener) {
  2. if ($event->isStopped()) {
  3. return $event;
  4. }
  5. $listener($event);
  6. }
  7. }
  8. return $event;
  9. }
  1. $dispatcher = $this->getDispatcher();
  2. } catch (\UnexpectedValueException $exception) {
  3. return null;
  4. }
  5. return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this));
  6. }
  7. /**
  8. * Method to run the application routines.
  9. *
  1. // Send the application response.
  2. $this->respond();
  3. // Trigger the onAfterRespond event.
  4. $this->dispatchEvent(
  5. 'onAfterRespond',
  6. new AfterRespondEvent('onAfterRespond', ['subject' => $this])
  7. );
  8. }
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/vhosts/bearsampp.com/public_html/includes/app.php') in /var/www/vhosts/bearsampp.com/public_html/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Trace

mysqli_sql_exception
mysqli_sql_exception:
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 ' UTC_TIMESTAMP()), DATEDIFF(UTC_TIMESTAMP(), to_date)) AS number_days
FROM rh...' at line 1

  at /var/www/vhosts/bearsampp.com/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138
  at mysqli->prepare()
     (/var/www/vhosts/bearsampp.com/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138)
  at Joomla\Database\Mysqli\MysqliStatement->__construct()
     (/var/www/vhosts/bearsampp.com/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:972)
  at Joomla\Database\Mysqli\MysqliDriver->prepareStatement()
     (/var/www/vhosts/bearsampp.com/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1780)
  at Joomla\Database\DatabaseDriver->setQuery()
     (/var/www/vhosts/bearsampp.com/public_html/plugins/system/osmembershipreminder/src/Extension/Reminder.php:358)
  at JoomDonation\MembershipPro\Plugin\System\Reminder\Extension\Reminder->getSubscriptionsToSendReminder()
     (/var/www/vhosts/bearsampp.com/public_html/plugins/system/osmembershipreminder/src/Extension/Reminder.php:143)
  at JoomDonation\MembershipPro\Plugin\System\Reminder\Extension\Reminder->onAfterRespond()
     (/var/www/vhosts/bearsampp.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/var/www/vhosts/bearsampp.com/public_html/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
  at Joomla\Application\AbstractApplication->dispatchEvent()
     (/var/www/vhosts/bearsampp.com/public_html/libraries/src/Application/CMSApplication.php:347)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/bearsampp.com/public_html/includes/app.php:58)
  at require_once('/var/www/vhosts/bearsampp.com/public_html/includes/app.php')
     (/var/www/vhosts/bearsampp.com/public_html/index.php:51)