New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Banner Finish Publishing field date and time issue #11969
Comments
Pretty sure you did not mean to tag this with MS SQL This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11969. |
How did you do step 2 - I always get |
I have manually edited time in past. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11969. |
OK so having manually set the banner to be expired and then displaying the banners on the front end I can not replicate your issue and get the expected result you identified. Please can you retest and confirm that you can replicate this with one of the default templates and on a clean install of the latest staging release This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11969. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
Same problem here, exept in my case I don't use banners and then the same SQL-error appears. But after adding a dummy-banner the error is gone. Deleting the banner causes the error again. |
This comment was marked as abuse.
This comment was marked as abuse.
I do not have overrides in /html/com_banners |
This comment was marked as abuse.
This comment was marked as abuse.
OK, thanks! I will send it to you in about an hour or so. First I will recover the live-site. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
…on (#12514) * Ensure query is only run if items are found to avoid database exception Pull Request for Issue #11969 and other fringe cases Summary of Changes This PR is the result of debugging on two live sites with deadly fatal exceptions as per #11969 On code review it was clear this code was low quality, running two loops when one would have done, and also causes issues where there were no items to update, but yet we still tried to execute a query when there were no items to increment impmade to.. this causes a deadly JDatabaseExceptionExecuting, rearranging the code block to only run if needed fixes the exception issue. Testing Instructions Find a site where you get the deadly issue reported - apply patch - see its fixed - check that banners impressions are still logged * Just do it the way Im told... * whitespace on gh
It works fine now, no exceptions after testing with adding and deleting Peter Op 22-10-2016 om 15:03 schreef Phil Taylor:
|
I just spent half a day attempting to sort this issue after upgrading to 3.6.4. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11969. |
This comment was marked as abuse.
This comment was marked as abuse.
No there were no overrides for banners. The theme was "University" by Gavick which I reinstalled again to see if this was the issue but the error persisted. Also no relevant apache errors. Switching theme removed the issues. Only when I finally disabled Gavick's custom error page and got a more verbose error was I able to actually view the specific error..which led me here.. Disabling the banner STILL causes the issue unless I switch to Beez or similar default theme. I can provide URL if you're curious. |
This comment was marked as abuse.
This comment was marked as abuse.
No problem Phil - publishing a non-visible banner is as good a fix as I need for the moment! |
This comment was marked as abuse.
This comment was marked as abuse.
Of course - I just meant that the site is online and working. I've added the site to myjoomla.com. ID: 11195130 if you're interested. |
This comment was marked as abuse.
This comment was marked as abuse.
My apologies. I've submitted them as you did originally specify. |
This comment was marked as abuse.
This comment was marked as abuse.
Closed as requested This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11969. |
Steps to reproduce the issue
Expected result
if admin selected a past time (less then current time)in Finish Publishing field then banner should not be displayed.
Actual result
Getting following error :
"jos-Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3 SQL=UPDATE #__banners SET impmade = (impmade + 1) WHERE id IN ()"
System information (as much as possible)
PHP Version 5.5.9-1ubuntu4
Joomla! Version Joomla! 3.6.3-dev Development [ Noether ] 5-August-2016 00:32 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Additional comments
The text was updated successfully, but these errors were encountered: