Skip to Content Skip to Menu

A bunch of warnings in CB plugin

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
13 years 3 months ago #172059 by fribse2011
A bunch of warnings in CB plugin was created by fribse2011
J1.7, CB 1.7, UddeIM 2.5beta, I see these if I turn on full error reporting (which I have while testing):
Notice: Undefined variable: config in /share/MD0_DATA/Web/gsk2/components/com_comprofiler/plugin/user/plug_uddeimblockingplugin/blocking.uddeim.php on line 141

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 69

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 73

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 75

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 81

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 89

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 91

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 93

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 97

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 104

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 106

Notice: Trying to get property of non-object in /share/MD0_DATA/Web/gsk2/components/com_uddeim/getpiclink.php on line 108

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
The following user(s) said Thank You: savvy

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 3 months ago #172061 by slabbi
Replied by slabbi on topic Re: A bunch of warnings in CB plugin

fribse2011 wrote: J1.7, CB 1.7, UddeIM 2.5beta, I see these if I turn on full error reporting (which I have while testing):
Notice: Undefined variable: config in /share/MD0_DATA/Web/gsk2/components/com_comprofiler/plugin/user/plug_uddeimblockingplugin/blocking.uddeim.php on line 141


This is quite simple to fix:
Change "$config" into "$this->config" in line 141.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer
The following user(s) said Thank You: fribse2011

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
13 years 3 months ago #172067 by fribse2011
Replied by fribse2011 on topic Re: A bunch of warnings in CB plugin
ét voila, all warnings gone :-)

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

13 years 2 weeks ago - 13 years 2 weeks ago #181636 by mikefriendly
Replied by mikefriendly on topic Re: A bunch of warnings in CB plugin
Please help!

Line 141 shows this for me:

if ($config->showcbpic==1) { // CB

Is this the correct line and if so, what should I change it to?

If it isn't, then what exactly is on the correct line so that I can find it?

Thanks in anticipation!

Mike
Buzz50.com
Last edit: 13 years 2 weeks ago by mikefriendly.

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
13 years 1 week ago #182496 by fribse2011
Replied by fribse2011 on topic Re: A bunch of warnings in CB plugin

mikefriendly wrote: Please help!

Line 141 shows this for me:

if ($config->showcbpic==1) { // CB


It should read

if ($this->config->showcbpic==1) { // CB

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum