AbleDesign - Support Forum

AbleDesign Forum Index AbleDesign

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
AbleDesign Forum Index
D-Man Discussion
Having a few problems with D-Man
Post new topic   Reply to topic

Post new topic   Reply to topic    AbleDesign Forum Index -> D-Man Discussion
View previous topic :: View next topic  
Author Message
Hawk
Lurker
Lurker


Joined: 09 Nov 2012
Posts: 3
Location: Georgia - USA

PostPosted: Fri Nov 09, 2012 1:13 pm    Post subject: Having a few problems with D-Man Reply with quote

Quote:
First off, when I change the admin username I can no longer log in as admin.


That's an intentional piece of the design, as only that one hardcoded account can gain admin access.

Quote:
Making any admin name changes in config.php doesn't seem to make any difference.


Hmm, something's wrong there. This should be allowing you to change it:

$CFG['admin_username'] = "admin"; // this should match the admin username in your Users table

Did you also change the admin account's username in the database?

Quote:
I did successfully add the sub-directory in the downloads directory, but when I upload a file via FTP, then try to add that file, I get this:
Code:
Deprecated: Function ereg() is deprecated in /home/snagalat/domains/paphalophagus.com/public_html/d-man/lib.php on line 968

although it looks like the file shows OK.


Thanks, I'm working on updating those ereg() functions to their newer equivalents. I'll email you an updated package as soon as they're cleaned up.

"As of PHP 5.3.0, the regex extension is deprecated... Calling this function will issue an E_DEPRECATED notice."

http://us2.php.net/ereg

So, it worked, but you received the warning.

Quote:
The confirmation email is sent to the new registrant, but when I click on the confirmation link in the email, I get this:
Code:
Account Confirmation

ERROR - Missing Parameters


Can you forward me the email? I may also need to log into your test setup (and/or view the database), but looking at the email for any clues would be the first step.

Quote:
Also, on the variables page, it shows the server time as 5:34 PM, but the actual server time is 9:34 AM (Los Angeles) and my time is 12:34 PM.


You need to configure 'timezone_offset' in the variables that can be set online.

Quote:
If I try to upload a file through D-Man, I get this error:


Is it possible that the file is large enough to exceed the memory limit for file uploads? (Look at $upload_max_bytes_admin in config.php)

Cheers,
Dan
_________________
Hawk
Back to top
View user's profile Send private message Visit poster's website
Hawk
Lurker
Lurker


Joined: 09 Nov 2012
Posts: 3
Location: Georgia - USA

PostPosted: Fri Nov 09, 2012 1:26 pm    Post subject: Reply with quote

Another issue I just saw.

