Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All diagrams have disapeared after Rincewind upgrade #4

Open
csjean opened this issue Jul 13, 2011 · 2 comments
Open

All diagrams have disapeared after Rincewind upgrade #4

csjean opened this issue Jul 13, 2011 · 2 comments

Comments

@csjean
Copy link

csjean commented Jul 13, 2011

After having done a dokuwiki upgrade (from Anteater to Rincewind) all dokuwiki pictures have disappeared.

I have re-installed the plugin without success. No error message appears and everything seems normal except for the missing picture.

Can you help?

@csjean
Copy link
Author

csjean commented Nov 3, 2011

I believe my problem was a cache problem. I have a "workaround" wich may be the solution...

I changed the syntax.php file by adding a clearcach command.

    /**
     * Return path to the rendered image on our local system
     */
    function _imgfile($data){
        if($conf['debug']){
            dbglog($cache, 'image file cache');
        }
        $cache  = $this->_cachename($data,'png');
                // create the file if needed
        /*******************************************************
        ****  CSJ added line ****/
        clearstatcache();
        /*******************************************************/


        if(!file_exists($cache)){
            $in = $this->_cachename($data,'txt');
            if($this->getConf('path')){
                $ok = $this->_run($data,$in,$cache);
            }else{
                $ok = $this->_remote($data,$in,$cache);
            }
            if(!$ok) return false;
            clearstatcache();
        }

        // resized version
        if($data['width']){
            $cache = media_resize_image($cache,'png',$data['width'],$data['height']);
        }

        // something went wrong, we're missing the file
        if(!file_exists($cache)) return false;
        //print $cache;
        return $cache;
    }

@poulpoulsen
Copy link

Hello,
unfortunately your patch did not work for me.
I use dokuwiki "hrun" with latest graphviz plugin. local.php shows the right path to dot.
If i run your example, the diagram flashed up for a very short moment and then dissappearde.
No errors, no messages.

Any clues?

Regards
Poul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants