xoops forums

Kasch

Not too shy to talk
Posted on: 2004/2/18 15:58
Kasch
Kasch (Show more)
Not too shy to talk
Posts: 109
Since: 2004/2/9 2
#1

Errors in MyAds

I am in a desperate need of a classifieds module for my XOOPS-2.0.6RC. I can not get xClassfieds to work at all. I have now installed MyAds 2.0 and it almost seems to work. Except for this line showing up at the end of the webpage:

Notice [PHP]: Constant _CLA_CAT2 already defined in file modules/myAds/language/english/main.php line 76

Then, when adding a classified, these errors occurs:

Errors Returned While Uploading
Failed opening directory with write permission: /home/dreng/public_html/sormland/modules/myAds/images_ann/
Om sidan inte laddas om automatiskt, klicka här
Notice [PHP]: Constant _CLA_CAT2 already defined in file modules/myAds/language/english/main.php line 76
Notice [PHP]: Undefined variable: price in file modules/myAds/addannonces.php line 245
Notice [PHP]: Undefined variable: typeprix in file modules/myAds/addannonces.php line 245
Notice [PHP]: Undefined variable: title in file modules/myAds/addannonces.php line 206

The ad will be published but it seemd impossible to add an image to it.

Please - help?

Thanks!

El_Jordo

Just popping in
Posted on: 2004/2/19 15:27
El_Jordo
El_Jordo (Show more)
Just popping in
Posts: 64
Since: 2003/4/23
#2

Re: Errors in MyAds

I'm not getting all those PHP errors, but I'm having similar trouble posting any ads. My problem is that after submitting an ad, it says "You can add an advertisement after navigating to the categories." But I already did that!

I think the module needs a little bit of a makeover before it's ready for the masses.

DobePhat

Friend of XOOPS
Posted on: 2004/2/19 16:11
DobePhat
DobePhat (Show more)
Friend of XOOPS
Posts: 656
Since: 2003/4/15
#3

Re: Errors in MyAds

Kasch---

Im not having such problems....
go through the group permissions...
More importantly, remember
(from installation file)

Quote:

IMPORTANT!!!
- modify rights for /images_ann/ to CHMOD 777
- modify rights for config.php and /cache/ to CHMOD 666
*/


And BTW, NOTICES aren't really ERRORS...so you should be cool after checking permissions......Make sure you go into each directory sub folder as well.....

Hope that helps...

Kasch

Not too shy to talk
Posted on: 2004/2/20 13:38
Kasch
Kasch (Show more)
Not too shy to talk
Posts: 109
Since: 2004/2/9 2
#4

Re: Errors in MyAds


Thanks DobePhat! I switched version to the latest MyAds_v2.04_jp and that one was OK after changing the permissions. Notice that I had to set the cache and config-file to 777 as well to get it running correctly.

The only problem now is the configuration of MyAds in the admin pages (it will not update even though I set the permissions in the config-file to 777). For the time being I solve this by updating the config-file manually.

El_Jordo

Just popping in
Posted on: 2004/2/20 13:46
El_Jordo
El_Jordo (Show more)
Just popping in
Posts: 64
Since: 2003/4/23
#5

Re: Errors in MyAds

Quote:
The only problem now is the configuration of MyAds in the admin pages (it will not update even though I set the permissions in the config-file to 777). For the time being I solve this by updating the config-file manually.

You might try fixing that by going to Admin > System > Modules and clicking the "Update" button for MyAds. Sometimes that fixes things like that for me.

Kasch

Not too shy to talk
Posted on: 2004/2/20 15:01
Kasch
Kasch (Show more)
Not too shy to talk
Posts: 109
Since: 2004/2/9 2
#6

Re: Errors in MyAds


Great - it works!

Now the only problem left is this line at the bottom of the webpage: Notice [PHP]: Constant _CLA_CAT2 already defined in file modules/myAds/language/swedish/main.php line 73

It does'nt seem to matter for the functions of MyAds, but from a esthetical point of view it is irritating.

El_Jordo

Just popping in
Posted on: 2004/2/21 16:47
El_Jordo
El_Jordo (Show more)
Just popping in
Posts: 64
Since: 2003/4/23
#7

Re: Errors in MyAds

Hmm... I just downloaded the Japanese version, and it's certainly much better than the French as far as translations go. The included English files are very good.

However, when I try to add an advertisement after navigating to a category, I still can't get it to validate it. I get a page that looks like this:

Quote:
Quote:
_CLA_ADDANNONCE
If the page does not automatically reload, please click here

Notice [PHP]: Constant _cla_cat2 already defined in file modules/myAds/language/english/main.php line 73
Notice [PHP]: Undefined variable: cid in file modules/myAds/addannonces.php line 274
Notice [PHP]: Use of undefined constant _CLA_ADDANNONCE - assumed '_CLA_ADDANNONCE' in file modules/myAds/addannonces.php line 26


The undefined 'cid' seems like it would mess up ad validation, since the first thing it checks is the cid. Any way to fix this?

El_Jordo

Just popping in
Posted on: 2004/5/4 21:50
El_Jordo
El_Jordo (Show more)
Just popping in
Posts: 64
Since: 2003/4/23
#8

Re: Errors in MyAds

Is anybody else having this problem, and has anybody found a way to fix it?

albania

Just popping in
Posted on: 2004/6/11 14:17
albania
albania (Show more)
Just popping in
Posts: 23
Since: 2004/6/5 1
#9

Re: Errors in MyAds

did you solved the problem?
i have the same

One question more
Can coegzist MyAds with Job listingsQuote:

El_Jordo wrote:
Is anybody else having this problem, and has anybody found a way to fix it?

albania

Just popping in
Posted on: 2004/6/11 14:18
albania
albania (Show more)
Just popping in
Posts: 23
Since: 2004/6/5 1
#10

Re: Errors in MyAds

did you solved the problem?
i have the same

One question more
Can coegzist MyAds with Job listingsQuote:

El_Jordo wrote:
Is anybody else having this problem, and has anybody found a way to fix it?