If I try to upload a file through D-Man, I get this error:
Code:
File Upload Success: Yes
File Move Success:
Warning: move_uploaded_file(/japan.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/snagalat/domains/paphalophagus.com/public_html/d-man/user.php on line 197

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpapN6ul' to '/japan.zip' in /home/snagalat/domains/paphalophagus.com/public_html/d-man/user.php on line 197
No

_________________
Hawk
Back to top
View user's profile Send private message Visit poster's website
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Fri Nov 09, 2012 1:54 pm    Post subject: Reply with quote

Quote:
First off, when I change the admin username I can no longer log in as admin.


That's an intentional piece of the design, as only that one hardcoded account can gain admin access.

Quote:
Making any admin name changes in config.php doesn't seem to make any difference.


Hmm, something's wrong there. This should be allowing you to change it:

$CFG['admin_username'] = "admin"; // this should match the admin username in your Users table

Did you also change the admin account's username in the database?

Quote:
I did successfully add the sub-directory in the downloads directory, but when I upload a file via FTP, then try to add that file, I get this:
Code:
Deprecated: Function ereg() is deprecated in /home/snagalat/domains/paphalophagus.com/public_html/d-man/lib.php on line 968

although it looks like the file shows OK.


Thanks, I'm working on updating those ereg() functions to their newer equivalents. I'll email you an updated package as soon as they're cleaned up.

"As of PHP 5.3.0, the regex extension is deprecated... Calling this function will issue an E_DEPRECATED notice."

http://us2.php.net/ereg

So, it worked, but you received the warning.

Quote:
The confirmation email is sent to the new registrant, but when I click on the confirmation link in the email, I get this:
Code:
Account Confirmation

ERROR - Missing Parameters


Can you forward me the email? I may also need to log into your test setup (and/or view the database), but looking at the email for any clues would be the first step.

Quote:
Also, on the variables page, it shows the server time as 5:34 PM, but the actual server time is 9:34 AM (Los Angeles) and my time is 12:34 PM.


You need to configure 'timezone_offset' in the variables that can be set online.

Quote:
If I try to upload a file through D-Man, I get this error:


Is it possible that the file is large enough to exceed the memory limit for file uploads? (Look at $upload_max_bytes_admin in config.php)

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hawk
Lurker
Lurker


Joined: 09 Nov 2012
Posts: 3
Location: Georgia - USA

PostPosted: Fri Nov 09, 2012 2:36 pm    Post subject: Reply with quote

Quote:
That's an intentional piece of the design, as only that one hardcoded account can gain admin access.

I'm going to edit the mysql_table_structure.sql and the config.php accordingly to set it to what I want. That should do the trick.
I'm also going to change the DMan_Usergroups and cut it down to only 3 groups, like this:
Code:
INSERT INTO DMan_Usergroups VALUES ( '1', 'Administrator');
INSERT INTO DMan_Usergroups VALUES ( '2', 'User');
INSERT INTO DMan_Usergroups VALUES ( '3', 'Pending');


Quote:
Did you also change the admin account's username in the database?

No. I thought changing it in the CP would also change it in the database. Apparently I was wrong. The edits I'm going to do, mentioned above, should take care of that.

Quote:
So, it worked, but you received the warning.

It seemed to.

Quote:
Can you forward me the email? I may also need to log into your test setup (and/or view the database), but looking at the email for any clues would be the first step.

Let me get the database re-created and try again. If I get the same issue I'll forward you the email and any necessary log in info you need.
As I mentioned, this site I'm testing D-Man on is nothing more than a site I set up just for the purpose of testing stuff like this. It is not the site I plan on using D-Man on, but I want to get everything set up like I want, and get familiar with the script, before I try to go live with it.

Quote:
You need to configure 'timezone_offset' in the variables that can be set online.

I did, but it didn't change anything, or so it seems.
This one isn't that big of a deal though. I just mentioned it because I thought there might be some other place to set the time zone or the time zone offset.
I'm in the EST time zone (UTC-5) and the server is in PT (UTC-8 ). Which means if I set the offset in the variblaes page to -3, it should show the right server time, but it seems to be showing the time based on UTC instead of UTC-8.

Quote:
Is it possible that the file is large enough to exceed the memory limit for file uploads? (Look at $upload_max_bytes_admin in config.php)

I had it set at default (1000000) and the file was only 83 KB

I'm going to delete the database again and re-create it with the edits I'm going to do. Then I'll test again and get back with you.
_________________
Hawk
Back to top
View user's profile Send private message Visit poster's website
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Fri Nov 09, 2012 2:43 pm    Post subject: Reply with quote

Quote:
I thought changing it in the CP would also change it in the database.


That explains it. Your proposed changes should be fine.

Quote:
I'm in the EST time zone (UTC-5) and the server is in PT (UTC-8 ). Which means if I set the offset in the variblaes page to -3, it should show the right server time, but it seems to be showing the time based on UTC instead of UTC-8.


It should be adjusting that to Pacific Time. That's the first I've heard of it not working.

Quote:
I had it set at default (1000000) and the file was only 83 KB


Definitely a problem there, then. Did you set the uploads directory permissions per the instructions?

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AbleDesign Forum Index -> D-Man Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group


Home | Services | Pricing | Portfolio | About Us | Contact
Support | Programs | Purchase | Tutorials | Site Map

© 1999-2018 AbleDesign.com - Web Design that Can!