Jump to content

Topic on Project:Support desk/Flow

I can't appear Google Ads on my wiki

10
Dhmowiki (talkcontribs)

hello. I'm using mediawiki 1.33 version and I want to appear Google Ads on my wiki. But all google ads and head script extensions are not for 1.33 version....

how can I add ads or add html head script?

This post was hidden by 106.219.6.217 (history)
Dhmowiki (talkcontribs)

My mediawiki version is 1.33 and php version is 7.3. so i can't install that extension.

AhmadF.Cheema (talkcontribs)
Dhmowiki (talkcontribs)

I tried. but i can't access wiki because of http error 500. and update.php can't find googleadsense extension.json.

AhmadF.Cheema (talkcontribs)

Instead of the wfLoadExtension line, try with:

require_once "$IP/extensions/GoogleAdSense/GoogleAdSense.php";

Or, you can also try the master version of the extension too, wfLoadExtension should work for it.

Dhmowiki (talkcontribs)

I tried and wiki works without error. but ads not appear. google adsense extension is in mediawiki:special.

185.209.178.78 (talkcontribs)

I am having the same issues. Tried Both Master version and version 1.34 getting error 500 with both of the following.


wfLoadExtension( 'GoogleAdSense' );

and

require_once "$IP/extensions/GoogleAdSense/googleadsense.php";

Any solutions?

I solved this problem with require_once. but I tested only in Version 1.33

2601:447:8101:410:19D3:F3D4:9692:F1A5 (talkcontribs)

Having same issue...both require_once and wfload options create http 500 error on mediawiki 1.34

183.106.231.21 (talkcontribs)

did you try php update.php? I solved with update.php.

Reply to "I can't appear Google Ads on my wiki"