2 werner2 Jul 26, 2007 23:18
![](http://www.gravatar.com/avatar/c7b4dad2cfb4b150a2deb068be2e47e5?size=80&default=https%3A%2F%2Fforums.b2evolution.net%2Fmedia%2Fshared%2Fglobal%2Favatars%2Fdefault_avatar_unknown.jpg%3Fmtime%3D1659823855)
I also get the same error message... Anyone does know how can we solvw it? This is a good plugin... if it works
if you crack open the plugin, there's a bit ( probably somewhere really close to line 58 ) that looks something like :
function GetDefaultSettings( & $params )
Just delete the & $params bit and it should work ;)
¥
The part that should be removed is just the & isn't?
try removing & $params so you end up with:
function GetDefaultSettings()
This may or may not work according to other users. Please report back what it did for you.
Good luck.
hi afwas. i have the same error now. i had just checked the php fie and it is showing
PHP:
function GetDefaultSettings()
but still it doesnt work and im having that kind of error. pls help.
¥åßßå is answering this question at [url=http://forums.b2evolution.net/viewtopic.php?t=12268&start=0&postdays=0&postorder=asc&highlight=][1.10.x] Adsense plugin doing nothing[/url].
thanks for your quick reply. but, do you know which code shoud be ammended and how?
wrote in [url=http://forums.b2evolution.net/viewtopic.php?t=12268&start=0&postdays=0&postorder=asc&highlight=][1.10.x] Adsense plugin doing nothing[/url]
¥åßßå wrote:
Troy wrote:
I hate to say this, but still no luck. Should I change it back?
Leave it as it is for the moment and edit and re-save your original test post and see what happens.
¥
Good luck
hi afwas. that is ¥åßßå's reply for troy.
and
¥åßßå wrote:
edit and re-save your original test post and see what happens.¥
is my answer to you. In fact ¥åßßå is answering the same question elswhere.
Good luck
hi afwas. thanks for your reply.
Hi, I had the same php errors as above...removing the param stopped the SAVE error. However...the ADSENSE button just gives...Errors on Page message bottom right corner.
Did another thread resolve this issue?
A link to your blog where you're having this problem would be useful ;)
¥
http://trueparenting.co.uk/Blog/
Adsense down the right side is hardcoded in the main.php
I don't get any js errors on your page, but the only ads I see are the ones in the right column?
¥
The 'Error on Page' is displayed in the bottom left corner, when I click the ADSENSE button when creating a blog entry. Sunsequently...there is no adsense code in any of the blog posts.
Ahhh, now you make more sense :p
If you're using firefox then you might want to download the [url=https://addons.mozilla.org/en-US/firefox/addon/1843]firebug[/url] extension, it shows you all sorts of stuff including any js errors.
Without being able to see the error it's a tad tough to help
¥
I enable Javascript error on IE....
Line: 103
Char: 1
Error: Object expected
Code: 0
URL - B2 admin.php
This is line 103 from the source....
</span></span><div class="edit_toolbars"><div class="edit_toolbar"><input type="button" id="adsense_default" title="Insert AdSense block" class="quicktags" onclick="textarea_wrap_selection( b2evoCanvas, '[adsense:]', '', 1 );" value="AdSense" /></div>
bump...anybody seen this/solved this problem?
can't even load it in admin area.. get major errors (running 1.8.6):
when you 'edit' the plugin I get this error:
Plugin info
Name:
AdSense
Short desc:
No desc available
Plugin settings
Warning: Missing argument 1 for adsense_plugin::GetDefaultSettings(), called in /home/a4at/public_html/blog/inc/VIEW/settings/_set_plugins_editsettings.form.php on line 87 and defined in /home/a4at/public_html/blog/plugins/_adsense.plugin.php on line 58
An unexpected error has occured!
If this error persits, please report it to the administrator.
Go back to home page
Additional information about this error:
Unsupported type [html_textarea] from GetDefaultSettings()!
¥åßßå wrote:
if you crack open the plugin, there's a bit ( probably somewhere really close to line 58 ) that looks something like :
function GetDefaultSettings( & $params )
Just delete the & $params bit and it should work ;)
¥
The amendment fixes the php errors on the post above, but I've already done this and now get
Posted: Tue Oct 02, 2007 7:42 Post subject:
--------------------------------------------------------------------------------
I enable Javascript error on IE....
Line: 103
Char: 1
Error: Object expected
Code: 0
URL - B2 admin.php
This is line 103 from the source....
</span></span><div class="edit_toolbars"><div class="edit_toolbar"><input type="button" id="adsense_default" title="Insert AdSense block" class="quicktags" onclick="textarea_wrap_selection( b2evoCanvas, '[adsense:]', '', 1 );" value="AdSense" /></div>
Got the same error message. The second part is clear: Headers cannot be sent after the error message was printed - but the irst part I cannot understand - Francois?