09 Sep 2010 
Support Center » Knowledgebase » Errors and Warnings - solutions
 Errors and Warnings - solutions
Solution
1. License problems - When accessing the admin page (www.yourdomain.com/installdirectory/admin), the following warnings are displayed

Warning: main(licence.php) [function.main]: failed to open stream: No such file or directory in /home/onrent/public_html/slave/admin/index.php on line 0

Warning: main(licence.php) [function.main]: failed to open stream: No such file or directory in /home/onrent/public_html/slave/admin/index.php on line 0

Fatal error: main() [function.require]: Failed opening required 'licence.php' (include_path='/home/onrent/public_html/slave/') in /home/onrent/public_html/slave/admin/index.php on line 0


Solution: Upload the license.php file only in the /admin folder. The trial license can be requested at http://support.online-rent.com/index.php


2. Key problems - When accessing the script, an "Invalid license" message is displayed:

Please contact the software vendor for license status.
Scenarios for Invalid License:
1) Possible Typo of license number provided
2) Trying to use the script without a valid license
If you feel that this error is invalid, please contact the software vendor immediately to resolve the issue.


Solution: Edit the file config.php (located in /includes) and add the key. Save the file and reupload it to the server;

$license=" ... ";


3. License availability - When accessing the admin/owner login page (www.yourdomain.com/installdirectory/admin), a license warning is displayed

The encoded file /...path.../admin/licence.php has expired.

Solution: This warning is displayed when the trial period has expired. If you want to extend the trial period please contact us at http://support.online-rent.com/index.php


4. License problems - In the admin area, no function can be used and the warning below is displayed:

You are not allowed to use this script!


Solution: The error could be caused by:

a) the license.php file is used on another domain thant the domain mentioned when ordering the license

b) the key is used for more than one installation


5. Memory limit problem - In the admin area, on the "Manage reservations" page, the following error is displayed:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 51780 bytes) in /...path.../admin/admin.php on line 0


Solution: Edit the file config.php (located in /includes) and add the line:

ini_set("memory_limit","32M");

Save the file and upload it back to the server.


6. DB problems - On the frontend / admin login page are displayed the following warnings:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: YES) in /.../admin/index.php on line 0

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /...../admin/index.php on line 0

Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /..../includes/db.php on line 0

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /..../includes/db.php on line 0

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /..../includes/db.php on line 0

Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /..../includes/db.php on line 0

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /..../includes/db.php on line 0


Solution: The warning are caused by the DataBase connection and can be fixed as it follows:

a) edit the file config.php (located in /includes) and check the DB info (hostname, DB name, DB user and password

b) login to the DB management area (phpMyAdmin) and check the DB user rights

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/onrent/public_html/slave/admin/index.php on line 0


7. Ioncube loaders problems - On the frontend / admin area pages is displayed the follwoing warning:

Site error: the file /......../index.php requires the ionCube PHP Loader ioncube_loader_lin_5.1.so to be installed by the site administrator.

Solution: The problem is related to the Ioncube loaders and it can be fixed as it follows:

a) create / add the php.ini file and add the following line

zend_extension=/path to the script/ioncube/ioncube_loader_lin_5.1.so

Please note that the ioncube file might be different (ioncube_loader_lin_5.2.so or ioncube_loader_lin_4.4.so )


b) ask your hosting provider to update the loaders


Article Details
Article ID: 101
Created On: 16 Sep 2008 02:19 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software By Kayako SupportSuite v3.10.02