Friday, March 30, 2012

Joomla 1.0 Content MissingSwhistleSoft Blog

Joomla 1.0 Content MissingSwhistleSoft Blog


Was having an issue viewing some content on a Joomla 1.0 site. Noticed that the server code was php5.3. There are some issues with some versions of Joomla with php5.3. For the 1.5 branch, the latest versions work but the earlier ones do not as late as 1.5.14.
At any rate, without errors showing up it is often hard to find the solution without hacking core code. One such solution is to downgrade php which may be simple in a cgi environment.
Another possible solution was found at this blog posting.
The basic idea is to change the core Joomla 1.0 file includes/Cache/Lite/Function.php. By modifying the line that looks like:
$arguments = func_get_args();
with
$arguments = func_get_args();
$numargs = func_num_args();
for($i=1; $i < $numargs; $i++){
$arguments[$i] = &$arguments[$i];
}
The content becomes visible. There are other issues that could arise due to improper database content Finish Publishing Dates, and clearing the browser cache as well as site cache.
Update:
For those of you interested in converting Templates, Modules, Components, or Plugins from 1.0 to 1.5 – please check out this page


More than 3 requests, I'll translate this to Chinese.
超过3个请求,我就会把这篇文章翻译成中文。

Thursday, March 29, 2012

Remove AcmeDemoBundle from Symfony2

Remove AcmeDemoBundle from Symfony2 » IDEwerks Development Blog



           Delete src/Acme folder
 
  >       Delete following line from // app/AppKernel.php
$bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
 
  >       Delete following from app/config/routing_dev.php
# app/config/routing_dev.yml
_welcome:
    pattern: /
    defaults: { _controller: AcmeDemoBundle:Welcome:index }
 
_demo_secured:
    resource: "@AcmeDemoBundle/Controller/SecuredController.php"
    type: annotation
 
_demo:
    resource: "@AcmeDemoBundle/Controller/DemoController.php"
    type: annotation
    prefix: /demo
 
  >      Clear your cache:
php app/console cache:clear


More than 3 requests, I'll translate this to Chinese.
超过3个请求,我就会把这篇文章翻译成中文。