bloc.. came arcoss a small error in the error log when editin a article in the tp admin secrtion.
index.php?action=tpadmin;sub=editarticle3
8: Undefined index: tp-editarticle
File: forums\Themes\default\TPortalBlocks.template.php (eval?)
Line: 531
im usin the lastest version "TinyPortal v.0.6.5 beta"
Edit:
theres a post allready about this just couldnt find anything about fixin it....
(http://www.tinyportal.net/smf/index.php?topic=301.msg2749#msg2749)
its a language error...try to check if $txt['tp-editarticle'] exists in TPadmin.xxx.php where xx is your language. If not, put it in:
$txt['tp-editarticle']='Edit article';
thanks bloc..
line 20 of TPortalAdmin.english is
$txt['tp-editarticles'] = 'Edit Articles';
so i just added without the (s)
$txt['tp-editarticle'] = 'Edit Article';
fixed the error with this.
would you know how to fix these errors also bloc?...
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 262
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 388
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 399
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 410
the only thing i can think of that are causing these errors is because i dont have guests allowed to access this forum??... would that be right?
It might be something in the template..what theme are you using now?
im using the Oxygen Tinyportal as my default theme, with the lastest beta version.
English language?
this has nothin to do with an log error, just want to know how to change something small
on the main page under posts where is says "Write Comment( 10 comments)"
how can i change this to say "Write Comment (10 comments)"
not sure where to put in the space... any news on how to fix the errors above?
[attachment deleted by admin]
look in your TPortal.template.php file for this:
'.$news['new_comment'].'( '.$news['replies'].' '
and just put in an extra space there before the first (.
- as for the error log, its most likely a missing entry in either the languae files or in the portal template, I am not sure. Does adding this to Tportal.php (underneath the global $.... etc. ) help any?
$txt['TPortal'] = '';
$context['TPortal'] = '';
Quote from: Bloc on June 26, 2005, 09:36:20 AM
- as for the error log, its most likely a missing entry in either the languae files or in the portal template, I am not sure. Does adding this to Tportal.php (underneath the global $.... etc. ) help any?
$txt['TPortal'] = '';
$context['TPortal'] = '';
i added $txt['TPortal'] = ''; to TPortal.english.
cheers man
ok ive stumbled across another error while Addin a new Menu Item in the Menu Manager
smf/index.php?action=tpadmin;sub=addmenu
8: Undefined index: tp-subitem
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 165
.. i guess im missing
$txt['tp-subitem'] = 'Add Menu Item'; in TPortalAdmin.english??
Yes. Thanks for letting me know, i will correct it for the next release.
I smell a new release coming.....:)
Quote from: Bloc on June 26, 2005, 09:36:20 AM
- as for the error log, its most likely a missing entry in either the languae files or in the portal template, I am not sure. Does adding this to Tportal.php (underneath the global $.... etc. ) help any?
$txt['TPortal'] = '';
$context['TPortal'] = '';
tough this fixed the error for a while but it came back again.
Quote from: ontap on June 22, 2005, 08:09:10 AM
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 262
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 388
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 399
index.php?topic=2989.0
8: Undefined index: TPortal
File: forums\Themes\default\Errors.template.php (eval?)
Line: 410
these errors only happen when google crawl the site,
i figured out how when i clicked on the links of the error
"index.php?topic=2989.0" or any error like this lead to the "recycle bin"..
i had it that only administrators could see or access the recyclebin, so when the admins viewed topics or posts in the bin, google would try and crawl the page and leave these errors, so how i fixed it was to allow "Unregistered Guests" access to the bin with just 1 permission "view polls" so it wouldnt allow guests to view the bin and it got rid of the errors... get it?
I see. They should not appear at all though..I will check this further out.
sorry for being such a pain.. :P
heres 3 more errors
addin a new Menu Item for an Article.
smf/index.php?action=tpadmin
8: Undefined index: tp_menu_article
File: smf\Sources\TPortalAdmin.php
Line: 202
addin a new Category
smf/index.php?action=tpadmin
8: Undefined index: tp_menu_category
File: smf\Sources\TPortalAdmin.php
Line: 201
smf/index.php?action=tpadmin
8: Undefined index: tp_menu_link
File: smf\Sources\TPortalAdmin.php
Line: 203
Don't be sorry..these help me pinpoint where the problems lie. :)
another way im getting errors same as the recycle bin is if you post a topic and delete it,
then if somene else trys to view that post
they will get this message:
"The topic or board you are looking for appears to be either missing or off limits to you."
den leaves these errors
8: Undefined index: TPortal
File: smf\Themes\default\Errors.template.php (eval?)
Line: 266
8: Undefined index: TPortal
File: smf\Themes\default\Errors.template.php (eval?)
Line: 396
8: Undefined index: TPortal
File: smf\Themes\default\Errors.template.php (eval?)
Line: 407
8: Undefined index: TPortal
File: smf\Themes\default\Errors.template.php (eval?)
Line: 418
The "Tportal" error seems to be gone from my development version now, and I will make sure topics from recycle bin don't get among "recent topics"( they do that on this site also in fact).
when using the "User" Block for the portal, i found more errors
if i untick these items in the userbox:
Avatar (if any)
Time
Unread replies/unread posts
smf/index.php?action=tpadmin;blockeditl=1
8: Undefined index: avatar
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 714
smf/index.php?action=tpadmin;blockeditl=1
8: Undefined index: time
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 716
smf/index.php?action=tpadmin;blockeditl=1
Apply Filter: Only show the errors with the same message
8: Undefined index: unread
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 717
how can i get users or Mods to Submit Articles?.. im guessing you need the User Block activated but i dont see any box to tick to allow them to post articles.
Thanks , ontap, I will correct these for the next release. :)
- to allow userGROUPS to submit, go to tpadmin/submissions section and tick the groups. A link will show up in userbox of these usersgroups then.So, yes, you need to have a userbox active at least.
This also will be more elaborate in the next release, making it easier to actually spot the submit link.
ive it ticked for the administartor group, have the user box activated but dont see any link to submit Articles.
i know i could just go into the tp admin section and add one there but it wont work for mods either.
All administrators can go to the tpadmin, they don't have the "submit" because they don't need it. Moderators are special, they are not a single group in TP, you need to add a new one and assign all of them to that.
errors when using the "Submit Article"
smf/index.php?action=tpmod&sub=submitarticle
8: Undefined index: id
File: smf\Themes\default\languages\TPortalAdmin.english.php (eval?)
Line: 63
smf/index.php?action=tpmod&sub=submitarticle
8: Undefined variable: mg
File: smf\Themes\default\languages\TPortalAdmin.english.php (eval?)
Line: 63
smf/index.php?action=tpmod&sub=submitarticle
8: Undefined index: parent
File: smf\Themes\default\languages\TPortalAdmin.english.php (eval?)
Line: 63
smf/index.php?action=tpmod&sub=submitarticle
8: Undefined variable: name
File: smf\Themes\default\languages\TPortalAdmin.english.php (eval?)
Line: 63
how could these be fixed so they dont show again?...
does someone know whats missing in the language file for the above errors?....
bloc would you know how to sort out this error for me plz?, i dunno where it came from but now anyone that views profiles leaves an error like this....
index.php?action=profile;u=801
8: Undefined index: warning
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 215
index.php?action=profile;u=01
8: Undefined index: warning
File: smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 215
Sounds like the mod "Visual Warning" is installed?
Quote from: Bloc on July 23, 2005, 10:28:13 AM
Sounds like the mod "Visual Warning" is installed?
dont have that mod installed, i had a backup of the Profile.template.php file so i just used that nd it got rid of it! :D
:) maybe it was an older file or something.