Home arrow Forum

Remository Forum

 


<< Start < Previous 1 2 Next > End >>
admin

Karma: 101  
Re:download in front-end leads to blank page - 2010/02/19 04:55 Do you have any information about what happened a few days ago? Did something change on the web server? Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:download in front-end leads to blank page - 2010/02/19 10:51 This looks to be a fault in PHP 5.2.12 so far as I can see. The following details the problem as seen at one particular site:

As installed on your site, PHP is failing on the get_defined_constants function when the optional boolean parameter is set to true. What should happen is that the function returns an array of arrays, with the top level splitting the types of symbol definition between user and system. This has worked with other PHP releases, but appears to fail, at least in your environment. It should be reported as a PHP bug, but I cannot do that because it may involve questions about your hosting environment. I have created the simple test file symtest.php as shown below. You can invoke it by going to http://www.*****.***/symtest.php where you will see that PHP fails (indicated by the apparent download of the PHP script). I have also fixed Remository by not using the categorize option, although this is much less efficient. But there seems no alternative while PHP behaves this way. I will also post this in the forum, with details of the fix I have applied.

Code:

  <?php define ('MY_SYMBOL''Something or other'); $test get_defined_constants(true); var_dump($test);



The workaround is to modify the file ~/components/com_remository/remository.html.php at around lines 463 to 466 where you should find:

Code:

      protected function translateDefinitions ($string) {         $translators get_defined_constants(true);         return str_replace(array_keys($translators['user']), array_values($translators['user']), $string);     }



Change it to:

Code:

      protected function translateDefinitions ($string) {         $translators get_defined_constants();         return str_replace(array_keys($translators), array_values($translators), $string);     }

Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
taubenhaucher

Karma: 0  
Re:download in front-end leads to blank page - 2010/02/19 18:43 admin wrote:
...
The workaround is to modify the file ~/components/com_remository/remository.html.php at around lines 463 to 466 where you should find:
...


I thank you so much for this quick workaround, which solved the problem for me.

Thank you!

Werner
  | | Sorry, you do not currently have permission to write here.
camerata

Karma: 0  
Re:download in front-end leads to blank page - 2010/02/20 23:41 Thank-you for your assistance. It's working fine for me.
  | | Sorry, you do not currently have permission to write here.
Rufus

Karma: 0  
Re:download in front-end leads to blank page - 2010/02/25 14:10 @admin: Thank you for your help! The extension now works fine again.
  | | Sorry, you do not currently have permission to write here.
<< Start < Previous 1 2 Next > End >>

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 10 guest online