DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 23, 2017, 03:10:06 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: 1 [2] 3 4 ... 11
16  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 27, 2017, 12:11:53 PM
Now I am back where I was.  i got it uninstalled.

i have my tabledescriptor.php back to what it was before the linked fix...which did not work.

I have the install and uinstall functions un-commented once again...as the original file is.

So now what?

I can't get the damn thing to install.

I guess I need my hand held here because I can't solve the call stack no matter what the heck I do.

So, for right now...

tabledescriptor.php....i s back to the original
forum.php is back to the original.

I have the file uninstalled.

When I try the fix to tabledescriptor...the install still gives the call stack noted in the previous reply.

And I have to go thru a huge production to get it uinstalled again.

So now I need to know where to go from here.

ARRRGH....

Admittedly this call stack appears a little sifferent from the first call stack I got that started this whole thread...i think...

Yes, the line numbers referenced in the last two lines of the call stack I get now...are different from what i first got.

but other than that...still a problem.

It would seem it does not like

$sql .= ") TYPE=MyISAM;";

But I doo not know what to do with this line.
17  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 27, 2017, 11:55:27 AM
I can try these things and get back to you all if this works.  

First I have to get it uninstalled...then do the fix again...and then try to re-install.

That fix won't screw up any existing tables, will it?

UPDATE:  I got it to uninstall now.  I had to also comment out almost the entire install function.

Now I have un-commented everything I had commented out.

Now I am trying the fix that I was linked to that had not worked the first time...

Now I re-applied the fix that was linked to....

And I still get the call stack


CREATE TABLE logdforum (`id` int(11) NOT NULL auto_increment,`postdate` datetime NOT NULL default '0000-00-00 00:00:00',`newpostdate` datetime NOT NULL default '0000-00-00 00:00:00',`author` text NOT NULL,`parent` int(11) NOT NULL default '0',`replies` int(11) NOT NULL default '0',`userid` int(11) NOT NULL default '0',`title` varchar(100) NOT NULL default '',`category` int(11) NOT NULL default '0',`content` text NOT NULL,PRIMARY KEY  (`id`)) TYPE=MyISAM;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1
Call Stack:
1: db_query("CREATE TABLE logdforum (`...") called from /home/savmor/public_html/modules/forum.php on line 56
2: forum_install() called from /home/savmor/public_html/lib/modules.php on line 1327
3: install_module("forum") called from /home/savmor/public_html/modules.php on line 42
18  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 25, 2017, 01:02:18 PM
I'm confused. You're saying you're trying to uninstall it, or are you reinstalling it like I said, which you said you tried?

The database table wasn't created, so the uninstall function can't drop the table. Just comment out the problematic code and uninstall the module.

I tried.  It does not work.

I followed your link and made the change in the code...it stiil would not install...or uninstall. or reinstall.

It is stuck in installed modules and won't drop back to uninstalled modules.

And it won't install, either.  i get the call stack.
19  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 25, 2017, 06:44:27 AM
Why do you need to recreate the callstack? Just fix the error with the thread I gave you, and click the reinstall link. Should be all fixed and installed properly.

I tried it.  It did not work.

That is why.  See above, I pointed out that it did not work.
20  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 24, 2017, 05:44:59 PM
The problem is I can't uninstall it now in order to get the call stack that I got when I tried to install it.
21  Coding Support / Coding Support Desk / Re: Pets In The Gardens on: October 24, 2017, 08:34:55 AM
In that case, you can use the Code String Search module. You can insert a string to search for, and it will search all of your files for that string.

Thank you, that worked.  The offending part was actually in fairydragon.php
Like I said, i just did not need to see that in the news feed six times on one trip to the gardens.

Thanks for turning me on to that very useful codestring search module!  I am keeping that baby installed!
22  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 24, 2017, 07:15:08 AM
See that is why I post here.  Too get a nice answer like that.  Thanks, will follow this and report back.

Nope.  It did not help.

DROP TABLE logdforum
Unknown table 'logdforum'
Call Stack:
1: db_query("DROP TABLE logdforum") called from /home/savmor/public_html/modules/forum.php on line 74
2: forum_uninstall() called from /home/savmor/public_html/lib/modules.php on line 1262
3: uninstall_module("forum") called from /home/savmor/public_html/modules.php on line 50
23  Coding Support / Coding Support Desk / Re: Pets In The Gardens on: October 23, 2017, 11:18:15 PM
Open up all of the files associated with the pet shop module, and do a CTRL+F search for addnews.

I did that.

The only module I see associated with the pets is petshop.php

There are no modularized folders/files there.

I also looked in gardens.php to see if I could find anything, no luck.  Just need to know where it is coming from so I can take it out.
Just want to comment out the addnews lines so that it does not waste space in my news feed.
24  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 23, 2017, 11:15:59 PM
Screenshots of the errors?

hummm, not sure I can post screenshots but I could reproduce the call stacks.

this is lonny's module call stack:

CREATE TABLE logdforum (`id` int(11) NOT NULL auto_increment,`postdate` datetime NOT NULL default '0000-00-00 00:00:00',`newpostdate` datetime NOT NULL default '0000-00-00 00:00:00',`author` text NOT NULL,`parent` int(11) NOT NULL default '0',`replies` int(11) NOT NULL default '0',`userid` int(11) NOT NULL default '0',`title` varchar(100) NOT NULL default '',`category` int(11) NOT NULL default '0',`content` text NOT NULL,PRIMARY KEY  (`id`)) TYPE=MyISAM;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1
Call Stack:
1: db_query("CREATE TABLE logdforum (`...") called from /home/savmor/public_html/modules/forum.php on line 56
2: forum_install() called from /home/savmor/public_html/lib/modules.php on line 111
3: injectmodule("forum", true) called from /home/savmor/public_html/modules.php on line 70




