| Author |
Message |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Mon Apr 30, 2007 11:52 pm |
|
I am getting this isses after install , when i go into admin.php and click on Digital Shop i get this error
The encoded file /home/xxx/public_html/modules/Digital_Shop/lib/init.php requires a license file.
The license file /home/xxx/public_html/modules/Digital_Shop/license/licdata.dat is corrupt.
Please help.
I am running PHP-Platnium7.6b4v2
My site www.allnukestuff.com |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 01, 2007 12:01 am |
|
Hi,
Make sure you copied the complete license text including
------ LICENSE FILE DATA -------
and
--------------------------------
If that isn't the problem drop me a line and I'll make you a new one.
Thanks,
gotcha |
| |
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Tue May 01, 2007 12:54 am |
|
Yep i copyed it right
------ LICENSE FILE DATA -------
xxxxbla bla bla
--------------------------------
But still not working |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 01, 2007 1:36 am |
|
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Tue May 01, 2007 2:29 am |
|
Ok the license is now working but getting constants.php issue.
It says in the read me edit the constant and find line
| Code: |
$dsn_string = 'mysql://username:password@dbHost/dbName'; |
But this code is not in there.
This is the code inside
| Code: |
<?php
/****** Settings for ALL versions ******/
// insert your database info in this format
// dbType://dbUser:dbPassword@dbHost/dbName
define('DSN_STRING', 'mysql://dbUser:dbPassword@dbHost/dbName');
// set paths according to type of install
define('ROOT_LINK', 'modules.php?name=Digital_Shop');
define('BASE_LINK', ROOT_LINK.'&');
define('LOGIN_LINK', 'account.html');
define('SMARTY_PATH', 'includes/');
define('PEAR_PATH', 'includes/');
// path to log files
define('LOG_FILE_PHP', SCRIPT_PATH.'log/error_php.log');
define('LOG_FILE_PEAR', SCRIPT_PATH.'log/error_pear.log');
define('SHOP_DEBUG', true);
// Define all table names
define('TABLE_SESSIONS', 'shop_sessions');// stand alone version only
define('TABLE_USERS', 'nuke_users');
define('TABLE_USERS_CONFIRM', 'shop_users_confirm');// stand alone version only
define('TABLE_CATS', 'shop_categories');
define('TABLE_ITEMS', 'shop_items');
define('TABLE_IMAGES', 'shop_images');
define('TABLE_CONFIG', 'shop_config');
define('TABLE_PURCHASES', 'shop_purchases');
define('TABLE_APPREG', 'shop_appreg');
define('TABLE_BLOCKS', 'shop_blocks');// stand alone version only
define('TABLE_SAVED_CART', 'shop_saved_carts');
define('TABLE_PURCHASES', 'shop_purchases');
define('TABLE_PURCHASE_LOG', 'shop_purchase_log');
define('TABLE_REVIEWS', 'shop_reviews');
define('TABLE_RATINGS', 'shop_ratings');
//define('TABLE', '');
/****** Settings for STAND ALONE VERSION ONLY ******/
// chances of clearing stale logins
// the busier the site, the lower the number
define('SHOP_CLEARSTALE', 25);
// # of hours before we consider logins stale.
define('SHOP_LOGINSTALE', 2);
// use smart redirects in some areas
// takes user back to page they came from
define('SMART_REDIR', true);
// check if the email server actually exists - slower, but safer
define('EMAIL_DNS_CHECK', true);
// username/password checks on register
define('LEN_UNAME_MIN', 6);
define('LEN_UNAME_MAX', 25);
define('LEN_PW_MIN', 5);
define('LEN_PW_MAX', 15);
// user levels
define('USER_LEVEL_GUEST', 0);
define('USER_LEVEL_REG', 1);
define('USER_LEVEL_MOD', 2);
define('USER_LEVEL_ADMIN', 3);
?>
|
Is it this line i add it to
| Code: |
('DSN_STRING', 'mysql://dbUser:dbPassword@dbHost/dbName'); |
And if it is i edit it with my info but it still wont work
Example
| Code: |
('DSN_STRING', 'mysql://database_username:passxxx@dbHost/database_name'); |
|
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 01, 2007 11:55 am |
|
Yes this is the correct format
| Code: |
('DSN_STRING', 'mysql://database_username:passxxx@dbHost/database_name'); |
Does it give you any error messages?
Also, look in the modules/Digital_Shop/log folder as there may be some clues in there.
Feel free to pm or email those log files and I'll help get you up and running. |
| |
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Tue May 01, 2007 1:06 pm |
|
Here is the error i get
| Code: |
[05-01-07 01:05:43 pm] [mdb2_error: message="MDB2 Error: connect failed" code=-24 mode=callback callback=handle_pear_error prefix="" info="connect: [Error message: unable to establish a connection] [Native code: 0] "]
Error connecting to database. Make sure you edited the constants.php |
[/quote] |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 01, 2007 1:18 pm |
|
That error message makes me think that either the host or db name is wrong, but it is most likely the host that is wrong. Double check that and let me know. |
| |
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Tue May 01, 2007 1:33 pm |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 01, 2007 5:56 pm |
|
So did the PM I sent you fix the problem? |
| |
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Tue May 01, 2007 7:33 pm |
|
Seems to of got ride of the issue i think its fixed just got to get passed these issues now.
| Code: |
[05-01-07 07:30:43 pm][256](Line:1095) Smarty error: unable to write to $compile_dir '/home/xxx/public_html/modules/Digital_Shop/templates_c'. Be sure $compile_dir is writable by the web server user. [/home/xxx/public_html/includes/smarty/libs/Smarty.class.php]
[05-01-07 07:30:43 pm][256](Line:1095) Smarty error: unable to write to $compile_dir '/home/xxx/public_html/modules/Digital_Shop/templates_c'. Be sure $compile_dir is writable by the web server user. [/home/xxx/public_html/includes/smarty/libs/Smarty.class.php]
[05-01-07 07:30:43 pm][256](Line:1095) Smarty error: unable to write to $compile_dir '/home/xxx/public_html/modules/Digital_Shop/templates_c'. Be sure $compile_dir is writable by the web server user. [/home/xxx/public_html/includes/smarty/libs/Smarty.class.php] [quote][/quote] |
I have cmodded what it tells me in the read me to 755 but the files was already set to 755 , should i try to update the cmodd of the files in the read me to 777 ? |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 01, 2007 7:42 pm |
|
Yes, you will probably need to set it to 777. |
| |
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Tue May 01, 2007 8:22 pm |
|
Ok that did the trick
Anther issue when i click on anther think in the admin Digital Shop to edit it ect all i get is" Get Out " |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Wed May 02, 2007 11:05 am |
|
I'll have to install platinum to see why that is happening....
Wow, the platinum package is over 70mb... that is just crazy  |
| |
|
|
 |
SKULL

Joined: Apr 30, 2007
Posts: 17
|
Posted:
Wed May 02, 2007 11:28 am |
|
Just take our the arcade games in modules/forums/games it will take the size of platium down to about 8mb |
| |
|
|
 |
|
|