Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 06-19-2012 16:08:26

btwebmedia
Member
Registered: 08-25-2010
Posts: 150

PHP 5.3 Compatibility

Hello:

What lines of code in the skin.php and skinfunc.php must be updated to make the skin compatible with PHP 5.3.  I did the suggested and my site is still blank. Thanks.

Here's my code for the skin.php:

<?php /* PHP FUNCTION: Skin startup */
      $skinfunc =& $this->include_skinfunc('CORE_SkinFunc');
      extract($skinfunc->startup()); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<meta name="generator" content="Kryptronic Software" />

<meta name="keywords" content="<?php print $metakeywords; ?>" />

<meta name="description" content="<?php print $metadesc; ?>" />



<?php /* PHP FUNCTION: Prints the robots tag */
$skinfunc->robotstag(); ?>

<base href="<?php print $disp_baseurl; ?>" />

<link rel="stylesheet" type="text/css" media="all" href="skins/SMHPDefaultSkinII/css/all.css" />

<link href="styles/style.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" src="rokslideshow/mootools-release-1.11.js"></script>
<script type="text/javascript" src="rokslideshow/rokslideshow.js"></script>

<?php /* PHP FUNCTION: Prints JavaScript Library code */
$skinfunc->xnamespace('core','jslib'); ?>


<title>Sweet Memories Heirloom Pastries /<?php print $metatitle; ?></title>

</head>

<body>

<div id="skin_wrapper_full"><div id="skin_wrapper">

<table id="skin_ct" style="margin-top:-25px">

<tr>

<td id="skin_ct_lcol_head">

<?php if (!(empty($link_home))) {?>

<a href="<?php print $link_home; ?>" title="Home">
<div id="logo">

<a href="<?php print $link_home; ?>" title="Home"><img src="skins/SMHPDefaultSkinII/media/logo2-copy.png" alt="Home" width="568" height="120" /></a>
<?php } else { ?>
<img src="skins/SMHPDefaultSkinII/media/logo2-copy.png" alt="Home" width="568" height="120"/>

</div>
<?php } ?>

</td>


<td id="skin_ct_rcol_head">
<?php

$eol       = $this->globals('core.eol');
$formid    = 'ecom--minisearch';
$strid     = 'ecom--prodsearch--string';
$link      = $this->link_namespace('ecom','prodsearch',array());
$cgi_value = '';

$widget_name = $this->xhtml_encode($this->globals('core_app.name_skinwidget_minisearch'));
if (empty($widget_name)) {$widget_name = '';}

print '<div class="skin_fenavh" id="ecom_skinwidgetminisearch_h">' . $widget_name . '</div>' . $eol;
print '<div class="skin_fenavmini" id="ecom_skinwidgetminisearch">' . $eol;

$this->xhtml_quickform_header($formid,'ecom','prodsearchp',array());

print '<p class="hidden"><label for="ecom--minisearch--' . $strid . '"';
print '>Search Term</label></p>' . $eol;

print '<p class="inline"><input class="quickfield" type="text" name="' . $strid;
print '" id="ecom--minisearch--' . $strid . '" value="';
print $cgi_value . '" size="22" maxlength="100" /></p>' . $eol;

$this->xhtml_quickform_footer($formid,'Search',0);

print '<a class="unfancy" href="' . $link . '" title="Advanced Search">Advanced Search</a>' . $eol;

print '</div>' . $eol;

?>
</span>

</td>
</tr>
</table>
<table id="skin_ct" style="margin-top:0px">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
<td colspan=2>
<div class="links">
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'companyinfo')); ?>">About Us</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'testimonials')); ?>">2nd Helpings</a>
<a href="http://sweetmemoriesheirloompastriesblogs.wordpress.com/">Blog</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'links')); ?>">Links</a>
<!-- // MAILCHIMP SUBSCRIBE CODE \ -->
<a href="http://eepurl.com/gYmHH" class="linkse">Receive our E-flash</a>
<!-- \ MAILCHIMP SUBSCRIBE LINK // -->
<!--<a href="<?php echo $this->link_namespace('cms','dynform',array('ref' => '$link_contact')); ?>" title=“Contact”>Contact Us</a>-->
</div>
</td>
</tr>

