Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: mysqli support Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mno2go
Newbie
Newbie


Joined: 22 February 2010
Online Status: Offline
Posts: 5
Posted: 22 February 2010 at 3:34pm | IP Logged Quote mno2go

Hi all,

I'm running only the mysqli extension, and so I've been hacking away at the Lite version chaning all mysql_* calls to mysqli_*. It seems to have gotten to the 3rd page of the install (where I enter the db info). However, at this point, all the options are grayed out. Does anyone know what I missed going from mysql_ to mysqli_ in order to make this page not grayed out?

Cheers,
Max
Back to Top View mno2go's Profile Search for other posts by mno2go
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 22 February 2010 at 4:07pm | IP Logged Quote Igor

Rather than running the installation wizard, try configuring the product directly by modifying data/settings/settings.xml file. Note that you'll need to use Database Settings screen anyway to create database tables. Alternately, you can put another copy of WebMail Lite on a different machine with MySQL available there, run the installer, have database tables created and copy the database data & structure.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 22 February 2010 at 4:09pm | IP Logged Quote Igor

To answer the original question itself: before displaying Database Settings screen, WebMail runs a check of what DB extensions are present. Might need to modify/remove that check.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
mno2go
Newbie
Newbie


Joined: 22 February 2010
Online Status: Offline
Posts: 5
Posted: 22 February 2010 at 5:40pm | IP Logged Quote mno2go

Hi Igor,

Thank you for the quick response.

Where does the check occur? I can't seem to locate it in the code (yet).

Thank you,
Max
Back to Top View mno2go's Profile Search for other posts by mno2go
 
mno2go
Newbie
Newbie


Joined: 22 February 2010
Online Status: Offline
Posts: 5
Posted: 22 February 2010 at 5:52pm | IP Logged Quote mno2go

Found it:

./adminpanel/plugins/webmail/plugin.php

Now the db setup screen is not grayed out.

I will post a patch here later for those interested to move from mysql to mysqli.

Cheers,
Max
Back to Top View mno2go's Profile Search for other posts by mno2go
 
mno2go
Newbie
Newbie


Joined: 22 February 2010
Online Status: Offline
Posts: 5
Posted: 22 February 2010 at 10:15pm | IP Logged Quote mno2go

Ok, I got through that error, but now for some reason am stuck at the create table code. It seems to hang for ever and ever, previously giving me an error on line 1163 of adminpanel/plugins/webmail/common/db/dbstorage.php -- seems that the GetNextArrayRecord function returned null which was not expected by the code.

I added a work-arond to check for null, and now there is no more error, but the code still takes forever to execute.

Any suggestions where to look?
Back to Top View mno2go's Profile Search for other posts by mno2go
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 26 February 2010 at 5:15am | IP Logged Quote Igor

I hope you understand that we just can't provide support for modified versions of our products, especially when it's about modifying database access methods. Different methods may cause different changes as to data exchange, including even SQL queries' syntax.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
mno2go
Newbie
Newbie


Joined: 22 February 2010
Online Status: Offline
Posts: 5
Posted: 03 March 2010 at 10:33am | IP Logged Quote mno2go

I was thinking you'd be interested to support mysqli. I guess not.
Back to Top View mno2go's Profile Search for other posts by mno2go
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide