Advertisement:

Author Topic: Getting Error when clicking any Category Link  (Read 50559 times)

ashutoshv75

  • Newbie
  • *
  • Posts: 9
Getting Error when clicking any Category Link
« on: April 21, 2016, 06:19:50 pm »
Hi,

I've installed OsClass and after submitting any ad, getting error msg as below. The msg received when I click on any category or item.

Warning: mcrypt_create_iv() [function.mcrypt-create-iv]: Cannot open source device in D:\INETPUB\VHOSTS\overallservices.in\httpdocs\oc-includes\osclass\helpers\hSecurity.php on line 346

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (D:/INETPUB/VHOSTS/overallservices.in\;C:\Windows\Temp\) in D:\INETPUB\VHOSTS\overallservices.in\httpdocs\oc-includes\osclass\helpers\hSecurity.php on line 357


Please help me....

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Getting Error when clicking any Category Link
« Reply #1 on: April 21, 2016, 06:34:29 pm »
Hi

You need to disable open_basedir on your php.ini

Code: [Select]
;open_basedir =
Regards

ashutoshv75

  • Newbie
  • *
  • Posts: 9
Re: Getting Error when clicking any Category Link
« Reply #2 on: April 22, 2016, 03:06:25 pm »
Thanks for guiding me.

current settings is as below;

open_basedir = {WEBSPACEROOT}\;{TMP}\

ashutoshv75

  • Newbie
  • *
  • Posts: 9
Re: Getting Error when clicking any Category Link
« Reply #3 on: April 22, 2016, 03:08:29 pm »
Hi

You need to disable open_basedir on your php.ini

Code: [Select]
;open_basedir =
Regards


Thanks for guiding me.

current settings is as below;

open_basedir = {WEBSPACEROOT}\;{TMP}\

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Getting Error when clicking any Category Link
« Reply #4 on: April 22, 2016, 03:32:38 pm »
Comment that:

Quote
;open_basedir = {WEBSPACEROOT}\;{TMP}\

Then restart your server or PHP (Apache needs the former, other servers software might have PHP independent).

Regards

ashutoshv75

  • Newbie
  • *
  • Posts: 9
Re: Getting Error when clicking any Category Link
« Reply #5 on: April 23, 2016, 02:04:49 pm »
Hi,

I've installed OsClass and after submitting any ad, getting error msg as below. The msg received when I click on any category or item.

Warning: mcrypt_create_iv() [function.mcrypt-create-iv]: Cannot open source device in D:\INETPUB\VHOSTS\overallservices.in\httpdocs\oc-includes\osclass\helpers\hSecurity.php on line 346

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (D:/INETPUB/VHOSTS/overallservices.in\;C:\Windows\Temp\) in D:\INETPUB\VHOSTS\overallservices.in\httpdocs\oc-includes\osclass\helpers\hSecurity.php on line 357


Please help me....

Got the solution.....

I've changed is-readable to @is-readable and MCRYPT_DEV_URANDOM to MCRYPT_RAND in hSecurity.php file.

The Error occurs because of Windows Hosting.

Thnaks TESEO for Helping me out.


Regards
Ashutosh

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Getting Error when clicking any Category Link
« Reply #6 on: April 24, 2016, 01:06:38 pm »
You're welcome. :)

Regards