</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" m>
<tr>
<div id="skin_menu_head">
<ul>
<?php
if (!(empty($link_home)))     {print '<li><a href="' . $link_home . '" title="Home">Home</a></li>';}
if (!(empty($link_cart)))     {print '<li><a href="' . $link_cart . '" title="Shopping Cart">Shopping Cart</a></li>';}
if (!(empty($link_checkout))) {print '<li><a href="' . $link_checkout . '" title="Checkout">Checkout</a></li>';}
if (!(empty($link_account)))  {print '<li><a href="' . $link_account . '" title="Your Account">Your Account</a></li>';}
if (!(empty($link_contact)))  {print '<li><a href="' . $link_contact . '" title="Contact">Contact</a></li>';}
?>
</ul>

</div>

</td>
</tr>
<tr>

<script type='text/javascript' src='quickmenu.js'></script>

</tr>

<tr><td id="skin_ct_lcol">

</td>

<td id="skin_ct_mcol">

<?php /* PHP FUNCTION: Prints the page title.   */
$skinfunc->titletag($disp_title); ?>

<!--<p class="comingsoon">We are currently experiencing a technical issue and are working on solving the problem. While our site is safe to browse, please call to place an order.<br />We appreciate your understanding and hope to have the problem fixed soon!</p>-->

<?php /* PHP FUNCTION: Print the content for the page.   */
$skinfunc->content(); ?>




    </div>
</td>
</tr>
</table>



<div id="skin_footer">
<p><script type="text/javascript" src="https://sealserver.trustwave.com/seal.js?style=invert&size=65x36&code=831778a40ca511e0b34b005056b201e5"></script> <!-- (c) 2005, 2010. Authorize.Net is a registered trademark of CyberSource Corporation -->  <span class= "creditimages"><script type="text/javascript" language="javascript">var ANS_customer_id="81837524-aee5-4d34-ab02-1d9dad0dac38";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank"></a>
<img alt="Merchant Account" title="Merchant Account" src="http://www.merchantservicestotal.com/new_logo.gif"/>
</span>
<br />
<span class= "bottomlinks">
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'storepolicies')); ?>">Our Policies</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'termsofuse')); ?>">Terms of Use</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'privacy')); ?>">Privacy Information</a>
</span>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="skins/SMHPDefaultSkinII/media/plate-w-fork.png" alt="Home" width="55" height="55"/><br /> <p/>
<h2 class="footerSaying">&nbsp; &quot;A Great Dessert Is a Little Bite of Heaven &quot;</h2>
<br />
<p class="copyright" id="apDiv4">&copy;Copyright 2010, All rights reserved<br />
Photos by K Baldwin </p>
<!-- <span class= "creditimages">

</span>-->
</div>


</div>

</div>
<?php /* PHP FUNCTION: Run the debug and closure function. */
$skinfunc->debug(); ?>
</body>

</html>

Offline

 

#2 06-19-2012 16:09:27

btwebmedia
Member
Registered: 08-25-2010
Posts: 150

Re: PHP 5.3 Compatibility

Here's my code for the skinfunc.php

<?php

// +------------------------------------------------------------------+
// | Class Definition                                                 |
// +------------------------------------------------------------------+

class CORE_SkinFunc extends CORE_Display {

// +--
// | This file holds functions used by the main skin file.  It's
// | purpose is to ensure the main skin file is as free of PHP
// | code as possible to make editing easier on end users.
// +--

// +------------------------------------------------------------------+
// | Class Variables                                                  |
// +------------------------------------------------------------------+

var $class   = 'CORE_SkinFunc';
var $version = '7.0.0';
var $cerror;

// +------------------------------------------------------------------+
// | Constructor Function                                             |
// +------------------------------------------------------------------+

function CORE_SkinFunc () {

// +--
// | This is the constructor function.  This function starts up the
// | class.  Any pre-load variable assignments go here.
// +--

// +--
// | Return $this.
// +--

return;

} // End of function.

// +------------------------------------------------------------------+
// | Function: startup                                                |
// +------------------------------------------------------------------+

function startup () {

// +--
// | This function loads variables for use within the skin.
// +--

$x = array();

// +--
// | General variables.
// +--

$x['eol']            = $this->globals('core.eol');
$x['disp_baseurl']   = $this->globals('core_display.base_url');
$x['disp_year']      = $this->xhtml_encode($this->globals('core_datetime.year'));
$x['disp_date']      = $this->xhtml_encode($this->globals('core_datetime.full'));
$x['site_name']      = $this->globals('core_settings.core.site_name');

// +--
// | HREFs: These are account independent:
// +--

$x['link_contact']  = $this->link('core','contact',array());
$x['link_home']     = $this->link('cms','display',array('ref' => 'splash'));
$x['link_cart']     = $this->link('ecom','viewcart',array());
$x['link_checkout'] = $this->link('ecom','checkoutfn',array());

// +--
// | HREFs: This one is account dependent:
// +--

if ($this->globals('core_user.id')) {

     $x['link_account'] = $this->link('core','accountover',array());

} else {

     $x['link_account'] = $this->link('core','login',array());

} // End of if statement.

// +--
// | Meta tag and title variables.
// +--

$x['metatitle']    = $this->globals('core_display.metatitle');
$x['metakeywords'] = $this->globals('core_display.metakeywords');
$x['metadesc']     = $this->globals('core_display.metadesc');
$x['disp_title']   = $this->xhtml_encode($this->globals('core.namespace.name'));
$x['disp_title']   = preg_replace('/ \- Process$/','',$x['disp_title']);

// +--
// | Strip XHTML tags from the meta information.
// +--

$x['metatitle']    = $this->xhtml_encode(strip_tags($x['metatitle']));
$x['metakeywords'] = $this->xhtml_encode(strip_tags($x['metakeywords']));
$x['metadesc']     = $this->xhtml_encode(strip_tags($x['metadesc']));

if ($this->globals('core.ref_disp')) {

     $x['disp_title'] = $this->xhtml_encode($this->globals('core.ref_disp'));

} // End of if statement.

// +--
// | Return our variable array.
// +--

return $x;

} // End of function.

// +------------------------------------------------------------------+
// | Function: namespace                                              |
// +------------------------------------------------------------------+

function xnamespace ($app = '', $namespace = '', $params = '') {

// +--
// | This function loads a requested namespace.
// +--

if ($app == 'core') {$app = $this->globals('core.app');}

if (empty($app)) {return false;}

$this->include_namespace($app,$namespace,$params,0);

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: link                                                   |
// +------------------------------------------------------------------+

function link ($app = '', $namespace = '', $params = '') {

// +--
// | This function returns a link to a namespace.
// +--

if ($app == 'core') {$app = $this->globals('core.app');}

if (empty($app)) {return false;}

// +--
// | Make sure the link is valid, otherwise, return false.
// +--

$valid = $this->link_isvalid($app,$namespace);

if (empty($valid)) {return false;}

// +--
// | Return the link if it's valid.
// +--

return $this->link_namespace($app,$namespace,$params);

} // End of function.

// +------------------------------------------------------------------+
// | Function: debug                                                  |
// +------------------------------------------------------------------+

function debug () {

// +--
// | This function prints closure and debug info.  It handle including
// | the debug and closure divs.
// +--

if ($this->debug == 2) {$this->include_file('core','debug.php');}

$this->include_file('core','closure.php');

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: titletag                                               |
// +------------------------------------------------------------------+

function titletag ($title = '') {

// +--
// | This function prints the title tag.
// +--

$eol            = $this->globals('core.eol');
$suppress_title = $this->globals('core_display.suppress_title');
$ns             = $this->globals('core.namespace');
$ref            = $this->globals('core.ref');

if ((empty($suppress_title)) && (!(empty($title)))) {

     print '     <h1 id="skin_pgtitle">' . $title . '</h1>' . $eol;

} // End of if statement.

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: content                                                |
// +------------------------------------------------------------------+

function content () {

// +--
// | This function prints the content placeholder.
// +--

print '<core:content />';

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: printaddphone                                          |
// +------------------------------------------------------------------+

function printaddphone () {

// +--
// | This function prints the owner's address and
// | phone/fax numbers.
// +--

$eol        = $this->globals('core.eol');

$phone      = $this->xhtml_encode($this->globals('core_settings.core.siteownerphone'));
$fax        = $this->xhtml_encode($this->globals('core_settings.core.siteownerfax'));

$address    = array('addone'     => $this->globals('core_settings.core.siteowneradd'),
                    'addtwo'     => '',
                    'city'       => $this->globals('core_settings.core.siteownercity'),
                    'stateprov'  => $this->globals('core_settings.core.siteownerstateprov'),
                    'country'    => $this->globals('core_settings.core.siteownercountry'),
                    'postalcode' => $this->globals('core_settings.core.siteownerzip'));

$address    = $this->include_namespace('core','getaddress',array('address' => $address, 'format' => 'TEXTNOBR'));

if ((!($this->IsError($address))) && (!(empty($address)))) {

     $address    = $this->xhtml_encode($address);

     print '<p>' . $address . '</p>' . $eol . $eol;
     print '<p>Telephone: ' . $phone . '&nbsp;&nbsp;&nbsp;&nbsp;';
     print 'Fax: ' . $fax . '</p>' . $eol . $eol;

} // End of if statement.

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: robotstag                                              |
// +------------------------------------------------------------------+

function robotstag () {

// +--
// | This function prints the robots tag.  Follow/Index tags are
// | printed only when pages were not requested with SID in the URL.
// +--

$eol      = $this->globals('core.eol');
$cgi_sid  = $this->globals('core_cgi.sid');

if (!(empty($cgi_sid))) {

     print '<meta name="robots" content="noindex,follow" />' . $eol;

} else {

     print '<meta name="robots" content="index,follow" />' . $eol;

} // End of if statement.

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | End of Class                                                     |
// +------------------------------------------------------------------+

} // End of class.

// +------------------------------------------------------------------+
// | End Of File                                                      |
// +------------------------------------------------------------------+

?>

Offline

 

#3 06-20-2012 08:55:10

jj1987
Member
From: Orlando, FL
Registered: 07-14-2008
Posts: 502
Website

Re: PHP 5.3 Compatibility

What errors are you currently getting?



-James Garrett

Offline

 

#4 06-20-2012 09:46:36

west4
Member
From: UK
Registered: 04-16-2008
Posts: 646
Website

Re: PHP 5.3 Compatibility

Hi,

also if you enclose your code in square brackets and the expression 'code' close square brackets then end with the same but forward slash 'code' like this without the spaces [ c o d e ] and [ / c o d e ] it makes it easy to copy paste and examine...
e.g.

Code:

<?php /* PHP FUNCTION: Skin startup */
      $skinfunc =& $this->include_skinfunc('CORE_SkinFunc');
      extract($skinfunc->startup()); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<meta name="generator" content="Kryptronic Software" />

<meta name="keywords" content="<?php print $metakeywords; ?>" />

<meta name="description" content="<?php print $metadesc; ?>" />



<?php /* PHP FUNCTION: Prints the robots tag */
$skinfunc->robotstag(); ?>

<base href="<?php print $disp_baseurl; ?>" />

<link rel="stylesheet" type="text/css" media="all" href="skins/SMHPDefaultSkinII/css/all.css" />

<link href="styles/style.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" src="rokslideshow/mootools-release-1.11.js"></script>
<script type="text/javascript" src="rokslideshow/rokslideshow.js"></script>

<?php /* PHP FUNCTION: Prints JavaScript Library code */
$skinfunc->xnamespace('core','jslib'); ?>


<title>Sweet Memories Heirloom Pastries /<?php print $metatitle; ?></title>

</head>

<body>

<div id="skin_wrapper_full"><div id="skin_wrapper">

<table id="skin_ct" style="margin-top:-25px">

<tr>

<td id="skin_ct_lcol_head">

<?php if (!(empty($link_home))) {?>

<a href="<?php print $link_home; ?>" title="Home">
<div id="logo">

<a href="<?php print $link_home; ?>" title="Home"><img src="skins/SMHPDefaultSkinII/media/logo2-copy.png" alt="Home" width="568" height="120" /></a>
<?php } else { ?>
<img src="skins/SMHPDefaultSkinII/media/logo2-copy.png" alt="Home" width="568" height="120"/>

</div>
<?php } ?>

</td>


<td id="skin_ct_rcol_head">
<?php

$eol       = $this->globals('core.eol');
$formid    = 'ecom--minisearch';
$strid     = 'ecom--prodsearch--string';
$link      = $this->link_namespace('ecom','prodsearch',array());
$cgi_value = '';

$widget_name = $this->xhtml_encode($this->globals('core_app.name_skinwidget_minisearch'));
if (empty($widget_name)) {$widget_name = '';}

print '<div class="skin_fenavh" id="ecom_skinwidgetminisearch_h">' . $widget_name . '</div>' . $eol;
print '<div class="skin_fenavmini" id="ecom_skinwidgetminisearch">' . $eol;

$this->xhtml_quickform_header($formid,'ecom','prodsearchp',array());

print '<p class="hidden"><label for="ecom--minisearch--' . $strid . '"';
print '>Search Term</label></p>' . $eol;

print '<p class="inline"><input class="quickfield" type="text" name="' . $strid;
print '" id="ecom--minisearch--' . $strid . '" value="';
print $cgi_value . '" size="22" maxlength="100" /></p>' . $eol;

$this->xhtml_quickform_footer($formid,'Search',0);

print '<a class="unfancy" href="' . $link . '" title="Advanced Search">Advanced Search</a>' . $eol;

print '</div>' . $eol;

?>
</span>

</td>
</tr>
</table>
<table id="skin_ct" style="margin-top:0px">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
<td colspan=2>
<div class="links">
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'companyinfo')); ?>">About Us</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'testimonials')); ?>">2nd Helpings</a>
<a href="http://sweetmemoriesheirloompastriesblogs.wordpress.com/">Blog</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'links')); ?>">Links</a>
<!-- // MAILCHIMP SUBSCRIBE CODE \ -->
<a href="http://eepurl.com/gYmHH" class="linkse">Receive our E-flash</a>
<!-- \ MAILCHIMP SUBSCRIBE LINK // -->
<!--<a href="<?php echo $this->link_namespace('cms','dynform',array('ref' => '$link_contact')); ?>" title=“Contact”>Contact Us</a>-->
</div>
</td>
</tr>

</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" m>
<tr>
<div id="skin_menu_head">
<ul>
<?php
if (!(empty($link_home)))     {print '<li><a href="' . $link_home . '" title="Home">Home</a></li>';}
if (!(empty($link_cart)))     {print '<li><a href="' . $link_cart . '" title="Shopping Cart">Shopping Cart</a></li>';}
if (!(empty($link_checkout))) {print '<li><a href="' . $link_checkout . '" title="Checkout">Checkout</a></li>';}
if (!(empty($link_account)))  {print '<li><a href="' . $link_account . '" title="Your Account">Your Account</a></li>';}
if (!(empty($link_contact)))  {print '<li><a href="' . $link_contact . '" title="Contact">Contact</a></li>';}
?>
</ul>

</div>

</td>
</tr>
<tr>

<script type='text/javascript' src='quickmenu.js'></script>

</tr>

<tr><td id="skin_ct_lcol">

</td>

<td id="skin_ct_mcol">

<?php /* PHP FUNCTION: Prints the page title.   */
$skinfunc->titletag($disp_title); ?>

<!--<p class="comingsoon">We are currently experiencing a technical issue and are working on solving the problem. While our site is safe to browse, please call to place an order.<br />We appreciate your understanding and hope to have the problem fixed soon!</p>-->

<?php /* PHP FUNCTION: Print the content for the page.   */
$skinfunc->content(); ?>




    </div>
</td>
</tr>
</table>



<div id="skin_footer">
<p><script type="text/javascript" src="https://sealserver.trustwave.com/seal.js?style=invert&size=65x36&code=831778a40ca511e0b34b005056b201e5"></script> <!-- (c) 2005, 2010. Authorize.Net is a registered trademark of CyberSource Corporation -->  <span class= "creditimages"><script type="text/javascript" language="javascript">var ANS_customer_id="81837524-aee5-4d34-ab02-1d9dad0dac38";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank"></a>
<img alt="Merchant Account" title="Merchant Account" src="http://www.merchantservicestotal.com/new_logo.gif"/>
</span>
<br />
<span class= "bottomlinks">
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'storepolicies')); ?>">Our Policies</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'termsofuse')); ?>">Terms of Use</a>
<a href="<?php echo $this->link_namespace('cms','display',array('ref' => 'privacy')); ?>">Privacy Information</a>
</span>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="skins/SMHPDefaultSkinII/media/plate-w-fork.png" alt="Home" width="55" height="55"/><br /> <p/>
<h2 class="footerSaying">&nbsp; &quot;A Great Dessert Is a Little Bite of Heaven &quot;</h2>
<br />
<p class="copyright" id="apDiv4">&copy;Copyright 2010, All rights reserved<br />
Photos by K Baldwin </p>
<!-- <span class= "creditimages">

</span>-->
</div>


</div>

</div>
<?php /* PHP FUNCTION: Run the debug and closure function. */
$skinfunc->debug(); ?>
</body>

</html>

then you can see the code and the text better...

Cheers, Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#5 06-20-2012 10:22:03

btwebmedia
Member
Registered: 08-25-2010
Posts: 150

Re: PHP 5.3 Compatibility

jj1987 wrote:

What errors are you currently getting?

Warning: ini_set() has been disabled for security reasons in /home/sweetmem/public_html/index.php on line 187
Script Execution Error

ini_set() has been disabled for security reasons
File: /core-private/core/CORE/CORE.php Line: 1939 Error Number: 2

Offline

 

#6 06-20-2012 10:30:13

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: PHP 5.3 Compatibility

Another clueless hosting provider sad 

ini_set is used for valid reasons in a few place in CORE.php. You could modify CORE.php to stop CCP from trying to use it but an update might overwrite that file and you'd be back in the same situation.

You would be much better off trying to "educate" your provider and ask them to allow ini_set to be used. There are many valid reasons for using it and blocking it really does little to enhance security.

Offline

 

#7 06-20-2012 13:57:42

btwebmedia
Member
Registered: 08-25-2010
Posts: 150

Re: PHP 5.3 Compatibility

Dave:

