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

  Show Posts
Pages: [1] 2 3 ... 116
1  Game Administration, Installation and Configuration / Game Administration Chat / Re: LoGD v1.1.2 Core Code - BUGS FIXED on: November 04, 2017, 07:38:18 PM
Another required fix is that all mysql_ functions in the installer need to be updated to db_ functions for use with PHP 7. Three fixed files attached.

Extensions of mysql_ were deprecated in PHP 5.5.0 and removed in PHP 7.0.0. Instead, the MySQLi extension should be used.

If you're also getting "Invalid default value" errors in MySQL for "0000-00-00 00:00:00", follow these instructions.
2  Coding Support / Coding Support Desk / Re: How To Convert Array Into String?? on: November 04, 2017, 07:11:57 AM
Do try to keep your drama to a minimum here, nobody here appreciates it. Nor did we ask for your life story.

I wasn't born into it, I self-taught myself at 16, started learning how to code properly in Uni at 18, and have only been decent at it for five years. Don't assume.

Shall we get back on topic?
3  Coding Support / Coding Support Desk / Re: How To Convert Array Into String?? on: November 03, 2017, 03:26:44 PM
I really only know enough about coding to be dangerous.

I'm sure that's meant to sound cool, but I recommend actually taking a full PHP course online before going further. How can you run a site when you don't know how to run it?
4  Coding Support / Coding Support Desk / Re: How To Convert Array Into String?? on: November 02, 2017, 06:51:33 PM
Now...in PHP 5.3 and lower...when an array was passed to something that called for a string, it quietly put a zero in there and just kept going...so you never knew there was a problem.

NOW...you actually get the unsightly call stack!

No, that's just bad coding. If it calls for a string, you give it a string. If it calls for an array, you give it an array. You don't pass something to it incorrectly and just hope for the best.

You can check if something's an array by using is_array in a if-statement. If it calls for an array, and what is passed is not an array, you need to exit the function and not continue with it. If it calls for a string, and what is passed is not a string, you need to exit the function and not continue with it.
5  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: HELP!! PHP 5.5 on: October 29, 2017, 04:18:37 PM
Some other peeps might make use of this little fix....since Versions 1.1.1 and 1.1.2 BOTH contain the offending line at or near line 87 in common.php

The current upload of 1.1.2 doesn't, because we went through and fixed those bugs, such as those listed here.
6  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 29, 2017, 04:17:12 PM
You're welcome.
7  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 27, 2017, 03:17:36 PM
When I told you how to fix it before, it seems that you didn't get the general point of it. The fix given here applies everywhere.

That means you need to change Type= to Engine= in the forum module as well. Which I can tell that you didn't do, because in this callstack, you still have "TYPE=MyISAM" at the end.

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

8  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 25, 2017, 06:38:45 PM
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.


But I just told you how to uninstall it in my last post?

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.
9  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 25, 2017, 09:49:20 AM
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.
10  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 24, 2017, 08:54:02 PM
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.
11  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 24, 2017, 01:18:08 PM
Unknown table 'logdforum'

The explanation is in the error. The fix I gave you is only for the queries to install the module and database table - this query is to uninstall the module and database table, but in this case, the database table does not exist.
12  Coding Support / Coding Support Desk / Re: Pets In The Gardens on: October 24, 2017, 02:31:28 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.
13  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 24, 2017, 02:05:40 AM
I'm noticing these in your call stacks:

TYPE=MyISAM;
Type=INNODB

Read this and you'll find the fix.

What the heaven is the problem with these things and is there an actual module for a Player Forum somewhere??  One that actually works??

So, yep, there is. It's just that old versions of modules require updates to work.
14  Coding Support / Coding Support Desk / Re: Pets In The Gardens on: October 23, 2017, 09:08:05 PM
Open up all of the files associated with the pet shop module, and do a CTRL+F search for addnews.
15  Coding Support / Coding Support Desk / Re: Serious Call Stack Issues With Forums on: October 23, 2017, 09:05:36 PM
Screenshots of the errors?
Pages: [1] 2 3 ... 116

*
DragonPrime Notices
Play LoGD on Dragonprime

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