1
mrguitar
Problem with Catads 1.23 the page blank
  • 2005/2/16 18:59

  • mrguitar

  • Just popping in

  • Posts: 2

  • Since: 2005/2/16


I have installed the module Catads 1.23 in XOOPS 2.0.9.2
is a good module, but when i submit in one categorie the page is blank! this is the page is the same for all categories.
/..../modules/catads/submit1.php?cat_id=1

the error in debug is:

Fatal error: Call to a member function on a non-object in /......./modules/catads/submit1.php on line 322


Please helpme, what is the solution?

thanks :)

2
zeronesystem
Re: Problem with Catads 1.23: not been added - Array ?¿

Hi,
I have installed the module Catads 1.23 in XOOPS 2.0.9.2

The Catad is very nice, but I add ad and appeats this error:


Catads
There was an error. Your ad has not been added
Array

Any sugestion, Felix?

3
theCat
Re: Problem with Catads 1.23: not been added - Array ?¿
  • 2005/2/21 7:31

  • theCat

  • Just popping in

  • Posts: 77

  • Since: 2004/2/2 2


@ mrguitar
Are you sure that catads_adsform.html is in folder templates ?
Try to update the module.

@zeronesystem
You have this message because catads cannot insert a record in the db.
Are you sure that the structure of xoops_catads_ads is correct?
To check you can do that:
in class/ads.php insert in line 140
echo 'sql '.$sql.'<br>';
Try to submit an ad.
Copy and paste the query in phpmyadmin: the error will be displayed.

@gestroud
Sorry, but I don't understand your post

4
mrguitar
Re: Problem with Catads 1.23: not been added - Array ?¿
  • 2005/2/22 16:57

  • mrguitar

  • Just popping in

  • Posts: 2

  • Since: 2005/2/16


Yes i sure that catads_adsform.html is in folder templates
and i update the module but the page is always blank!
help!!
thanks

5
zeronesystem
Re: Problem with Catads 1.23: not been added - Array ?¿

HI,

Quote:

Are you sure that the structure of xoops_catads_ads is correct?


YES.
Check & see image in:
http://www.terra.es/personal8/ec3cyo/capture.jpg



Quote:

To check you can do that:
in class/ads.php insert in line 140
echo 'sql '.$sql.'<br>';


SEE:
-----------------------------------------------
echo 'DEBUG jaume1';
if (empty($ads_id)) {
$ads_id = $this->db->genId('catads_ads_ads_id_seq');
$sql = 'INSERT INTO' ......
echo 'DEBUG jaume2';
} else {
$sql = 'UPDATE '.....
echo 'DEBUG jaume3';
}
echo 'sql '.$sql.'<br>';
-------------------------------------------------
ANd result is:
Catads
There was an error. Your ad has not been added
Array

The Cat:
I insert in submit1.php, line 213:
echo 'asfd';
and result are:
Catads
There was an error. Your ad has not been added
Array
asdf
------------------------------------------------

Any suggestion,
Jaume.

6
zeronesystem
Re: Problem with Catads 1.23: not been added - Array ?¿

Hi friends,

With the PHP 4.3.10 works ok.
Thank you.




Environment:
WIN XP Prof. + SP2
ISS v5.1
apache_2.0.52-win32-x86-no_ssl
php-5.0.3 --> php 4.3.10
mysql-4.1.9-win32
xoops-2.0.9.2

7
evylrat
Re: Problem with Catads 1.23: not been added - Array ?¿
  • 2005/3/1 14:51

  • evylrat

  • Not too shy to talk

  • Posts: 164

  • Since: 2004/2/25


So it doesn't work with PHP 5 then?
Any OTHER ads module that with with PHP 5?

8
theCat
Re: Problem with Catads 1.23: not been added - Array ?¿
  • 2005/3/4 18:40

  • theCat

  • Just popping in

  • Posts: 77

  • Since: 2004/2/2 2


For compatibilty with Php5, in class/ads.php change
if (get_class($ads) != 'catadsads') {

with
if (get_class($ads) != 'CatadsAds') {

lines 126 and 153

little bug, but php5 is case sensitive !

9
ivan8r
Re: Problem with Catads 1.23: not been added - Array ?¿
  • 2005/3/9 18:23

  • ivan8r

  • Just popping in

  • Posts: 57

  • Since: 2003/10/1


Quote:
To check you can do that:
in class/ads.php insert in line 140
echo 'sql '.$sql.'<br>';


I am not using an editor that shows me specific line numbers. I was wondering if somebody could show me the text in the file, and where I need to insert this line.

I'm using: PHP5, MySQL 4.1, IIS 5.0.

Quote:
little bug, but php5 is case sensitive


Made this change already, and the error still exists.

Looking forward to submitting my first ad! Thanks in advance for your help.

Ivan8r

10
ivan8r
Re: Problem with Catads 1.23: not been added - Array ?¿
  • 2005/3/14 21:25

  • ivan8r

  • Just popping in

  • Posts: 57

  • Since: 2003/10/1


Ok... I guess nobody can help. I'll just remove the module.

Login

Who's Online

152 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

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

Latest GitHub Commits