Okay, well I just did a test. I emptied the itemstat_cache table and loaded the page again. The first time it took (understandably) a very long time to load, finishing with the following stats:
Then I reloaded the page. It was quicker, but it still took a considerably longer amount of time with a lot of queries:
Would you consider this normal behaviour?
How are you generating those stats? I'd like to run some tests on my site as well.
Nevermind, this was a configuration error on my part. I'd disabled post caching to get the original ItemStats working (the one where you had to manually click on a link to fetch the item information), and had forgotten to re-enable it after switching to this plugin. Sorry for the confusion!
I just installed this and ran into problems while previewing/editing using advanced WYSIWYG editor, came back here to see if anyone had the same problem and noticed that this was supposed to be sorted in:
0.4.5
* Fixed issue with WYSIWYG editor loosing item links when editing a post
So I uploaded the files, uploaded the product xml and fired it up.
What I ended up with when I tried to drop an [item]something[/item] in a new thread is this:
Code:
Fatal error: Class 'wowhead' not found in /home/jabouty/public_html/forums/includes/functions_wysiwyg.php(115) : eval()'d code on line 28
Any thoughts?
I ran through the code and found a wowhead_item class, but not a wowhead class. So i changed the call for the new wowhead class in the Wowhead WYSIWYG parser plugin to wowhead_item and got the following:
Code:
Fatal error: Call to undefined method wowhead_item::wowhead_http_get() in /home/jabouty/public_html/forums/includes/functions_wysiwyg.php(115) : eval()'d code on line 30
so obviously that doesn't work...Stuck now...but I'm probably just blind as to the fix.
edit: Interesting. If I copy paste from a previously linked code, ie copy paste a link off this: http://www.wowhead.com/?items=2.10#0-2-3+1 which alot of my users will do, and I get the crash error when using wysiwyg. Kill the wysiwyg formatting by removing the link and the coloring and it works. So copy pasting off a linked name causes issues. Thoughts from here?
edit2: perhaps cleaning anything within container of all links and formatting prior to parsing it will help...just a thought...
I hate to say this, because it's awefully.... a jackass of me, but PHP 5 was released more than 4 years ago. If your host hasnt updated or wont update you to php5 , it's time to get a new host.
What I ended up with when I tried to drop an [item]something[/item] in a new thread is this:
Code:
Fatal error: Class 'wowhead' not found in /home/jabouty/public_html/forums/includes/functions_wysiwyg.php(115) : eval()'d code on line 28
Any thoughts?
you were right, change the line $o = new wowhead(); in the wysiwyg plugin to wowhead_item();
go down to the next line, change
$xmlfile = $o->wowhead_http_get($url, 8192);
to
$xmlfile = $o->getHTTP($url);
Also, to give a little background information. When I wrote the last update, i pretty much re-coded every line because I found a product release tool on the german vbb site. without going into to much detail, the test site that i dev on runs the exact same code that the XML product file contains.
However, why it works on my test server, I don't know, because it shouldnt. The wowhead class shouldnt exist on my test server.