solved Template Cache directory issues

alt=
@luis789
9 years ago
88 posts
Could you please help. After updated Jamroon to the latest version. Both of my sites have some random images with the x mark and no image. When I log in with the admin account, I'm getting the below error.

CRI: Unable to copy modules/jrCore/templates/page_tool_entry.tpl to template cache directory: data/cache/jrCore

CRI: Unable to copy modules/jrCore/templates/page_search.tpl to template cache directory: data/cache/jrCore
CRI: Unable to copy modules/jrPlaylist/templates/playlist_button.tpl to template cache directory: data/cache/jrCore

Basically error every where
updated by @luis789: 07/22/15 01:07:01PM
michael
@michael
9 years ago
7,715 posts
I've just downloaded the latest version of jamroom from here:
https://www.jamroom.net/

to confirm that the files:
modules/jrCore/templates/page_tool_entry.tpl
modules/jrCore/templates/page_search.tpl

are in the package or not. They are.

So for whatever reason, your system is missing them. That error is most likely caused by the server being asked to copy those files from where they are into the cache system.

Check via FTP whether those files are there or not. If they are not there, download the core package and upload it via FTP to your server.
brian
@brian
9 years ago
10,148 posts
luis789:
Could you please help. After updated Jamroon to the latest version. Both of my sites have some random images with the x mark and no image. When I log in with the admin account, I'm getting the below error.

CRI: Unable to copy modules/jrCore/templates/page_tool_entry.tpl to template cache directory: data/cache/jrCore

CRI: Unable to copy modules/jrCore/templates/page_search.tpl to template cache directory: data/cache/jrCore
CRI: Unable to copy modules/jrPlaylist/templates/playlist_button.tpl to template cache directory: data/cache/jrCore

Basically error every where

Make sure you have not run out of disk space on your server. Those errors means exactly that they say - the copy() operation by PHP failed.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@luis789
9 years ago
88 posts
Thanks Brian.. but the problem did not get fixed. I have plenty of space and bandwith for the sites. I think the sites may have being compromised with Jamroom.

ON two sites I have Jamroom 5, I'm getting the same errors. It seems like they both communicated each other. Now I don't even access to administrator panel. The other site with Jamroom 4 and Projam skin, suddenly the home page is gone and other sections are missing links etc. Coincidence? I'm not sure.

The strange thing is that I had not done anything, only upgraded to latest version of jamroom 5, but I don't think it has anything to do with it.

How ever; there is an other site hosted in the same sever but with other platform and it is working fine with no issues. This is very strange.

I think, I'm going to have re-store my server.. I have no other choice.

Thank You for you're help.
brian
@brian
9 years ago
10,148 posts
yeah something is messed up - I would suspect a corrupt database or files on the server - try deleting all subdirectories within data/cache and run REPAIR TABLE on your DB tables and see if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@luis789
9 years ago
88 posts
So for the problem has has almost being resolved: However I'm still having some challenging on one site
When I go to the site I get this error

"Forbidden
You don't have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 Server at www.musicmas.com Port 80"

I had replaced the router.php and repaired the database tables with no luck.

Question? Would integrity check may had changed something?

The reason I asked is that I was running integrity check and suddenly it kind of froze at about 45 minutes. So I closed the browser. After that I tried to access the site again and the error started to show.
Any ideas.

THank You
michael
@michael
9 years ago
7,715 posts
That error is saying the permissions of the root folder do not allow access to the top level of the site.

Its not an error I would expect to see on a functioning jamroom site.

Does your server have any error logs that you can look at? That would show what the error is complaining about with a bit more info.

I'd make sure that you have an .htaccess file in the root jamroom directory first, then go looking for the server logs.

What do you mean by "I had replaced the router.php"?
alt=
@luis789
9 years ago
88 posts
I checked the .htaccess and the file is in home directory. When I checked the log file I saw this errors.
[Mon May 18 22:07:57 2015] [error] [client xx.x.xxx.xx] Symbolic link not allowed or link target not accessible: /home/musicmas/public_html/modules/jrCore
Mon May 18 21:22:33 2015] [error] [client xxx.xxx.xx.xx] File does not exist: /home/musicmas/public_html/modules/jrCore/router.php

I checked the router.php file and it is there.



I'm not sure if the .thaccess is causing the issue, but when I delete that File, I can see the structure. If I copy I get the forbidden error.

This is the context in the .htaccess file






updated by @luis789: 05/18/15 08:32:58PM
alt=
@luis789
9 years ago
88 posts
echo '# Jamroom 5 Apache .htaccess file
DirectoryIndex index.html index.php sitemap.xml modules/jrCore/router.php

Options +FollowSymLinks
Options -MultiViews -Indexes

# Use ETags
<IfModule mod_headers.c>
Header unset ETag
FileETag None
# Expires for CSS, JS and Images
<FilesMatch ".(ico|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2018 20:00:00 GMT"
</FilesMatch>
</IfModule>

# Compress everything we can
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript text/javascript-x application/javascript
</IfModule>

# All requests through the router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ modules/jrCore/router.php?_uri=$1 [NC,L]
</IfModule> ';
michael
@michael
9 years ago
7,715 posts
That's it.
Quote: ...Symbolic link not allowed...

Your server needs to allow symlinks. Jamroom uses symlinks with the update system.

A symbolic link is placed at:
/modules/(the module base url)
/modules/jrCore

and that links to the current version
/modules/jrCore-version-5.2.33

If you look in the modules directory you will see all the version
/modules/jrCore-version-5.2.33
/modules/jrCore-version-5.2.32
/modules/jrCore-version-5.2.31
/modules/jrCore-version-5.2.30
.....

and the symlink on /jrCore will link to the most recent version.

If you can't get symlinks turned on for your server then the marketplace update system is not going to work.

In order to update in that case, you will need to download the modules and upload them via FTP so that instead of a symlink on:
/modules/jrCore

the actual files are there instead. This would get round your servers limitation.

Tags