Webmastersite.net
Register Log In

'Suggest Link' throws error:
Call to undefined function: dowsncodes()

Comments on 'Suggest Link' throws error:

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Mar 13, 2006 - 6:05 PM:

When I click on Suggest New Link:

Fatal error: Call to undefined function: dowsncodes() in /directory/classes/onelink.php on line 2038

I only upgraded yesterday and it seems to have caused issues... what could it be?

mad
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Mar 13, 2006 - 6:08 PM:

same problem when I click on 'Suggest New Subcategory'
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 13, 2006 - 7:33 PM:

It's related to have WYSIWYG descriptions on, but I can't reproduce it by turning that on. Perhaps you've switched WSN Codes off while switching WYSIWYG on, as self-contradictory as that would be. The other possibility would be a failure to overwrite files.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Mar 14, 2006 - 9:04 AM:

Both are off, WSN codes and WSYWIG.

So I can only try to overwrite files again... for reference, which file(s) would it be? Rather than trying to upload the whole lot...
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 14, 2006 - 7:35 PM:

If you didn't get files properly uploaded, you should overwrite the whole lot like in the upgrade instructions.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Mar 15, 2006 - 9:01 AM:

I did overwrite the whole lot when I upgraded to 3.3.9... but now that I have this problem I guess I'll have to try again....
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Mar 15, 2006 - 2:21 PM:

I re-uploaded everything again and ran the upgrade script again. See image attached:

My db only has 16000 links and I don't think thats really that large..? Anyway, the upgrade did not hang or anything like that, it always proceeds very smoothly, but those queries were left there... so I decided to put them through phpMyAdmin as suggested.

So I ran each query and this is what I got for each (in order):

Invalid default value for 'id'
Duplicate column name 'frequency'
Duplicate column name 'nextrun'
Duplicate column name 'filename'
Duplicate column name 'native'

So what now?? At this moment in time, 'Suggest New Link' / 'Suggest New Subcategory' does not work! Fatal error: Call to undefined function: dowsncodes() in /directory/classes/onelink.php on line 2038

Attached Files:
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Mar 15, 2006 - 6:05 PM:

I get the same error even if I try and edit a link... so there's something seriously gone wrong with the 3.3.9 upgrade.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 16, 2006 - 11:56 AM:

You still have not given me any procedure to reproduce your 'wsncodes' message -- except of course the procedure of going to the 'suggest link' page, which does not give such a message for me and appears not to have for anyone else but you either. Not to mention it's logically impossible if you have the proper classes/wsncodes.php and prestart.php and have WSN Codes switched on.

The upgrade matter I do see, it's simply a display problem, it suggests those cron queries that aren't actually needed.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
#10 - Quote - Permalink
Posted Mar 16, 2006 - 3:49 PM:

To reiterate, I had WSN Codes and WYSWIG switched off.

In your post above, you mention WSN Codes to be switched on... so I did and now it works... I don't get those errors now! But why?? All I'd done was turn off a feature I wasn't using...
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Mar 18, 2006 - 7:30 PM:

Sorry, I seem to be blind and missed that the codes were off.

The reason why it matters is that in order to reduce RAM consumption a function is no longer included when that switch is off, but something which uses it is still in the template even though the conditionals make its result not be displayed.

Fixed now.
bear
Member

Usergroup: Customer
Joined: Mar 16, 2006

Total Topics: 4
Total Comments: 15
bear
#12 - Quote - Permalink
Posted Mar 20, 2006 - 8:46 AM:

In a related issue, we just had a blank page when trying to edit/add a subcat. Same error thrown "dowsncodes", found by turning on debug, fixed by enabling "WSNcodes". Since these files were just downloaded last night, perhaps the bug remains?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#13 - Quote - Permalink
Posted Mar 21, 2006 - 8:12 PM:

Similar WSN-Codes-off issue in a different file, will be fixed in 3.3.11.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.