Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 11:09 am EDT

Geeklog Forums

error.log back to chmod 644


Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
I have the media gallery on my site, when I use it to check the error.log file. It change chmod back to 644 and then I get an error the next time something should be written in the file. Is there somthing I can do about this. The site is not hosted on my one server.

I get the same error if I tray to use the ban plugin to se the error.log
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
I can`t imagine MG to set the rights of error.log. Did you try 775 for error.log ?
 Quote

Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
Yes but I get the same result, back to 644 :banghead:
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Ask your hoster Exclamation they may not permit 775
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Here are the only files witch use chmod in the mg plugin
Text Formatted Code

  C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\lib-upload.php (6 hits)
        Line 883:     @chmod($imageThumb, 0644);
        Line 884:     @chmod($imageDisplay, 0644);
        Line 1407:                 @chmod($media_orig, 0644);
        Line 1490:                 @chmod($media_orig, 0644);
        Line 1507:                 @chmod($media_orig,0644);
        Line 1552:                 @chmod($media_orig,0644);
  C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\lib-watermark.php (1 hits)
        Line 414:                 chmod($wm_filename, 0644);
  C:\wamp\www\geeklog-1.5.1\public_html\mediagallery\maint\rssfeed.php (2 hits)
        Line 153:     chmod($feedname, 0664);
        Line 222:     chmod($_MG_CONF['path_html'] . 'rss/' . $_MG_CONF['rss_feed_name'] . '.rss', 0664);


I don't find nothing about chmod the error.log

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
It is the error log to geeklog not MG. just use the MG to see the error log, but I get the same error when I use ban plugin to clear the log.
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
O.k., I can confirm that. If you use the log viewer it resets to 644. Actually on my server the files were 644 before and the subdir is 775.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
You can hack the admin/plugin/mediagallery/logview.php file. Near line 99 add the chmod line and set rights as you need.

Text Formatted Code
if ($action == 'Clear Log File') {
    unlink($_CONF['path_log'] . $_POST['log']);
    $timestamp = strftime( "%c" );
    $fd = fopen( $_CONF['path_log'] . $_POST['log'], a );
        chmod($_CONF['path_log'] . $_POST['log'], 0755);
    fputs( $fd, "$timestamp - Log File Cleared \n" );
    fclose($fd);
    $action = 'View Log File';
}


::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
Okay will tray that later today
 Quote

Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
Thanks that worked :banana:
 Quote

All times are EDT. The time is now 11:09 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content