Forum Activity for @michael

michael
@michael
05/30/14 11:08:34PM
7,832 posts

jrCore subdir issue - cannot copy cache files


Installation and Configuration

Didn't mean to sound too simple, just trying to eliminate the common causes before searching for more uncommon causes.

I can tell by the beard you know what your doing around computers. ;)

Here's a vid of me doing an install. Could you tell me what point yours fails at using that as a comparison please.
installing jamroom into EHCP dev environment
michael
@michael
05/30/14 10:43:32PM
7,832 posts

jrCore subdir issue - cannot copy cache files


Installation and Configuration

ok, bit clearer now. From what I understand, your still at the install phase. I missed that bit.

Subdomains are fine, all mine are on a subdomain.

Here are the steps I normally take to install a new jamroom instance in my dev machine:
* create a domain name for it and update my /etc/hosts file on my local machine.
sudo nano /etc/hosts
point it to my server:
192.168.0.40    newsitename.iixxii.cc
iixxii.cc is a real domain but all the subdomains are on my local machine. Just in case i ever do want to put one live, i can update the DNS on the real server to point to my home server.)

* log in to EHCP and setup a domain name under my current FTP account.
* add a database and remember the credentials
* login via FTP and upload the jamroom folder.
* open the domain name and put the credentials in the install screen.

sometimes have to change the permissions on some folders, but jamroom will warn me when i need to do that.

Its usually pretty quick.

I'll make a video of it now.
michael
@michael
05/30/14 09:45:27PM
7,832 posts

jrCore subdir issue - cannot copy cache files


Installation and Configuration

I use a similar setup to that, only I run EHCP on an old pc i use as a server on the same network.

Here's my setup:

"Setting up a debugging environment"
http://www.jamroom.net/the-jamroom-network/documentation/development/129/setting-up-a-debugging-environment

When you see that message it could mean a couple of things; The most usual one is that /skins/jrElastic/index.tpl file does not exist.

It not existing is the cause of it not being able to be copied to the cache directory.

So try
* re-uploading that file
* reset the caches from YOUR-SITE.com/core/cache_reset
* refresh the page where you saw that error.

Hopefully its not there anymore.

If that doesn't fix it, the next place to look is the cache directory.

You can safely manually delete anything under:
/data/cache/*
(I usually leave the index.html there and delete the rest.)

With the EHCP setup sometimes files created by the server are hard to delete via FTP, so in those cases i SSH into the machine and

sudo chmod -R 777 /var/www/vhosts/admin/MY-SITE-NAME/httpdocs/
and after that I can delete the cache.

Keep in mind that my dev machine is not accessible via the internet, so 777 is ok. bit careful there.

see if any of that helps.
michael
@michael
05/30/14 04:32:38PM
7,832 posts

jrEmbed Appears To Underprivileged Users


Using Jamroom

What should be happening?

As I'm understanding it: The quota the user is in is not supposed to have access to the jrEmbed module but does?
michael
@michael
05/29/14 07:03:51PM
7,832 posts

template_already_shown and page_begin.tpl


Jamroom Developers

If you dont want to show the headers on a form, you could use the function:
   jrCore_page_set_no_header_or_footer();

eg:

/**
 * displays the 'update widget details' form into a modal window via ajax
 */
function view_jrWidget_create($_post, $_user, $_conf)
{ jrCore_page_set_no_header_or_footer(); if (!isset($_post['_3']) || !jrCore_checktype($_post['_3'], 'number_nz')) { jrCore_notice('error', 'invalid item id'); } $_widget = jrCore_db_get_item('jrWidget', $_post['_3'], true); // Form init $_tmp = array( 'submit_value' => 'save changes', 'cancel' => '$.modal.close();', 'values' => $_widget ); jrCore_form_create($_tmp); //............
michael
@michael
05/28/14 06:55:43PM
7,832 posts

Datastore items?


Design and Skin Customization

I can see the issue and will get it fixed up. Thanks.

Use the single _count version. The other is a mistake.

anything with a _count is something that has been recorded with the jrCore_counter() function.

You will see it sometimes in the templates. It will look like this:
{jrCore_counter module="jrProfile" item_id=$_profile_id name="profile_view"}

Each time that marker is hit it will increment
"profile_view_count"

but if that code was to read:
{jrCore_counter module="jrProfile" item_id=$_profile_id name="profile_view_count"}
then it would create
profile_view_count_count

Thats what your seeing.

It needs fixing up in a couple of locations.

Thanks.
michael
@michael
05/28/14 04:56:02PM
7,832 posts

Datastore items?


Design and Skin Customization

audio_file_stream_count is the one you want. never seen audio_file_stream_count_count before.

What skin are you using?
michael
@michael
05/28/14 01:10:09AM
7,832 posts

create video error


Jamroom Developers

There is a lot of discussion about "mod_fcgid: read data timeout in 31 seconds" in this thread:
http://www.virtualmin.com/node/19879

along with a few things to try to allow the script to execute.
michael
@michael
05/27/14 05:44:58PM
7,832 posts

Module is active


Jamroom Developers

like this:
{if jrCore_module_is_active('jrComment')}......
michael
@michael
05/26/14 07:38:56PM
7,832 posts

Start date for charts


Installation and Configuration

you can use chart_day_start / chart_day_end to pick a start date in the format yyyy mm dd

so an example with the audio module would be:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_day_start="20140101" chart_day_end="20141231" template="music_chart_genres_row.tpl"}

is asking for the stream count from the beginning of 2014 til the end of 2014
  692