DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • September 21, 2017, 12:35:48 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: **SOLVED** PHP 136 error on installation.  (Read 143 times)
0 Members and 1 Guest are viewing this topic.
Choopi
Member

Offline Offline

Posts: 3


View Profile
« on: September 14, 2017, 05:37:20 PM »

Hey guys (gals).

Just trying to get this running on my server.  Please see below.  I am getting a PHP fatal error 136, which seems to revolve around the dbwrapper_mysql file.  Does anyone have an idea of where I can be pointed?  I am using the new "recommended for 2017" version that I downloaded from the downloads section. If I point to the directory on my server, I get the initial splash screen. However, if I click on the (G)ame Installer button, I get a Http 500 error.  In checking the error log, I get this:  (My actual domain edited out and replaced with "my_domain"

  
Code:
[15-Sep-2017 00:20:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/my_domain/public_html/logd/lib/dbwrapper_mysql.php:136
Stack trace:
#0 /home/my_domain/public_html/logd/common.php(124): db_connect(NULL, NULL, NULL)
#1 /home/my_domain/public_html/logd/installer.php(13): require_once('/home/forestcit...')
#2 {main}
  thrown in /home/my_domain/public_html/logd/lib/dbwrapper_mysql.php on line 136

Thanks!

Code:
What version of Apache is installed? Apache
What PHP version is installed? 7.0.23
Are short_open_tag's enabled? Yes
Are the mysql or mysqli extensions available? Yes
What MySQL version is installed?
Is cURL available? Yes
Is allow_url_fopen enabled? No
File check:
./about.php checks out...
./armor.php checks out...
./armoreditor.php checks out...
./badnav.php checks out...
./badword.php checks out...
./bank.php checks out...
./battle.php checks out...
./bio.php checks out...
./bios.php checks out...
./clan.php checks out...
./common.php doesn't check out...
./companions.php checks out...
./configuration.php checks out...
./create.php doesn't check out...
./creatures.php doesn't check out...
./cron.php checks out...
./donators.php checks out...
./dragon.php doesn't check out...
./forest.php checks out...
./gamelog.php checks out...
./gardens.php checks out...
./graveyard.php checks out...
./gypsy.php checks out...
./healer.php checks out...
./hof.php checks out...
./home.php checks out...
./images/logdnet.php doesn't check out...
./index.php checks out...
./inn.php checks out...
./installer.php checks out...
./lib/about/about_default.php checks out...
./lib/about/about_license.php checks out...
./lib/about/about_listmodules.php checks out...
./lib/about/about_setup.php checks out...
./lib/addnews.php checks out...
./lib/all_tables.php checks out...
./lib/arraytourl.php checks out...
./lib/arrayutil.php checks out...
./lib/battle-buffs.php checks out...
./lib/battle-skills.php checks out...
./lib/bell_rand.php checks out...
./lib/buffs.php checks out...
./lib/censor.php checks out...
./lib/charcleanup.php checks out...
./lib/checkban.php checks out...
./lib/clan/applicant.php checks out...
./lib/clan/applicant_apply.php checks out...
./lib/clan/applicant_new.php checks out...
./lib/clan/clan_default.php checks out...
./lib/clan/clan_membership.php checks out...
./lib/clan/clan_motd.php checks out...
./lib/clan/clan_start.php checks out...
./lib/clan/clan_withdraw.php checks out...
./lib/clan/detail.php checks out...
./lib/clan/func.php checks out...
./lib/clan/list.php checks out...
./lib/clan/waiting.php checks out...
./lib/commentary.php checks out...
./lib/constants.php checks out...
./lib/creatures.php checks out...
./lib/datacache.php checks out...
./lib/datetime.php doesn't check out...
./lib/dbwrapper.php checks out...
./lib/dbwrapper_mysql.php checks out...
./lib/dbwrapper_mysqli_oos.php checks out...
./lib/dbwrapper_mysqli_proc.php checks out...
./lib/debuglog.php checks out...
./lib/dhms.php checks out...
./lib/dump_item.php checks out...
./lib/errorhandler.php checks out...
./lib/errorhandling.php doesn't check out...
./lib/events.php doesn't check out...
./lib/experience.php checks out...
./lib/expire_chars.php doesn't check out...
./lib/extended-battle.php checks out...
./lib/e_dom.php checks out...
./lib/e_rand.php checks out...
./lib/fightnav.php checks out...
./lib/forcednavigation.php checks out...
./lib/forest.php checks out...
./lib/forestoutcomes.php checks out...
./lib/forms.php doesn't check out...
./lib/gamelog.php checks out...
./lib/graveyard/case_battle_search.php checks out...
./lib/graveyard/case_default.php checks out...
./lib/graveyard/case_enter.php checks out...
./lib/graveyard/case_haunt.php checks out...
./lib/graveyard/case_haunt2.php checks out...
./lib/graveyard/case_haunt3.php checks out...
./lib/graveyard/case_question.php checks out...
./lib/graveyard/case_restore.php checks out...
./lib/graveyard/case_resurrection.php checks out...
./lib/holiday_texts.php checks out...
./lib/http.php checks out...
./lib/increment_specialty.php checks out...
./lib/inn/inn_bartender.php checks out...
./lib/inn/inn_default.php checks out...
./lib/inn/inn_room.php checks out...
./lib/installer/installer_default_settings.php checks out...
./lib/installer/installer_functions.php checks out...
./lib/installer/installer_sqlstatements.php checks out...
./lib/installer/installer_stage_0.php checks out...
./lib/installer/installer_stage_1.php doesn't check out...
./lib/installer/installer_stage_10.php checks out...
./lib/installer/installer_stage_2.php checks out...
./lib/installer/installer_stage_3.php checks out...
./lib/installer/installer_stage_4.php checks out...
./lib/installer/installer_stage_5.php checks out...
./lib/installer/installer_stage_6.php checks out...
./lib/installer/installer_stage_7.php checks out...
./lib/installer/installer_stage_8.php checks out...
./lib/installer/installer_stage_9.php checks out...
./lib/installer/installer_stage_default.php checks out...
./lib/is_email.php checks out...
./lib/local_config.php checks out...
./lib/lookup_user.php checks out...
./lib/mail/case_address.php checks out...
./lib/mail/case_default.php checks out...
./lib/mail/case_read.php checks out...
./lib/mail/case_send.php checks out...
./lib/mail/case_write.php checks out...
./lib/mail.php checks out...
./lib/modules.php doesn't check out...
./lib/motd.php checks out...
./lib/mountname.php checks out...
./lib/mounts.php checks out...
./lib/names.php checks out...
./lib/newday/dbcleanup.php checks out...
./lib/newday/dp_recalc.php checks out...
./lib/newday/dragonpointspend.php checks out...
./lib/newday/newday_runonce.php doesn't check out...
./lib/newday/setrace.php checks out...
./lib/newday/setspecialty.php checks out...
./lib/nltoappon.php checks out...
./lib/output.php checks out...
./lib/output_array.php checks out...
./lib/pageparts.php doesn't check out...
./lib/partner.php checks out...
./lib/petition/petition_default.php checks out...
./lib/petition/petition_faq.php checks out...
./lib/petition/petition_faq1.php checks out...
./lib/petition/petition_faq2.php checks out...
./lib/petition/petition_faq3.php checks out...
./lib/petition/petition_primer.php checks out...
./lib/php_generic_environment.php checks out...
./lib/pullurl.php doesn't check out...
./lib/pvplist.php checks out...
./lib/pvpsupport.php checks out...
./lib/pvpwarning.php checks out...
./lib/redirect.php checks out...
./lib/register_global.php checks out...
./lib/safeescape.php checks out...
./lib/sanitize.php checks out...
./lib/saveuser.php checks out...
./lib/settings.php doesn't check out...
./lib/showform.php doesn't check out...
./lib/show_backtrace.php checks out...
./lib/source.php checks out...
./lib/spell.php checks out...
./lib/sql.php checks out...
./lib/stripslashes_deep.php checks out...
./lib/substitute.php checks out...
./lib/superusernav.php checks out...
./lib/su_access.php doesn't check out...
./lib/systemmail.php checks out...
./lib/tabledescriptor.php doesn't check out...
./lib/taunt.php checks out...
./lib/template.php checks out...
./lib/tempstat.php checks out...
./lib/titles.php checks out...
./lib/translator.php checks out...
./lib/user/user_.php checks out...
./lib/user/user_debuglog.php checks out...
./lib/user/user_del.php checks out...
./lib/user/user_delban.php checks out...
./lib/user/user_edit.php checks out...
./lib/user/user_lasthit.php checks out...
./lib/user/user_removeban.php checks out...
./lib/user/user_save.php checks out...
./lib/user/user_saveban.php checks out...
./lib/user/user_savemodule.php checks out...
./lib/user/user_setupban.php checks out...
./lib/user/user_special.php checks out...
./lib/villagenav.php checks out...
./list.php checks out...
./lodge.php checks out...
./logdnet.php checks out...
./login.php checks out...
./mail.php checks out...
./masters.php checks out...
./mercenarycamp.php checks out...
./moderate.php checks out...
./modules/cedrikspotions.php checks out...
./modules/crazyaudrey.php checks out...
./modules/dag/dohook.php checks out...
./modules/dag/install.php checks out...
./modules/dag/misc_functions.php checks out...
./modules/dag/run.php checks out...
./modules/dag.php checks out...
./modules/darkhorse.php checks out...
./modules/drinks/dohook.php checks out...
./modules/drinks/drunkenize.php checks out...
./modules/drinks/install.php checks out...
./modules/drinks/misc_functions.php checks out...
./modules/drinks/run.php checks out...
./modules/drinks.php checks out...
./modules/fairy.php checks out...
./modules/findgem.php checks out...
./modules/findgold.php checks out...
./modules/foilwench.php checks out...
./modules/game_dice.php checks out...
./modules/game_fivesix.php checks out...
./modules/game_stones.php checks out...
./modules/glowingstream.php checks out...
./modules/goldmine.php checks out...
./modules/lovers/lovers_chat_seth.php checks out...
./modules/lovers/lovers_chat_violet.php checks out...
./modules/lovers/lovers_seth.php checks out...
./modules/lovers/lovers_violet.php checks out...
./modules/lovers.php checks out...
./modules/outhouse.php checks out...
./modules/racedwarf.php checks out...
./modules/raceelf.php checks out...
./modules/racehuman.php checks out...
./modules/racetroll.php checks out...
./modules/sethsong.php checks out...
./modules/specialtydarkarts.php checks out...
./modules/specialtymysticpower.php checks out...
./modules/specialtythiefskills.php doesn't check out...
./modules.php checks out...
./motd.php checks out...
./mounts.php checks out...
./newday.php checks out...
./news.php checks out...
./paylog.php checks out...
./payment.php doesn't check out...
./petition.php checks out...
./prefs.php doesn't check out...
./pvp.php checks out...
./rawsql.php doesn't check out...
./referers.php checks out...
./referral.php checks out...
./rock.php checks out...
./runmodule.php checks out...
./shades.php checks out...
./source.php checks out...
./stables.php checks out...
./stats.php checks out...
./superuser.php checks out...
./taunt.php checks out...
./titleedit.php checks out...
./train.php checks out...
./translatortool.php checks out...
./untranslated.php checks out...
./user.php checks out...
./viewpetition.php checks out...
./village.php checks out...
./weaponeditor.php checks out...
./weapons.php checks out...

I appreciate any help you guys (gals) can offer!  
Thanks so much
« Last Edit: September 15, 2017, 08:09:21 AM by Choopi » Logged
Anharat
Codemeister
****
Offline Offline

Posts: 263



View Profile WWW
« Reply #1 on: September 14, 2017, 11:01:27 PM »

LotgD is not compatible with php7
Logged

Boris735
Mod God
*****
Offline Offline

Posts: 568


View Profile
« Reply #2 on: September 15, 2017, 03:12:40 AM »

To expand on Anharat's statement, the various mysql_*() routines have been removed in PHP 7.0, so LoGD cannot work with them and PHP 7.0.  However, LoGD does also include bindings for the mysqli interface, which is supported.  To switch to using those, edit the file lib/dbwrapper.php and change the following line:

Code:
define('DBTYPE',"mysql");

to

Code:
define('DBTYPE',"mysqli_proc");

then save the file, and try running the installer again.

I expect that you will continue to run into other issues of deprecated technology, but that should enable you to get further, at least.
Logged
Choopi
Member

Offline Offline

Posts: 3


View Profile
« Reply #3 on: September 15, 2017, 05:02:11 AM »

First off, thank you guys for the responses.  I really do appreciate them. 

I believe I will end up grabbing a separate domain strictly for LotGD, and set that domain up for PHP 5.4 within cpanel.  I guess the good thing would be I will have one site for LotGD that all of my users across all my sites will have access to.  I think that would make a better game!

Thanks again for your help, and I will keep you updated.7
Logged
Choopi
Member

Offline Offline

Posts: 3


View Profile
« Reply #4 on: September 15, 2017, 08:08:58 AM »

Just a quick update.

I changed the code as suggested above, and I got the game to install.  I have been playing with it for about an hour now, and I have not been able to break it.  I did not change my PHP version. 

It appears as though it is working at the moment.  I will update if I find any incompatibilities. 

Thanks again, everyone.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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