Recent Topics

Adsense plugin error

Started by on Jul 19, 2007 – Contents updated: Jul 19, 2007

Jul 19, 2007 22:16    

Anyone help with this?

> Warning: Missing argument 1 for adsense_plugin::GetDefaultSettings(),
called in /home/truepare/public_html/Blog/inc/_misc/_plugin.funcs.php
on line 336 and defined in
/home/truepare/public_html/Blog/plugins/adsense_plugin/_adsense.plugin.php on line 58
>
> Warning: Cannot modify header information - headers already sent by
(output started at
/home/truepare/public_html/Blog/plugins/adsense_plugin/_adsense.plugin.php:58) in
/home/truepare/public_html/Blog/inc/VIEW/_menutop.php on line 39

Thanks.....

Jul 26, 2007 23:18

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?

Aug 01, 2007 00:23

I also get the same error message... Anyone does know how can we solvw it? This is a good plugin... if it works

Aug 01, 2007 16:34

if you crack open the plugin, there's a bit ( probably somewhere really close to line 58 ) that looks something like :

PHP

function GetDefaultSettings( & $params )

Just delete the & $params bit and it should work ;)

¥

Aug 07, 2007 00:00

The part that should be removed is just the & isn't?

Aug 07, 2007 00:27

try removing & $params so you end up with:

PHP

function GetDefaultSettings()

This may or may not work according to other users. Please report back what it did for you.

Good luck.

Aug 07, 2007 10:34

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.

Aug 07, 2007 10:57

thanks for your quick reply. but, do you know which code shoud be ammended and how?

Aug 07, 2007 11:36

hi afwas. that is ¥åßßå's reply for troy.

Aug 07, 2007 11:51

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

Aug 07, 2007 11:58

hi afwas. thanks for your reply.

Oct 01, 2007 15:55

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?

Oct 01, 2007 16:07

A link to your blog where you're having this problem would be useful ;)

¥

Oct 01, 2007 16:20

I don't get any js errors on your page, but the only ads I see are the ones in the right column?

¥

Oct 01, 2007 16:22

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.

Oct 02, 2007 13:42

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>

Oct 09, 2007 16:58

bump...anybody seen this/solved this problem?

Oct 10, 2007 20:36

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()!

Oct 11, 2007 11:47

¥åßßå wrote:

if you crack open the plugin, there's a bit ( probably somewhere really close to line 58 ) that looks something like :

PHP

function GetDefaultSettings( & $params )

Just delete the & $params bit and it should work ;)

¥

Oct 11, 2007 16:02

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>


Form is loading...

Free CMS – This forum is powered by b2evolution CMS, a complete engine for your website.