Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-08-21 21:12:20
- facho
- Member
- Registered: 2007-04-15
- Posts: 64
Need Help with TCM_Rating plug-in
[I did post this on the plug-in thread, but it does not appear to be getting much visibility, so I am trying here hoping to find a plug-in hero. ]
Hello everyone! I’m in a bind and hoping that I can get some help from the community. I know that knowledge share is what helps propogate tools like TXP and generally speaking I’ve had good sucess getting feedback from people. Having said that, I have a problem. I desperately need to install a rating system for an internal tool I am working on. I started off trying to get the CSS rating tool working but ran into problems. I switched to TCM_rating, got more of it working, but ultimately also ran into problems. I’ve installed it per the instructions. I tagged with <txp:tcm_ratinginput range=“5” />
So, the rating shows up on the page as I would expect. However, when you actually rate an article it errors out.
I am getting the following error upon submititng a rating:
Fatal error: Call to undefined function getmicrotime() in C:\wamp\www\textpattern\lib\txplib_db.php on line 77
Any idea what this is and how to resolve? I’m a total newbie so any help is appreciated.
Here is the Debug output (Note: I used fake data for my email alias and company domain info):
tag_error <txp:tcm_ratinginput range=“5” /> -> Notice: Undefined variable: delay on line 13
C:\wamp\www\textpattern\publish.php:963 tcm_ratinginput()
processTags()
C:\wamp\www\textpattern\publish.php:922 preg_replace_callback()
C:\wamp\www\textpattern\publish.php:456 parse()
C:\wamp\www\index.php:39 textpattern()
tag_error <txp:tcm_ratinginput range=“5” /> -> Textpattern Warning: Table ‘megatron.txp_tcm_ratings’ doesn’t exist
select posted from txp_tcm_ratings where ip = ‘myemailalias.corp.mycompanydomain.com’ AND parentid = ‘4’ ORDER BY posted DESC
C:\wamp\www\textpattern\lib\txplib_misc.php(534) : eval()‘d code:15 safe_field() on line 84
C:\wamp\www\textpattern\lib\txplib_db.php:84 trigger_error()
C:\wamp\www\textpattern\lib\txplib_db.php:171 safe_query()
C:\wamp\www\textpattern\lib\txplib_misc.php(534) : eval()‘d code:15 safe_field()
C:\wamp\www\textpattern\publish.php:963 tcm_ratinginput()
processTags()
C:\wamp\www\textpattern\publish.php:922 preg_replace_callback()
C:\wamp\www\textpattern\publish.php:456 parse()
C:\wamp\www\index.php:39 textpattern()
Last edited by facho (2007-08-21 21:38:34)
Offline
Re: Need Help with TCM_Rating plug-in
Post your high diagnostics please. Looks like you’re missing part of /textpattern/lib/txplib_misc.php
PS. and please update the topic title to something more descriptive than ‘O’.
Last edited by ruud (2007-08-21 21:20:19)
Offline
#3 2007-08-21 21:37:53
- facho
- Member
- Registered: 2007-04-15
- Posts: 64
Re: Need Help with TCM_Rating plug-in
ha, sorry about the topic title. Can you tell me more specifically what the High diagnostics is? I’m pretty new to TXP.
Offline
Re: Need Help with TCM_Rating plug-in
on the admin tab -> diagnostics -> high
Offline
#5 2007-08-21 22:34:42
- facho
- Member
- Registered: 2007-04-15
- Posts: 64
Re: Need Help with TCM_Rating plug-in
Here you go:
Pre-flight check: “Site URL preference might be incorrect: localhost “
Everything else…..THANKS FOR ANY HELP PROVIDED
Textpattern version: 4.0.5 (r2466)
Last Update: 2007-08-10 15:33:33/2007-08-10 15:01:18
Document root: C:/wamp/www (C:\wamp\www)
$path_to_site: C:\wamp\www
Textpattern path: C:\wamp\www\textpattern
Permanent link mode: messy
upload_tmp_dir: c:/wamp/tmp
Temporary directory path: C:\wamp\www\textpattern\tmp
Site URL: royrusso2
PHP version: 5.2.3
GD Image Library: unavailable
Server Local Time: 2007-08-21 15:33:30
MySQL: 5.0.41-community-nt
Locale: English_United Kingdom.1252
Server: Apache/2.2.4 (Win32) PHP/5.2.3
Apache version: Apache/2.2.4 (Win32) PHP/5.2.3
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Windows NT 6.0
Active plugins: ajw_comment_alt-0.3, bas_img_sel-0.8, wet_wetfloor-0.1, zem_contact_reborn-4.0.3.20-t, zem_contact_lang-4.0.3.6, tcm_ratinginput-0.3, tcm_ratingoutput-0.4, glx_gravatar-2007.1
Pre-flight check:
————————————
Site URL preference might be incorrect: localhost
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
————————————
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: c:\wamp\mysql\share\charsets\
20 Tables: txp_ratings is latin1, txp_tcm_rqueue is latin1, txp_tcm_rsum is latin1
PHP extensions: bcmath, calendar, com_dotnet/0.1, ctype, session, filter/0.11.0, ftp, hash/1.0, iconv, json/1.2.1, odbc/1.0, pcre, Reflection/0.1, date/5.2.3, libxml, standard/5.2.3, tokenizer/0.1, zlib/1.1, SimpleXML/0.1, dom/20031129, SPL/0.2, wddx, xml, xmlreader/0.1, xmlwriter/0.1, apache2handler, mbstring, mysql/1.0, mysqli/0.1, PDO/1.0.4dev, pdo_sqlite/1.0.1, SQLite/2.0-dev
Apache modules: core, mod_win32, mpm_winnt, http_core, mod_so, mod_actions, mod_alias, mod_asis, mod_auth_basic, mod_authn_default, mod_authn_file, mod_authz_default, mod_authz_groupfile, mod_authz_host, mod_authz_user, mod_autoindex, mod_cern_meta, mod_cgi, mod_dir, mod_env, mod_imagemap, mod_include, mod_isapi, mod_log_config, mod_mime, mod_negotiation, mod_setenvif, mod_userdir, mod_php5
/include/txp_category.php: r2243 (3706fea923cd77f7053f7803de169df4)
/include/txp_plugin.php: r1917 (c63f72f33986c08367672fc9fe7b42dd)
/include/txp_auth.php: r2356 (33255ec1ea1a825163c78272496d8783)
/include/txp_form.php: r1913 (ecea3fecf9d7d1f8088cda67f097eceb)
/include/txp_section.php: r1891 (1f0121b3e2969d94bc8a7fb98bfdfbd5)
/include/txp_tag.php: r2260 (1bd67bdb9dcfb72e34ea967e39406216)
/include/txp_list.php: r2450 (997a3b1bec7115bf49b76f62b28da146)
/include/txp_page.php: r2099 (56bde34b6c7bcb9123ac91e73065e894)
/include/txp_discuss.php: r2451 (91e0b29ef39a9471ae5c78d0b1bba086)
/include/txp_prefs.php: r2405 (a4b76476930b2376199f23fbfd5f1ac9)
/include/txp_log.php: r2439 (16730c34e2a437dd88b8f5cc7eff8218)
/include/txp_preview.php: r1238 (696728f35f3557b648c011bb4d6496c3)
/include/txp_image.php: r2439 (9fac6ed0d9d4c3d8196492051f38dc9a)
/include/txp_article.php: r2453 (bdac8fcac5df2f93f10afa7e50c3fb6f)
/include/txp_css.php: r2403 (4e8c52bb1cf5bfe2e2f0640892f9b92e)
/include/txp_admin.php: r2403 (f8700a3d453ece08e7f137b47c967eda)
/include/txp_link.php: r2463 (0a0171bf606296106332d3fdcb83a678)
/include/txp_diag.php: r2361 (dccf3269049dd25e59afdd7ad8d235cd)
/include/txp_file.php: r2403 (e62abd5fcadabe629322ed17135d89eb)
/include/txp_import.php: r1238 (70a6207c0f3604ecfc4b20369986c4d7)
/lib/admin_config.php: r1747 (a2eb09f94d7902a6e95750fc4abcea17)
/lib/txplib_misc.php: r2464 (615afd44a10311f1c0b7852d9bc15d24)
/lib/taglib.php: r1535 (9b519f9dc88791e5ee8eacc029dd6975)
/lib/txplib_head.php: r2404 (2e067b25997cf67cddbdd365570e69d5)
/lib/classTextile.php: r2462 (a031e2ea894e339711c601f230c5ee71)
/lib/txplib_html.php: r2403 (97e173da3058b438513df67fd7d1ceca)
/lib/txplib_db.php: r2406 (5ed67642f805639b54e381fb22efd208)
/lib/IXRClass.php: r765 (137b91497628f0058a2fca9eba5c3b7f)
/lib/txplib_forms.php: r2403 (438a734b52acef40b36d8a3ba23987e8)
/lib/class.thumb.php: r2329 (b2a2fda54371dbd6c40ba553941f090e)
/lib/constants.php: r2361 (ab6d51668fab1e3c98e7d520b1a59f0f)
/lib/txplib_update.php: r1239 (10f28a986d23187b436369dc29ab552f)
/lib/txplib_wrapper.php: r2286 (419125ec74a17a70bf1e86ebfcd45253)
/publish/taghandlers.php: r2444 (cc9de8f2018b01398a2ba542c5f5bdc6)
/publish/atom.php: r2402 (46c4402717f695fde0d49d806adfa4c4)
/publish/log.php: r1637 (5254d0f3942086bc55723923307a51db)
/publish/comment.php: r2460 (2d1ae1dec0784f044e7005fa5ed50930)
/publish/search.php: r1748 (8c86ebcb5be08e214d81ca15a32164ca)
/publish/rss.php: r2393 (09aac29bf22ffa71c1e118e851cff3c3)
/publish.php: r2436 (7087864f1e7c6efe096d3b8e07c350b1)
/index.php: r2466 (30ecf35de5c1edc6ef68e780c8c79daa)
/css.php: r944 (8beba8f83a091068723435cdcdc02f2f)
Offline
Re: Need Help with TCM_Rating plug-in
Two easy to fix problems, I think:
- You have a table called ‘txp_ratings’ which should be ‘txp_tcm_rating’.
- There’s an uninitialized variable ‘delay’ used in the plugin code at line 13
That doesn’t explain the error though. If it happens only while submitting a rating, the question should be asked in the tcm_ratings plugin topic, because there’s a much higher chance that the plugin developer sees it there.
Last edited by ruud (2007-08-22 10:28:50)
Offline
#7 2007-08-22 20:49:35
- facho
- Member
- Registered: 2007-04-15
- Posts: 64
Re: Need Help with TCM_Rating plug-in
ok, i will see what i can figure out in terms of changing that table name. I did post at the plug-in forum, but unforutnately7 the dev does not seem to be engaged right now as there are several outstanding questions.
thanks for the input. I’ll repost any new learnings or issues if they arise.
Offline
#8 2010-06-14 12:53:12
- fantasmo
- Member
- Registered: 2010-05-05
- Posts: 40
Re: Need Help with TCM_Rating plug-in
Hi,
does anybody know which html (and/or php) code works to use <a> instead of <input> for the star submit buttons?
I tried to use <input> type=“image” and also add a hover effect, but as far as I know is this not a good solution, because it does not work in IE.
I need this, because I want to change the look of the rating system a bit like in this tutorial —> http://www.henryhoffman.com/css-star-rating-tutorial.html (Having hover stars instead of radio buttons).
Offline