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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:18:38 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 310
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 256
  • Total: 256

Issue updating to TP 1.1

Started by keithsnell, November 24, 2015, 09:52:18 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

illori

Quote from: lurkalot on November 24, 2015, 11:31:03 PM
Did you clean up the old TP files from the server before you uploaded fresh files from the large upgrade package.  It could be that you have old TP files still there.  It would be an idea to uninstall TP 1.1, then go check if there's any files remaining.

Make sure you don't delete any images of files you need.  It would pay you to back anything up before you delete anything.

i dont think that is the issue. it is an actual bug in TP if the setting Do not use SMF templates is used.

lurkalot

Quote from: illori on November 24, 2015, 11:35:53 PM
Quote from: lurkalot on November 24, 2015, 11:31:03 PM
Did you clean up the old TP files from the server before you uploaded fresh files from the large upgrade package.  It could be that you have old TP files still there.  It would be an idea to uninstall TP 1.1, then go check if there's any files remaining.

Make sure you don't delete any images of files you need.  It would pay you to back anything up before you delete anything.

i dont think that is the issue. it is an actual bug in TP if the setting Do not use SMF templates is used.

You're probably right Illori, I was going on Keith's reply, I guess we'll have to wait until he can check that setting.  Good that you fixed that bug though in the next release. Thank you, that was fast.  8)

Quote from: keithsnell on November 24, 2015, 11:00:08 PM

I don't think I used that option.


illori

the code that gives the error that was posted tells a different story. it has to be that option...

https://github.com/Tinyportal/TinyPortal/commit/c9ceda50e4b21c46b1bdaa99a5a9528a6182d31d is the fix

illori

Quote from: keithsnell on November 24, 2015, 11:20:21 PM
HTML articles will publish from the article manager when I select toggle front page; however HTML articles will still not display properly when I try to publish them within a block.

I'm getting the following forum error message in the SMF error logs:

http://community.spiritofphotography.com/index.php?cat=19
8: Undefined index: layout
Apply Filter: Only show the errors from this file
File: /home/content/k/e/i/keithsnell/html/community/Themes/default/languages/TPShout.english.php (main sub template - eval?)
Line: 174

If that is any hint?  (I don't have TP shout turned on, so not sure why that would be an issue.

no idea on a fix for that issue, can you disable template eval?

admin -> server settings Disable evaluation of templates and post any new errors without eval in them.

keithsnell

Quote from: lurkalot on November 24, 2015, 11:45:50 PM
Quote from: illori on November 24, 2015, 11:35:53 PM
Quote from: lurkalot on November 24, 2015, 11:31:03 PM
Did you clean up the old TP files from the server before you uploaded fresh files from the large upgrade package.  It could be that you have old TP files still there.  It would be an idea to uninstall TP 1.1, then go check if there's any files remaining.

Make sure you don't delete any images of files you need.  It would pay you to back anything up before you delete anything.

i dont think that is the issue. it is an actual bug in TP if the setting Do not use SMF templates is used.

You're probably right Illori, I was going on Keith's reply, I guess we'll have to wait until he can check that setting.  Good that you fixed that bug though in the next release. Thank you, that was fast.  8)

Quote from: keithsnell on November 24, 2015, 11:00:08 PM

I don't think I used that option.


I apologize for the "I don't think so" answer.  I should have checked that setting.  I must have set it when I was playing around with my test article.

So yes, that fixes the issue of new html articles not posting or previewing properly.  I still can't figure out why my existing/old html articles won't post.  When I open them in the article editor, they show as html articles, but "text" is showing all the html codes.  Could it be because I'm using a different WYSIWYG editor?

keithsnell

I'll play with the display of my old html articles for awhile.

I also have another issue related to the TP install.  Before doing these most recent updates, I had my forum in a subdirectory and the file referenced here:  http://www.tinyportal.net/docs/index.php?topic=215 (Can I still make an external page outside of TP/SMF directory?) in my root directory.  That file implemented my TP front page when visitors hit the index.php in root.  That worked great for me.

However, now the index.php in my root folder is returning this error:  Fatal error: Call to undefined function template_main_above() in /home/content/k/e/i/keithsnell/html/index.php on line 14

Is there a way to update this index.php file so that it still functions like the "old" index.php?  All of my site visitors are used to just going to the root at www.Spiritofphotography.com.  If they get this error they won't know what to do.

So the question:  Is it still possible to implement TP in the root directory with the forum in a subdirectory?

(Please let me know if I need to start a new topic for this new issue.)

Thanks,
Keitih

illori

Quote from: keithsnell on November 25, 2015, 02:02:19 AM
So the question:  Is it still possible to implement TP in the root directory with the forum in a subdirectory?
TP has never had a stand alone option, so i am not sure what you did to set that up. the template system has changed in 2.0 from what was there in 1.1, so maybe that is part of your issue?

seems template_main_above does not exist in a 2.0.* install, it seems in 2.0 it is template_html_above instead. does that help anything?

if not can you attach the file you are using to your next post?

illori

if you want the menu etc to show, i have modified what is on that page to this:

<?php
// ID of the theme
$ssi_theme 1;

// Exact path to SSI.php
require_once('SSI.php');

global 
$context;

TPortal_init();

// Your page Title
$context['page_title'] = 'Demo Page';

template_html_above();
template_body_above();
template_tp_above();

// Here comes all your contents
echo 'SMF/TP Rules baby!';

// And this ends stuff
ssi_shutdown();
?>
that works with SMF 2.0.*.

i will update that article on the docs to make sure it works on SMF 2.0.*.

keithsnell

Quote from: illori on November 25, 2015, 11:11:07 AM
if you want the menu etc to show, i have modified what is on that page to this:

<?php
// ID of the theme
$ssi_theme 1;

// Exact path to SSI.php
require_once('SSI.php');

global 
$context;

TPortal_init();

// Your page Title
$context['page_title'] = 'Demo Page';

template_html_above();
template_body_above();
template_tp_above();

// Here comes all your contents
echo 'SMF/TP Rules baby!';

// And this ends stuff
ssi_shutdown();
?>
that works with SMF 2.0.*.

i will update that article on the docs to make sure it works on SMF 2.0.*.
Thank you illori.  That was exactly what I was looking for!

Thank you to both of you for helping me through this upgrade.

Keith

illori

so everything is working for you now? great.