here is Mighty E's blog call stack...
CREATE TABLE mod_mightyblogs (
blogid int(11) unsigned NOT NULL auto_increment,
author int(11) unsigned NOT NULL default '1' ,
date datetime NOT NULL ,
subject varchar(255) NOT NULL ,
body text NOT NULL ,
hits int(11) unsigned NOT NULL default '0' ,
PRIMARY KEY (blogid),
KEY date (date),
KEY author (author)) Type=INNODB
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Type=INNODB' at line 10
Call Stack:
1: db_query("CREATE TABLE mod_mightybl...") called from /home/savmor/public_html/lib/tabledescriptor.php on line 24
2: synctable("mod_mightyblogs", Array(
"blogid"=>Array(
"name"=>"blogid", "type"=>"int(11) unsigned", "extra"=>"auto_increment"
), "author"=>Array(
"name"=>"author", "type"=>"int(11) unsigned", "default"=>"1"
), "date"=>Array(
"name"=>"date", "type"=>"datetime"
), "subject"=>Array(
"name"=>"subject", "type"=>"varchar(255)"
), "body"=>Array(
"name"=>"body", "type"=>"text"
), "hits"=>Array(
"name"=>"hits", "type"=>"int(11) unsigned", "default"=>"0"
), "key-PRIMARY"=>Array(
"name"=>"PRIMARY", "type"=>"primary key", "unique"=>"1", "columns"=>"blogid"
), "index-date"=>Array(
"name"=>"date", "type"=>"index", "columns"=>"date"
), "index-author"=>Array(
"name"=>"author", "type"=>"index", "columns"=>"author"
)
), true) called from /home/savmor/public_html/modules/mightyblogs.php on line 49
3: mightyblogs_install() called from /home/savmor/public_html/lib/modules.php on line 1327
4: install_module("mightyblogs") called from /home/savmor/public_html/modules.php on line 42
25  Coding Support / Coding Support Desk / Serious Call Stack Issues With Forums on: October 23, 2017, 01:50:33 PM
Lonny's Forum thing and Mighty E's blogs both cause a call stack on my system.

Can't even uninstall them now but at least they are inactive.

What the heaven is the problem with these things and is there an actual module for a Player Forum somewhere??  One that actually works??
26  Coding Support / Coding Support Desk / Pets In The Gardens on: October 23, 2017, 12:27:04 PM
I have forever been trying, without success...to figure out WHERE in the coding or settings, that you end up with the addnews about someone's pet devouring a fairy in the Gardens.

I find it annoying to have four or five news items like that added and I want to stop that news from adding.

But I cannot find where it happens.

It is NOT in the hook to the gardens from petshop.php and it is not anywhere in gardens.php either.

So where is it coming from?

I also don't see it in the settings in the petshop module, or in the individual pets settings.

Can someone point me to the right place so I can take this out?

Thanks
27  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 13, 2017, 10:43:50 PM
I am pretty sure I never messed with the sanitize function, I would have had no reason to.

Just curious...do you document all your code and especially your changes to the core code in the files?  If not, strongly recommended...

Well, my site goes back quite some time.  I do not think, at the beginning, I was doing that.

I do now.

But I am pretty sure I never had any reason to muck around with the sanitize function.

I should look, what file is this?  I do have archived the original core files I could always try uploading a fresh copy and see.

Of course I would save my own so I could do a side by side compare.
28  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 13, 2017, 01:45:11 PM
I do not believe that was in any way edited or why I would.

I will look for another declaration of page_header then.

Just looked, I do not see another declaration.  I am stumped.

Do you have to somewhere require_once /lib/sanitize.php or something?

That is the only thing I can think of...

You shouldn't have to. There should have been a fatal error because of the undeclared function if you didn't require the file. You should probably try that out before posting about it o.O.

That was what I thought.
And I do not get a fatal error.

I know I got a number of fatal errors with the Item system for not requiring /lib/itemhandler.php - but those all got fixed long ago.

So...so come this is not working for me?  I still get the stupid codes...

I am pretty sure I never messed with the sanitize function, I would have had no reason to.

Any help here?
29  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 12, 2017, 05:25:56 PM
I do not believe that was in any way edited or why I would.

I will look for another declaration of page_header then.

Just looked, I do not see another declaration.  I am stumped.

Do you have to somewhere require_once /lib/sanitize.php or something?

That is the only thing I can think of...
30  Coding Support / Coding Support Desk / Re: How Do I Remove Color-Coding Notations From Page Headers? on: October 10, 2017, 02:25:04 PM
Where the dwellings code uses the page_header function when you enter a dwelling, use the sanitize function first on the dwelling name, then pass that into page_header.

Humm...not sure I get it.  It LOOKS like the sanitize is already being used, nevertheless, I still get unwanted stuff in my page headers.

Here is the code snip for case_enter on dwellins:
Code:
<?php
if (
$session['user']['location'] != get_module_setting("logoutlocation"))
set_module_pref("location_saver"$session['user']['location']);
$sql "SELECT name,description,ownerid FROM ".db_prefix("dwellings")." WHERE dwid=$dwid";
$result db_query($sql);
$row db_fetch_assoc($result); 
if($row['name'] == ""){
$name translate_inline("Unnamed");
}else{
$name $row['name'];
}
page_header("%s",sanitize($name));

Is that not supposed to sanitize the name and get the bold and color codes out of the page header?

Or am I missing something here?
Pages: 1 [2] 3 4 ... 11

*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
23 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search