Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19583

Cannot instantiate abstract class eZSIBlockHandler eZp 5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Invalid
    • Affects Version/s: 5.0.0-dev
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      Operating System: RHEL 6.2 EE
      PHP Version: 5.3.3
      Database and version: MySQL 5.1.61
      Browser (and version): Any

      Description

      When I try to access a article with ezsi block a fatal error is generated

      "Fatal error: Cannot instantiate abstract class eZSIBlockHandler in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsi/classes/ezsiblockfunction.php on line 439 503 Service UnavailableFatal error: The web server did not finish its request

      The execution of eZ Publish was abruptly ended, the debug output is present below."

      Steps to reproduce

      Setup - create the template
       
      1. Make an override of "/node/view/full.tpl" with the class "Article", add the following lines to the end
      <br/><br/>
      <b>SSI block below : </b><br>
      {si-block key="1" ttl="20s"}
      This is a si test: time : {currentdate()|l10n("time")} <br/>
      {/si-block}
      <br/><br/>
       
      Setup - Create the test article
       
      1. Click "Content structure"
      2. Click "Create new" button
      3. Choose "Article" from the drop down list
      4. Enter form data:
      Title : test article
      Intro : This is the intro
       
      5. Click "Send for publishing" button
      6. Logout
       
      Verify first execution of a template
       
      1. Access the frontpage
      2. Open test-article
      3. Verify the following error
       
      "Fatal error: Cannot instantiate abstract class eZSIBlockHandler in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsi/classes/ezsiblockfunction.php on line 439 503 Service UnavailableFatal error: The web server did not finish its request
      The execution of eZ Publish was abruptly ended, the debug output is present below."
      

        Issue Links

          Activity

          Hide
          Pedro Resende added a comment -

          Just re-tested this issue today and when I try to run the siblockupdate I got the following error

          php runcronjobs.php siblockupdate -q 2
          Running cronjob part 'siblockupdate'
          Running extension/ezsi/cronjobs/siblockupdate.php at: 29/08/2012 6:18 pm
          Finding expired blocks
          Calling http://ezp5.si.pedro.cleverti.qa.ezpublish.no/content/view/full/59 : CHECKING IF REMOVAL IS NEEDED
          PHP Fatal error: Class 'eZSIBlockFunction' not found in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsi/cronjobs/siblockupdate.php on line 148

          Fatal error: Class 'eZSIBlockFunction' not found in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsi/cronjobs/siblockupdate.php on line 148

          Fatal error: eZ Publish did not finish its request
          The execution of eZ Publish was abruptly ended, the debug output is present below.

          Show
          Pedro Resende added a comment - Just re-tested this issue today and when I try to run the siblockupdate I got the following error php runcronjobs.php siblockupdate -q 2 Running cronjob part 'siblockupdate' Running extension/ezsi/cronjobs/siblockupdate.php at: 29/08/2012 6:18 pm Finding expired blocks Calling http://ezp5.si.pedro.cleverti.qa.ezpublish.no/content/view/full/59 : CHECKING IF REMOVAL IS NEEDED PHP Fatal error: Class 'eZSIBlockFunction' not found in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsi/cronjobs/siblockupdate.php on line 148 Fatal error: Class 'eZSIBlockFunction' not found in /var/www/apache2php53/ezp/app/ezpublish_testsystem/.run/extension/ezsi/cronjobs/siblockupdate.php on line 148 Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.
          Hide
          Paulo Cardiga added a comment -

          Retested again today...

          Same error as Pedro got in previous comment.
          There is no class named "eZSIBlockFunction", but there is one named "eZSiBlockFunction"

          Has this been changed in the extension, or is there a change in behavior of autoloads. Maybe they were not case sensitive in ezp 4.x, but are in 5.0 ?

          Show
          Paulo Cardiga added a comment - Retested again today... Same error as Pedro got in previous comment. There is no class named "eZSIBlockFunction", but there is one named "eZSiBlockFunction" Has this been changed in the extension, or is there a change in behavior of autoloads. Maybe they were not case sensitive in ezp 4.x, but are in 5.0 ?
          Hide
          Pedro Resende added a comment -
          Show
          Pedro Resende added a comment - Possible fix https://github.com/ezsystems/ezsi/pull/2
          Hide
          Patrick Allaert (Inactive) added a comment -

          Invalid, this is only possible with:

          [SIBlockSettings]
          BlockHandler=
          

          Which is not valid configuration as per the documentation.

          Show
          Patrick Allaert (Inactive) added a comment - Invalid, this is only possible with: [SIBlockSettings] BlockHandler= Which is not valid configuration as per the documentation.

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 15 minutes
                2h 15m