simpleads don't render in blocks - apparently problem with clean urls ...

Created on 20 October 2016, about 8 years ago
Updated 9 June 2023, over 1 year ago

After a clean install of the simpleads module into a clean empty drupal 7.51 site:
- Simpleads is rendering ad blocks, but isn't rendering ad content.

After installation a test ad was created, without any campaign or other configurations to add to complexity.
The ad node shows correctly when edited.
The ad list page shows that the ad is active.
The ad's advertising block appears.

---
the following error occurs
---

Failed to load resource: the server responded with a status of 403 (Forbidden) http://website.url/?q=simpleads/load/48/1

---
This problem appears to be similar to:
https://www.drupal.org/node/1964746 β†’
---
I modified line 113 of simpleads.js so that it doesn't use a ?q= path structure and the problem went away.

simpleads.js - line 113:

      $.get(basepath + '?q=simpleads/load/' + tid + '/' + num, function (data) {

changed the follow js rendering code to:

      $.get(basepath + 'simpleads/load/' + tid + '/' + num, function (data) {
        $(elem).html(data);
      }); 

---

Is the problem above related to some aspect of http server configuration generally, or drupal clean urls configuration for specifically, or some other coding or configuration conflict?

What can be done to fix the simpleads module so that it renders ad content correctly upon installation on a clean urls site?

---
ps. - I checked the simpleads.js file in the newest dev version and its code has not been modified to address this problem.

πŸ› Bug report
Status

Closed: won't fix

Version

1.9

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sprite

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024