This host is requiring that my client move to a dedicated hosting package which is way to expensive. What modifications are needed in the CORE.php file to temporarily fix the problem until the client can move to another web host? Thanks.

Offline

 

#8 06-20-2012 18:37:58

jj1987
Member
From: Orlando, FL
Registered: 07-14-2008
Posts: 502
Website

Re: PHP 5.3 Compatibility

btwebmedia wrote:

Dave:

This host is requiring that my client move to a dedicated hosting package which is way to expensive. What modifications are needed in the CORE.php file to temporarily fix the problem until the client can move to another web host? Thanks.

I would say that moving to eleven2 hosting or something like that would be much faster and safer than attempting to edit core files...



-James Garrett

Offline

 

#9 06-20-2012 22:36:24

btwebmedia
Member
Registered: 08-25-2010
Posts: 150

Re: PHP 5.3 Compatibility

jj1987 wrote:

btwebmedia wrote:

Dave:

This host is requiring that my client move to a dedicated hosting package which is way to expensive. What modifications are needed in the CORE.php file to temporarily fix the problem until the client can move to another web host? Thanks.

I would say that moving to eleven2 hosting or something like that would be much faster and safer than attempting to edit core files...

I didn't go with eleven2 hosting, but I did changes hosts and so far I have progress.

Offline

 

Board footer