1
aharon
MyAds - adding a new advert
  • 2006/5/3 11:20

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Hi,

Am using:

PHP version 4.3.11

Xoops version 2.0.13.1

and

MyAds version 2.06

When attempting to add a new advertisment - without debug mode on - I get a blank page.

Doing the same with debug mode on - I get a page full of errors.

Has anyone encountered that before? (I couldn't find information about it..)

Following is the page I get ->

Fatal error: Call to a member function on a non-object in /home/oth3r/public_html/test/modules/myAds/include/functions.php on line 273
Notice [PHP]: Constant _MI_CLA_NAME already defined in file modules/myAds/language/english/modinfo.php line 9
Notice [PHP]: Constant _MI_CLA_MENUADD already defined in file modules/myAds/language/english/modinfo.php line 13
Notice [PHP]: Constant _MI_CLA_DESC already defined in file modules/myAds/language/english/modinfo.php line 19
Notice [PHP]: Constant _MI_CLA_BNAME already defined in file modules/myAds/language/english/modinfo.php line 25
Notice [PHP]: Constant _CLA_INTHISCAT already defined in file modules/myAds/language/english/modinfo.php line 83
Notice [PHP]: Constant _MI_MYADS_CATEGORY_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 133
Notice [PHP]: Constant _MI_MYADS_CATEGORY_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 135
Notice [PHP]: Constant _MI_MYADS_ANNONCE_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 139
Notice [PHP]: Constant _MI_MYADS_ANNONCE_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 141
Notice [PHP]: Constant _MI_MYADS_GLOBAL_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 145
Notice [PHP]: Constant _MI_MYADS_GLOBAL_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 147
Notice [PHP]: Constant _MI_MYADS_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 153
Notice [PHP]: Constant _MI_MYADS_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 155
Notice [PHP]: Constant _MI_MYADS_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 157
Notice [PHP]: Constant _MI_MYADS_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 159
Notice [PHP]: Constant _MI_MYADS_VALIDATE_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 163
Notice [PHP]: Constant _MI_MYADS_VALIDATE_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 165
Notice [PHP]: Constant _MI_MYADS_VALIDATE_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 167
Notice [PHP]: Constant _MI_MYADS_VALIDATE_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 169
Notice [PHP]: Constant _MI_MYADS_UPDATE_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 173
Notice [PHP]: Constant _MI_MYADS_UPDATE_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 175
Notice [PHP]: Constant _MI_MYADS_UPDATE_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 177
Notice [PHP]: Constant _MI_MYADS_UPDATE_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 179
Notice [PHP]: Constant _MI_MYADS_DELETE_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 183
Notice [PHP]: Constant _MI_MYADS_DELETE_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 185
Notice [PHP]: Constant _MI_MYADS_DELETE_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 187
Notice [PHP]: Constant _MI_MYADS_DELETE_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 189
Notice [PHP]: Constant _MI_MYADS_GLOBAL_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 193
Notice [PHP]: Constant _MI_MYADS_GLOBAL_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 195
Notice [PHP]: Constant _MI_MYADS_GLOBAL_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 197
Notice [PHP]: Constant _MI_MYADS_GLOBAL_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 199
Notice [PHP]: Constant _MI_MYADS_GLOBAL_VALIDATE_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 203
Notice [PHP]: Constant _MI_MYADS_GLOBAL_VALIDATE_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 205
Notice [PHP]: Constant _MI_MYADS_GLOBAL_VALIDATE_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 207
Notice [PHP]: Constant _MI_MYADS_GLOBAL_VALIDATE_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 209
Notice [PHP]: Constant _MI_MYADS_GLOBAL_UPDATE_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 213
Notice [PHP]: Constant _MI_MYADS_GLOBAL_UPDATE_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 215
Notice [PHP]: Constant _MI_MYADS_GLOBAL_UPDATE_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 217
Notice [PHP]: Constant _MI_MYADS_GLOBAL_UPDATE_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 219
Notice [PHP]: Constant _MI_MYADS_GLOBAL_DELETE_ANNONCE_NEWPOST_NOTIFY already defined in file modules/myAds/language/english/modinfo.php line 223
Notice [PHP]: Constant _MI_MYADS_GLOBAL_DELETE_ANNONCE_NEWPOST_NOTIFYCAP already defined in file modules/myAds/language/english/modinfo.php line 225
Notice [PHP]: Constant _MI_MYADS_GLOBAL_DELETE_ANNONCE_NEWPOST_NOTIFYDSC already defined in file modules/myAds/language/english/modinfo.php line 227
Notice [PHP]: Constant _MI_MYADS_GLOBAL_DELETE_ANNONCE_NEWPOST_NOTIFYSBJ already defined in file modules/myAds/language/english/modinfo.php line 229


Any ideas how to fix this?

If none - does anyone know which XOOPS verion and MyAds version actually work together well...?

Many thanks!

Aharon

2
aharon
Re: MyAds - adding a new advert
  • 2006/5/3 18:29

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Bump.... Anyone.. Please..?

3
jlm69
Re: MyAds - adding a new advert
  • 2006/5/3 18:52

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


I never saw MyAds 2.06 but you really only have one error that is stopping you, and that is the first one

Fatal error: Call to a member function on a non-object in /home/oth3r/public_html/test/modules/myAds/include/functions.php on line 273

Many people are using catads now because it is newer and I believe it was modeled after MyAds.

If you want to use Myads, What is on the line 273 of myAds/include/functions.php? could you post it?


John

4
aharon
Re: MyAds - adding a new advert
  • 2006/5/3 20:27

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Thanks!

Yes, I looked at catads, and was put off by the dating system.
If you don't want to aprove ads, you need to set the dates a day earlier than it actually is. I find that a bit confusing for people..
Also, the viewed ads counting, how many people viewed as ad, seems to work and not work at times..

So I thought, since myads seems to have only the one bug, maybe it will be better...

As for line 273 -

It is an }

This is a part of the following:

while($x!=-1) {
$subcats .= " » <a href=\"index.php?pa=view&cid=".$varid[$x]."\">".$varnom[$x]."</a>";
$x=$x-1;
} --->> LINE 273

I thought that maybe a } is missing - but that wasn't good either..

Many thanks for any ideas..

Login

Who's Online

103 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 103


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits