Issues

ZF-8939: Zend Demo ProgressBar

Issue Type: Bug Created: 2010-01-26T10:02:56.000+0000 Last Updated: 2012-04-12T12:45:50.000+0000 Status: Open Fix version(s): Reporter: Andre Ferreira (deveras) Assignee: Ben Scholzen (dasprid) Tags: - Zend_ProgressBar

Related issues: Attachments:

Description

Zend_form in the demo has the following JS function

function getProgress() { makeRequest('ZendForm.php?progress_key=' + document.getElementById('progress_key').value); }

progress_key element id doesn't exist in the document. I assume this is the reason that the progress bar doesn't show any progress.

Comments

Posted by Thomas Weidner (thomas) on 2010-01-26T10:22:07.000+0000

Assigned correct component

Posted by Sascha Clucas (charogarcia) on 2012-04-12T12:45:50.000+0000

The hidden progress_key form element is only inserted if APC is available:

<pre class="highlight">

if (Zend_File_Transfer_Adapter_Http::isApcAvailable()) {
   $markup[] = $view->formHidden(ini_get('apc.rfc1867_name'), uniqid(), array('id' => 'progress_key'));
} else if (Zend_File_Transfer_Adapter_Http::isUploadProgressAvailable()) {
   $markup[] = $view->formHidden('UPLOAD_IDENTIFIER', uniqid(), array('id' => 'progress_key'));
}

Zend_File_Transfer_Adapter_Http::isApcAvailable() checkes for

<pre class="highlight">
 public static function isApcAvailable()
    {
        return (bool) ini_get('apc.enabled') && (bool) ini_get('apc.rfc1867') && is_callable(self::$_callbackApc);
    }

So you need to have APC enabled and need to have at least the following in your php.ini: [APC] apc.rfc1867 = on apc.enabled=1

Maybe this could be stated more clearly in the documetnation of Zend_ProgressBar

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts