Post Reply

[APP][UPD:3/06] ODM: Open Device Manager - Free, Open, Encrypted Android Dev Manager

OP Fmstrat

Announcement from Fmstrat: [APP][2.2+] ODM: Open Device Manager - Free, Open, Encrypted, an Android Device Manager Alternative
10th October 2014, 07:16 AM   |  #261  
Junior Member
Thanks Meter: 0
 
27 posts
Join Date:Joined: May 2010
Hi,

Replaced line 7 in db.php with:
$con = new PDO('mysql:dbname='.$DB_DATABASE.';host='.$DB_HOST .';charset=utf8', $DB_USER, $DB_PASSWORD);

Restarted WAMP and entered localhost/odm Result:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Accès refusé pour l'utilisateur: 'root'@'@localhost' (mot de passe: NON)' in C:\wamp\www\odm\include\db.php on line 7

PDOException: SQLSTATE[HY000] [1045] Accès refusé pour l'utilisateur: 'root'@'@localhost' (mot de passe: NON) in C:\wamp\www\odm\include\db.php on line 7
Call Stack

# Time Memory Function Location
1 0.0010 148784 {main}( ) ..\index.php:0
2 0.0020 205296 dbconnect( ) ..\index.php:4
3 0.0020 205728 __construct ( ) ..\db.php:7

Well i lost it
Anybody else who know how to fix this?
12th October 2014, 04:14 PM   |  #262  
Junior Member
Thanks Meter: 0
 
27 posts
Join Date:Joined: May 2010
Nobody who can help us?? Your help is highly appreciated!
12th October 2014, 05:29 PM   |  #263  
Junior Member
Thanks Meter: 0
 
27 posts
Join Date:Joined: May 2010
Steps i made:

Installed WAMP server 2.5 successfully. Server is up and running (green). I am able to open the localhost (Server Configuration )
page correctly.
Extracted odm-web-master.zip to: C:\wamp\www\odm
config.php : $ALLOW_REGISTRATIONS = true, passwords, DB etc. are set
Created new databank in phpMyAdmin: name: odm / uttf_unicode_ci
Imported odm.sql
now i see 4 tabels: gcm_data, gcm_messages, gcm_users, users
Now open IE: http://localhost/odm/

Fatal error:

Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in C:\wamp\www\odm\include\db.php on line 7
Call Stack
# Time Memory Function Location
1 0.0030 148480 {main}( ) ..\index.php:0
2 0.0080 205352 dbconnect( ) ..\index.php:4

Do i miss something?
13th October 2014, 09:03 AM   |  #264  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Oct 2014
NOT YET (

DID YOU??

Thanks

Daniel



Quote:
Originally Posted by marvon10

Hello,

Same over here, tried running on WAMP and XAMP. When entering http:/127.0.0.1/odm i recieve the below errors:

Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in C:\wamp\www\odm\include\db.php on line 7
Call Stack

# Time Memory Function Location
1 0.0010 148784 {main}( ) ..\index.php:0
2 0.0020 205656 dbconnect() ..\index.php:4

Any advise how to solve this? thanks a lot!

13th October 2014, 11:31 AM   |  #265  
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Aug 2013
Hey, no still not working an no support
14th October 2014, 05:37 PM   |  #266  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Jul 2010
Thumbs up
Quote:
Originally Posted by Dataking

Hey, no still not working an no support

Are you hosting it in web ? (cPanel) or on Ubuntu ? It is working for me, (ring, shell command, notification, but no photo video ). I hosted in web and I used the fix suggested by "zkvvoob" #255

-
14th October 2014, 07:20 PM   |  #267  
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Aug 2013
[APP][UPD:3/06] ODM: Open Device Manager - Free, Open, Encrypted Android Dev ...
Hi, hosting in web on XAMP but localhost/odm is unable to open webpage an shows: Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in C:\wamp\www\odm\include\db.php on line 7. did you had the same issue in the beginning? What server are you using? Thank you
Last edited by Dataking; 14th October 2014 at 07:23 PM.
15th October 2014, 01:45 PM   |  #268  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by Dataking

Hi, hosting in web on XAMP but localhost/odm is unable to open webpage an shows: Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in C:\wamp\www\odm\include\db.php on line 7. did you had the same issue in the beginning? What server are you using? Thank you

I think you have to change name of the database (DB_DATABASE, DB_USER , DB_PASSWORD )(hosting in web normally add some prefix to database name "host_odm") you have to change this in config.php
DB_HOST = "localhost";
$DB_USER = "host_yourname";
$DB_PASSWORD = "Your Passwprd";
$DB_DATABASE = "host_odm";
15th October 2014, 02:26 PM   |  #269  
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Aug 2013
Thanks for your help but still the same error in line 7 ;
17th October 2014, 03:18 PM   |  #270  
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Aug 2013
Quote:
Originally Posted by Dataking

Thanks for your help but still the same error in line 7 ;

So line 7 in db.php:

new PDO('mysql:dbname='.$DB_DATABASE.';host='.$DB_HOST .';charset=utf8', $DB_USER, $DB_PASSWORD, array(PDO::MYSQL_ATTR_MAX_BUFFER_SIZE=>1024*1024*5 0));

results (https://localhost/odm/) in:

Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in C:\xampp\htdocs\odm\include\db.php on line 7

Anyone?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Apps and Games by ThreadRank