Announcement

#1 2022-01-29 19:56:25

colomba
Member
2019-12-24
21

template.class.php Error

Hi,

I've upgraded to 10.2, everything is working except that sometimes on the top of some pages I get this error:

Warning: filemtime(): stat failed for ./themes/default/js/plugins/jquery-confirm.min.js in /var/www/vhosts/archiviocitterio.it/httpdocs/foto/include/template.class.php on line 1879

Sorry I'm not a developer, is there a simple solution?
thanks.

Piwigo 12.2.0
Sistema operativo: Linux
PHP: 7.1.33 (Mostra le informazioni) [2022-01-29 18:52:50]
MySQL: 5.1.73 [2022-01-29 19:52:50]
Libreria grafica: ImageMagick 6.7.2-7
Cache size Non disponibile   never calculated
https://archiviocitterio.it/foto

Last edited by colomba (2022-01-29 19:56:44)

Offline

 

#2 2022-01-30 10:51:04

colomba
Member
2019-12-24
21

Re: template.class.php Error

sometimes I also get this other error:

Warning: file_get_contents(./themes/default/js/plugins/jquery-confirm.min.css): failed to open stream: No such file or directory in /var/www/vhosts/archiviocitterio.it/httpdocs/foto/include/template.class.php on line 1975

I've deactivated and reactivate every plugin, one by one, but I still get these errors.

thank you

Last edited by colomba (2022-01-30 17:31:03)

Offline

 

#3 2022-01-30 12:23:18

erAck
Only trying to help
2015-09-06
1414

Re: template.class.php Error

What can we say.. apparently sometimes the file themes/default/js/plugins/jquery-confirm.min.js can not be accessed, why ever. If the file exists (it should) and the directories are accessible by the web server user then check your web server logs and talk to your hosting provider.


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2022-01-30 19:37:01

colomba
Member
2019-12-24
21

Re: template.class.php Error

Thank you erAck, sorry, I'm not very confident with web development, I'm a designer trying to make Piwigo work for a no profit association...

template.class.php was missing, I had to recover it from my last piwigo backup before the update and upload it.

Now I have one last problem, in some pages I get this error:

Fatal error: Uncaught --> Smarty: Unable to load template 'file:menubar_related_categories.tpl' in 'menubar.tpl' <-- thrown in /var/www/vhosts/archiviocitterio.it/httpdocs/foto/include/smarty/libs/sysplugins/smarty_internal_template.php on line 195

what can I do? I've tried to overwrite smarty_internal_template.php with the one of my backup (before updating) but it was worse.

thank you for your patience.

Offline

 

#5 2022-01-30 22:29:52

erAck
Only trying to help
2015-09-06
1414

Re: template.class.php Error

Your case of missing files is odd, and adding files from a backup made previous to the upgrade is not going to work. Download the full installation archive from https://piwigo.org/get-piwigo and follow the manual installation (of course using your existing Piwigo foto directory instead of the example “photos”) if you don't know how to unzip everything in-place over your existing installation replacing all files even if your installation directory name foto is not the same as piwigo that is stored in the zip.


Running Piwigo at https://erack.net/gallery/

Offline

 

#6 2022-01-31 23:31:23

colomba
Member
2019-12-24
21

Re: template.class.php Error

Thank you again erAck, I've reupload everything and now it seems ok!
Maybe something went wrong during the update...I don't really know, anyway..thanks!
elena

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact