1
Moonrakre
Re: Smarty error: unable to read resource: "db:ct_index.tpl"
  • 2018/2/14 14:56

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


OK Sorted - I failed to notice that there is an update available and that has cleared the error.

Please accept my apologies for wasting your time.

Best wishes

Adrian



2
Moonrakre
Re: Smarty error: unable to read resource: "db:ct_index.tpl"
  • 2018/2/14 13:28

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


I have now found ct_index.tpl in modules/content/templates. So where is the system trying to find it and how can I get it to look in the content/templates folder?

Best wishes

Adrian



3
Moonrakre
Smarty error: unable to read resource: "db:ct_index.tpl"
  • 2018/2/14 12:30

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


I am upgrading a site from a very old Xoops to 2.5.9. So far good, but I am now trying to get the Content module to work, but I am getting this message in the debug window:
Warning: Smarty error: unable to read resource: "db:ct_index.tpl" in file class/smarty/Smarty.class.php line 1100

The content page is white screen i.e. it is not displaying the content.

That line 110 is just an error message creator, so I can't see what caused it.

I have downloaded the content module from Github following a link given to me by Mambo (thank you). I can get to modify pages using TinyMCE but when I go to view them I get this error.

I can't find references to ct_index.tpl neither can I find a file of that name. I can find references to ct_index.html in the content module files index.php and xoops_version.php. So I can't see why it is trying to load this .tpl file.

I don't know what to do to overcome this issue, so any suggestions would be most welcome, please.

Best wishes

Adrian



4
Moonrakre
Re: protector.php not found
  • 2018/1/14 20:50

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Hi Mamba, thanks for this.

I found the Kostas Ksilas version and loaded that, it works except that I can't seem to add a new page. As my priority is to get the charity back working I will stick with that for the moment.

One issue I have is that I was only getting text input, i.e. I could see all the html code, rather than it being wysiwyg which I need for these guys. I found I can still use the Koivi editor once I had changed a load of eregi calls into preg_matches.

Where I'm at is not ideal so I'll get the live system updated and then see if your editor will be better going forward. And yes I am working on a test site first.



5
Moonrakre
Re: protector.php not found
  • 2018/1/14 20:43

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Hi, Thanks Geekwright,

I have messed up today and had to go back to square one, the new instructions worked great. Thank you.

The live installation I have has had the servers upgraded and the lowest PHP available is 5.5 so the site worked as a static site but nothing could be updated. I was able to run the upgrade (in a sandpit) under 5.5 and have now switched to 7.1. Xoops works but most of the addon modules are for earlier versions so I am having to do some rebuilding to get them to work.



6
Moonrakre
Re: protector.php not found
  • 2018/1/13 17:31

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Hi Mamba,

Thank you. Yes I did read the manual and followed it carefully but manuals can't cope with every case.



7
Moonrakre
Re: protector.php not found
  • 2018/1/13 17:28

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Unfortunately all the editors were already set to dhtmltextarea. I tried all the other options to no avail.

The module throwing the error is a "content" module (of which there seem to be a number) by a Ben Brown of The Handcoders, Reinarz & Associates. These seem to have disappeared now.

I built the site for a charity in 2010 and it has just run lovely since then, but it was on an old PHP version which has had to be changed, so somehow I need to get it changed at least to the point of being able to edit the content. So yes is it old.



8
Moonrakre
Re: protector.php not found
  • 2018/1/13 14:55

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Thanks again iHackCode,

I see several changes in the new mainfile.dist.php so I've tried to put those in. The only problem was adding:

// Secure file
require XOOPS_VAR_PATH . '/data/secure.php';

As soon as I added that I just get:
Restricted Access
when I run the site.

But I realised that secure.php just defines the database so I had to take that lot out of mainfile.php. Then I was back in.

I have posted this in case someone else is following the same path as me.

I am left now with problems editing but I think that is separate issue so I'll raise another topic if I can't find a solution. But in short I am getting errors like:
Error : Error: Call to undefined method FormDhtmlExt::XoopsFormDhtmlTextArea()

Other than that I think I'm sorted



9
Moonrakre
Re: protector.php not found
  • 2018/1/13 10:36

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Digging about I found a in precheckfunctions.php which says:
die('To use installer, remove protector\'s lines from mainfile.php first

SO I commented out two lines in mainfile.php which refer to protector and the upgrades went through OK apart from it couldn't access secure.dist.php - because the upgrade instructions didn't says to copy xoops_data folder to the installed _data folder (similar to _lib).

The problem I now have is that if I uncomment the two lines in mainfile.php the system blank screens. SO I am now having to run without protector - not good. Can anyone advise me on how to get Protector working again please?



10
Moonrakre
Re: protector.php not found
  • 2018/1/13 8:38

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


Thank you iHackCode,

I did that and got:
There are 3938 files checked.
Please remove the file ./checksum.md5 and checksum.php as soon as possible.

which I assume means all OK.

IPAddress.php is in the right place on the server.

What I didn't make clear in my earlier post is that the error is happening when I run upgrade. So I guess the upgrade routine isn't loading it properly.




TopTop
(1) 2 3 »



Login

Who's Online

169 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits