Help - Search - Members - Calendar
Full Version: ini_set is still required in RVSiteBuilder?
RV Products Forums > RVSiteBuilder > General Support
Sergio
Hi Pairote,
I remember that ini_set was not used anymore in RVSiteBuilder, am I right?

I am asking you this because today I was installing a blog and it is showing me a lot of errors like this:
QUOTE
Warning: ini_set() has been disabled for security reasons in /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php on line 560

Warning: ini_set() has been disabled for security reasons in /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php on line 560

Warning: Error parsing /usr/local/lib/php/RVSeagullMod/etc/allComponentLangConfig.ini on line 35 in /usr/local/lib/php/RVSeagullMod/lib/SGL/RVSGLWrapper.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php:560) in /home/punt/public_html/blogweb/include/functions_config.inc.php on line 627

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php:560) in /home/punt/public_html/blogweb/include/functions_config.inc.php on line 627

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php:560) in /home/punt/public_html/blogweb/include/functions_config.inc.php on line 627

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php:560) in /home/punt/public_html/blogweb/serendipity_admin.php on line 16

Is there a way to install a blog without using ini_set?

Regards,
Sergio
pairote
Do you run the latest?
Sergio
QUOTE(pairote @ Dec 23 2008, 12:31 AM) *
Do you run the latest?

Yes, I am using PRO 3.28.

I always update my RVSB to the latest.

I have managed to set a PHP.INI custom file for the account where the blog is created, but I really don't like to have ini_set ON.

Regards,
Sergio
pairote
We have validated our and the ini_set is suppressed .

CODE
            // otherwise setup standard PHP error handling
            if (!empty($conf['debug']['production'])) {
                @ini_set('display_errors', false);
            }
            if (!empty($conf['log']['enabled'])) {
                @ini_set('log_errors', true);
            }


Please check your files /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php and /usr/lib/php/RVSeagullMod/lib/SGL/Task/Init.php. Does it show the same things?
Sergio
No Pairote, mine shows the following:
QUOTE
// otherwise setup standard PHP error handling
if (!empty($conf['debug']['production'])) {
ini_set('display_errors', false);
}
if (!empty($conf['log']['enabled'])) {
ini_set('log_errors', true);

The date on both files is 16-Sep-2008. It seems that they have not been replaced in any of the upgrades I have done since September.

Do you know why they have not been replaced even that I am using PRO 3.28?

Regards,
Sergio
pairote
Your installation seems to be broken or not completed. Please force update using the following instruction.

SSH to the server as root and run this command.

rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi

Pay attention on its output. Make sure there is no error. Then check the file /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php again.
Sergio
QUOTE(pairote @ Dec 24 2008, 09:22 AM) *
Your installation seems to be broken or not completed. Please force update using the following instruction.

SSH to the server as root and run this command.

rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi

Pay attention on its output. Make sure there is no error. Then check the file /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php again.

I have done everthing to the T, there was no errors, everything seems installed but the file /usr/local/lib/php/RVSeagullMod/lib/SGL/Task/Init.php is still the same, it has not changed. Even the date and time is the same 16-Sep-2008. I have checked the code and it stills the same with the ini_sets.

The update didn't change that files, even that this update shows:

QUOTE
Loading remote access key [ Completed ]
Updating RVSiteBuilder Database [ Completed ]
Clearing RVSiteBuilder Cache files [ Completed ]

RVSiteBuilder has been successfully updated to the latest version.
[ Completed ]
Run on: 24 Dec 2008 - 9:50:14

Run on: 24 Dec 2008 - 9:50:14
pairote
Can you please submit the ticket and post me the full result of perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi?
Sergio
QUOTE(pairote @ Dec 24 2008, 10:05 AM) *
Can you please submit the ticket and post me the full result of perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi?

How may I can get the full result, as the cache of PUTTY is not that extensive?

Regards,
Sergio
pairote

rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi > rvsitebuilderInstallationLog.txt


There will no information print on the screen, you need to wait until it finish. Then open file rvsitebuilderInstallationLog.txt. It is an output for the autoinstaller.cgi command.
Sergio
QUOTE(pairote @ Dec 24 2008, 09:09 PM) *
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi > rvsitebuilderInstallationLog.txt


There will no information print on the screen, you need to wait until it finish. Then open file rvsitebuilderInstallationLog.txt. It is an output for the autoinstaller.cgi command.

Hello Pairote,
as per your request, I have opened a ticket with the rvsitebuilderInstallationLog.txt file attached.

FYI,
I have upgrade to ver. 3.29 and the file Init.php still shows the date as Sept. 16 and the code is the same thing:
QUOTE
// otherwise setup standard PHP error handling
if (!empty($conf['debug']['production'])) {
ini_set('display_errors', false);
}
if (!empty($conf['log']['enabled'])) {
ini_set('log_errors', true);


It seems that my rvsitebuilder is not doing the full install.

Regards,

Sergio
amarin
Please run follow command again:

rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi
Sergio
QUOTE(amarin @ Dec 29 2008, 06:48 AM) *
Please run follow command again:

rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi

Thank you Amarin,
I did that but for some reason that didn't work if I didn't modify my server to use ini_set just for the installation.

So, after we found with Pairote what was the error, everything worked ok with the installation.

Regards,
Sergio
pairote
Amarin has modified the installer to run on the server which disable ini_set and a couple of php functions. We tested it on our server and it successfully installed.
Sergio
QUOTE(pairote @ Jan 2 2009, 08:48 PM) *
Amarin has modified the installer to run on the server which disable ini_set and a couple of php functions. We tested it on our server and it successfully installed.

That is good news, I will try with my other server.

Thanks Amarin.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.