zioth / dokuwiki_fastwiki

DokuWiki plugin which speeds up user interactions by avoiding page loads, rendering content client-side and pre-loading content.
GNU General Public License v2.0
9 stars 2 forks source link

Sidebar Links Disabled on main index #2

Open issmirnov opened 9 years ago

issmirnov commented 9 years ago

I installed the plugin and left the default settings as is. Using Markdowku and a few other plugins, none that should be conflicting with this.

The bug:

I checked the error.log in nginx, seeing this message:

2015/07/31 15:08:53 [error] 11387#0: *253092 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function curl_init() in /var/www/smirnovwiki/lib/plugins/fastwiki/action.php on line 227" while reading response header from upstream, client: 209.133.4.198, server: smirnov.wiki, request: "POST /doku.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "smirnov.wiki", referrer: "http://smirnov.wiki/start"

Any thoughts on how to fix this? Tried disabling fastpages and fastshow, but that breaks inline editing and previews.

This is a really cool plugin and very useful, so I hope we can figure this out. Thanks for making it!

zioth commented 9 years ago

Strange. curl should only be required for the "preload" setting. I'll look into it (might be a few days before I have time). I also might be able to remove the dependency on curl.

zioth commented 9 years ago

I've added code to disable the preload feature if curl isn't installed. Could you give it a try and tell me whether it worked?

issmirnov commented 9 years ago

I checked my server, I have curl installed. Applied the update, restarted nginx. Still same issue. Uninstalled the plugin and installed again. Same symptoms.

Is there perhaps a way to blacklist the plugin from the /start page?

zioth commented 9 years ago

curl_init could be disabled in php even if curl is installed on your server. It looks like you have "preload" turned on. To get your site working for now, you can turn that setting off.

Are you still getting the same thing about curl_init in your error log? If so, I have another idea of what might help.

zioth commented 9 years ago

I've just committed a fix which should (hopefully) make your start page links work again. The preload feature will be disabled automatically if you don't have php curl. I haven't figured out how to get preload working in your setup yet, but it's on my list.

issmirnov commented 9 years ago

Updated. Seems that now /goals and /wiki/stats work from the sidebar on /start, and all links under Favorites.

Tried disabling my installed markdown plugin, no changes.

Odd!

zioth commented 9 years ago

Could you turn off js/css compression in the advanced settings of your admin interface? Then I can debug it and see whether I can learn more.

PeterBurner commented 8 years ago

had a similar problem with my 'topbar' links weren't clickable made a little workaround in script.js, line 116

if (href.match(m_browserHistory.getSelfRefRegex()) && href.match(m_browserHistory.getSelfRefRegex())[0] != '/start') {

I have url-rewriting enabled