HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


ocportal compsr

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#108563 (In Topic #21155)
Avatar

Fan in action

info install

I try to test this beta version but havpe just same problem on install get an error on install.php


Critical error – bailing out

This is a relayed critical error, which means that this less-critical error has occurred during startup, and thus halted startup.

PHP [1] Call to undefined function has_caching_for()



Stack trace…

File -> C:\wamp\apps\test\sources\minikernel.php
 Line -> 202
 Function -> critical_error
 Args -> a:2:{i:0;s:5:"RELAY";i:1;s:52:"PHP [1] Call to undefined function has_caching_for()";}


File -> C:\wamp\apps\test\sources\minikernel.php
 Line -> 314
 Function -> fatal_exit
 Args -> a:1:{i:0;s:52:"PHP [1] Call to undefined function has_caching_for()";}


File -> C:\wamp\apps\test\sources\minikernel.php
 Line -> 264
 Function -> composr_error_handler
 Args -> a:4:{i:0;i:1;i:1;s:44:"Call to undefined function has_caching_for()";i:2;s:38:"C:\wamp\apps\test\sources\lang.php";i:3;i:453;}


Function -> catch_fatal_errors
 Args -> a:0:{}


 any ideo of problem?
Back to the top
 
Posted
Rating:
#108564
Avatar

Fan in action

try to install ver 9 and overwrite file with beta and run upgrader.php script but same error think same error on my php server
Back to the top
 
Posted
Rating:
#108565
Avatar

Community saint

I just reported this on the bug tracker (0001977: Installer critical error bail out after recent git commit relating to caching - ocPortal feature tracker) with a possible solution. If you copy the has_caching_for() function from sources\caches.php to the end of the install.php file, that should let you get through the installer. Just copy and paste this code to the end of the install.php file:

Code (php)


function has_caching_for($type)
{
    if (!function_exists('get_option')) {
        return false;
    }

    return
        ((get_option('is_on_' . $type . '_cache') == '1') || (get_param_integer('keep_cache', 0) == 1) || (get_param_integer('cache', 0) == 1) || (get_param_integer('cache_' . $type . 's', 0) == 1)) &&
        (strpos(get_param_string('special_page_type', ''), 't') === false) &&
        (get_param_integer('keep_cache', null) !== 0) &&
        (get_param_integer('cache_' . $type . 's', null) !== 0) &&
        (get_param_integer('cache', null) !== 0);
}
 
Back to the top
 
Posted
Rating:
#108566
Avatar

Fan in action

ok tomorrow try :D
Back to the top
 
Posted
Rating:
#108592
Avatar

Fan in action

I try now and install work now test this alpha think there's good
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: