Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Photo Album and MySql
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ian9001
Starting Member

22 Posts

Posted - 16 March 2006 :  18:19:54  Show Profile
I've just taken over as admin on a forum running vers 3.4.05 and a MySql database. Never used Snitz with MsSql before, always been with MS Access, and never had an issue with the Photo Album Mod before; it's always installed sweet as a nut!

The MySql vers is 4.0.26 and the Mod is Photo Album v1.82 for Snitz 3.4.xx

Problem: After specifying the "/photos" directory, the tables are created without any issues. When I then try to access album_admin.asp it times out. I've checked the tables with phpMyAdmin and they're there OK and the config table has the right data in it.

Any suggestions as to where I should be looking to solve this, I'm at the head + brick wall stage!

Thanks folks...

Ian

modifichicci
Average Member

Italy
787 Posts

Posted - 17 March 2006 :  14:54:24  Show Profile  Visit modifichicci's Homepage
If your mysql server is not a window server, you need to change all the calling to tabels in sql query from lower case to upper case, because Linux server is case sensitive.
(that is for the calling FORUM_ALBUM etc etc)

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ian9001
Starting Member

22 Posts

Posted - 18 March 2006 :  15:10:24  Show Profile
Thanks, but is a Windows server.

Made some progress; as far as I can work out the page falls over at line 447 of admin_album.asp, here:

Set objRec = Server.CreateObject ("ADODB.Recordset")
sqlstr = "SELECT " & strTablePrefix & "members.M_NAME, " & strTablePrefix & "members.Member_Id," & strTablePrefix & "album_users.member_id as nullchk FROM " & strTablePrefix & "members "&_
"LEFT JOIN " & strTablePrefix & "album_users ON " & strTablePrefix & "members.member_id=" & strTablePrefix & "album_users.member_id "&_
"WHERE " & strTablePrefix & "album_users.member_id IS NULL"
member_SELECT =" <SELECT name=""adduser"">"
objRec.Open sqlstr, My_Conn
Do While not objRec.EOF
member_SELECT = member_SELECT&"<option value="&objRec.fields("MEMBER_ID")&">"&objRec.fields("M_Name")&"</option>"
objRec.MoveNext
loop
objRec.close
member_SELECT = member_SELECT&" </SELECT>"

delete_SELECT = " <SELECT name=""deleteuser"">"
sqlstr = "SELECT * FROM " & strTablePrefix & "album_users"
objRec.Open sqlstr, My_Conn
Do While not objRec.EOF
delete_SELECT = delete_SELECT&"<option value="&objRec.fields("MEMBER_ID")&">"&objRec.fields("M_Name")&"</option>"
objRec.MoveNext
loop
objRec.close
delete_SELECT = delete_SELECT&" </SELECT>"
set objRec = nothing

When I comment out this section, the page loads and displays all the correct info from the config table. When I then click on "Album User Admin" I then get this error:


Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.26]Table 'xxxxx_snitz.FORUM_members' doesn't exist

/admin_album_admin_users.asp, line 66


I will get there! But any help would be appreciated as this is the first time I've had problems like this with Snitz and still getting to know the code.

Ian
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 18 March 2006 :  19:53:41  Show Profile  Visit Jezmeister's Homepage
Don't spose you have a copy of admin_album_admin_users.asp? If the original problem was with the table not being found you'd expect it to display the error straight off. You having problems with any other bits of the mod?
Go to Top of Page

ian9001
Starting Member

22 Posts

Posted - 19 March 2006 :  15:19:49  Show Profile
Thanks Modifichicci!

Even though this is Windows server, changing the tables names to uppercase has done the trick... almost! Now have an issue with the pics not appearing in albums :( but I'm sure this is just me.

If anyone else has this issue, feel free to email me for a copy of the amended Mod files (save a bit of "finding and replacing" maybe)

Thanks for the replies

Ian
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 19 March 2006 :  15:55:45  Show Profile  Visit modifichicci's Homepage
quote:
Even though this is Windows server, changing the tables names to uppercase has done the trick


Glad to be useful, and I think your forum is on a window server, but as mine, MySql is on a Linux server.
So remeber to check all the mysql query to find the lower case calling...

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 19 March 2006 :  16:09:18  Show Profile
Depending on your what your host has set the mysql system variable lower_case_table_names the case of the table names will be an issue.

Usually, this isn't a problem on windows servers, because windows treat file names as the same whether they be upper case or lower case. So boo.asp will be the same as BOO.asp on windows, but on Unix systems, they are 2 different files.

MySQL stores it's tables in files on the server. That's why modifichicci suggested the case change. But the host might have override the default way of how mysql handles case names.

See here for more info: http://dev.mysql.com/doc/refman/4.1/en/name-case-sensitivity.html

Support Snitz Forums
Go to Top of Page

ian9001
Starting Member

22 Posts

Posted - 19 March 2006 :  17:10:51  Show Profile
Thanks for the link, this was a lesson learned in NOT thinking globally. I got too hung up on specifics I reckon.

All running sweet as a nut now.

Thanks guys

Ian
Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 22 March 2006 :  11:58:08  Show Profile  Visit jwashburn's Homepage
I am using a Windows server and having a tough time with this mod since switching to mysql. My forum has been up and running with the mod and accessdb for some time. We just recently switched to mysql and this is the last piece to get working. You get access denied errors. The permissions have not changed and just as a test I changed my config.asp to point back to access as a test and the photo album works again.

I am not sure what to check anymore

Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 22 March 2006 :  12:40:18  Show Profile  Visit jwashburn's Homepage
Here is some more information that may be helpful. I tried using the test function of the mod and it comes back with

exact path to file: /members
Permission deniedNo Errors detected, If you are still haveing problems please send me an email to Wesley Brown
File has been saved in file system.

View this file:

Sunset.jpg

The weird part is I did a search in the code for Permission denied and its not anywhere in the code for the mod, so I am not sure where the Permission denied message is coming from,

Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 24 March 2006 :  01:07:24  Show Profile  Visit jwashburn's Homepage
I am stuck now for sure.

Here is the code from the the test page
objUpload("File1").SaveAs strMapPath

' Release upload object from memory
Set objUpload = Nothing
response.write "exact path to file: " &strPath&"<BR>"
response.write err.description
if instr(err.description,"error") then
	response.write "<BR> if you get this error:<BR>ADODB.Stream error '800a0bbc'<BR>Write to file failed.<BR>/dev/clsField.asp, line 178<BR>"
	response.write "and there are NO ERRORS on the other page I do not have a fix for this sorry"
else
	Response.write "No Errors detected, If you are still haveing problems please send me an email to <a href=mailto:burthold@yahoo.com>Wesley Brown</a><BR>"
end if


The error I get is Permissiondenied

'response.write err.description


I remmed out the repsonse.write to see if the error was coming from the mod or not and sure enough I didnt get the error message.

I dont know where the permissiondenied error is coming from

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07