This is a fresh installation of 7.x-2.x-dev on 7.31.
I installed SimpleAds and SimpleAds Campaign per the directions on the main page. Followed the CodeKarate demo video to get a feel for it.
If I create an advertisement and mark it as published, then view it in the content list, it shows as unpublished and no advertisement blocks or views will display it. The content node itself also shows it as unpublished so this seems like it really is not publishing.
This happens on all of my ads regardless of whether I mark them published during creation or later, or whether or not I have a campaign set up, or whether that campaign is published.
Marking an advertisement as published yields no errors that I can see, but it immediately reverts to unpublished as soon as the page reloads.
I have tried uninstalling and reinstalling SimpleAds and I have cleared the Drupal caches after every step just to make sure.
All other content publishes with no problem, it is only SimpleAds advertisements that will not publish.
I hope I am merely doing something wrong but I can't imagine how I would mess up checking a checkbox. Perhaps there is some hidden option I am missing.
Comments
Comment #1
AdmiralSenn CreditAttribution: AdmiralSenn commentedNever mind, it is suddenly working now. I did not change anything. Hopefully it won't happen again.
Comment #2
madelyncruz CreditAttribution: madelyncruz commentedSame issue happens to mine. What did you do to make it work? I flushed cache, run cron, update database and re-install the module, but still no luck in publishing the advertisement content.
Comment #3
mastrip2 CreditAttribution: mastrip2 commentedSame thing was happening to me but only when I tried to set the start and end date. So I dug thru the code and found out that upon saving the ad, that it doesnt take into account of the time zone. As soon as I applied "UTC" (in my case. maybe different for you) to the stringtotime function everything was working. I found this patch that should work also (i havnt tried it myself) https://www.drupal.org/node/2451597 . This could of saved me a a bunch of time if I found it first.