Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12382
Latest: ImportedPotato
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40254
Total Topics: 7090
Most Online Today: 178
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 63
Total: 64

Author Topic: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors  (Read 2526 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #30 on: February 18, 2019, 11:37:28 am »
No problem yeah it gets complicated without the package manager doing most of the work.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #31 on: February 18, 2019, 11:49:27 am »
Yeah; it never occurred to me to ask if the directories needed changed, and I thought the install script would make whatever changes were needed.

Next time I'll know better.

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #32 on: February 21, 2019, 12:19:28 am »
Sorry for the delay getting back to you.

I ran through the Package Parser instructions, and it went well 'til the very end. The last modification says:

  $sourcedir/Subs-Graphics.php
FIND:
// Save it!
   if (!empty($modSettings['avatar_download_png']))
      imagepng($dst_img, $destName);
   else
      imagejpeg($dst_img, $destName, 65);

But that doesn't exist.  The closest I can find is:


// Resize it.
   if (!empty($modSettings['avatar_download_png']))
      $success = resizeImageFile($url, $destName, $max_width, $max_height, 3);
   else
      $success = resizeImageFile($url, $destName, $max_width, $max_height);


Should I replace that instead? Or is that the wrong thing altogether?

Otherwise...we seem to be getting closer.  I'm only getting one error now in my log:

Type of error: Template

Unable to load the 'Gallery2.1' template.
DOMAIN/sg/index.php?action=gallery




Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #33 on: February 21, 2019, 12:27:25 am »
Ignore the first one about avatar_download code


For the second make sure you copy Gallery2.1.template.php from the zip file and place in your themes/default folder same with usergallery2.1.template.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #34 on: February 21, 2019, 12:48:42 am »
Aha!  It was in the wrong folder. 

Okay; gallery is working...but all the images are missing.  Where are they now?

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #35 on: February 21, 2019, 12:50:24 am »
It looks like most of the old images are in a folder just named "0".  Should I recreate it?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #36 on: February 21, 2019, 07:18:14 am »
You can. was it an upgraded gallery install? It should just work at that point.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #37 on: February 21, 2019, 07:36:26 am »
Yes; it's an upgrade.  As I said, the program seems to work, but the images are all missing, so I assume I need to recreate the original folders they were in.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #38 on: February 21, 2019, 07:58:14 am »
Very strange the images/folders shouldn't disappear. Everything should be in the gallery folder.

If it is check that your gallery path and url are sect corectly under admin -> gallery configuration -> settings
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #39 on: February 21, 2019, 08:27:57 am »
I recreated the file tree, and now the images are there.... But, I still have at least one more problem: the permissions file under "Manage Permissions" in admin panel doesn't display any of the settings for the gallery.


I'm getting this error:

Type of error: Undefined

8: Undefined index: permissionname_smfgallery_usergallery
DOMAIN/sg/index.php?action=admin;area=permissions;sa=modify;group=0
PATH/sg/Sources/ManagePermissions.php (Line 1640)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #40 on: February 21, 2019, 08:40:47 am »
Open themes/default/langauges/modifications.english.php and do the same for any modifications.*.php file

find ?> before it add the following:
Code: [Select]
// Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

$txt['gallery_ftp'] = 'Batch Add';
$txt['gallery_text_catpermlist2'] = 'Category Permissions';
$txt['gallery_filespace'] = 'Space Manager';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_form_approvecomments'] = 'Approve Comments';
$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_text_settings'] = 'Settings';
$txt['gallery_text_videosettings'] = 'Video/Audio Settings';
$txt['gallery_txt_moderationcenter'] = 'Moderation Center';
$txt['gallery_txt_imagemoderation'] = 'Image Moderation';
$txt['gallery_txt_commentmoderation'] = 'Comment Moderation';

$txt['gallery_menu_addpic'] = 'Add Picture';
$txt['gallery_menu_addvideo'] = 'Add Video/Audio';
$txt['gallery_menu_search'] = 'Search';
$txt['gallery_menu_stats'] = 'Stats';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';
$txt['permissiongroup_simple_smfgallery'] = 'Use SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_bulk'] = 'Bulk Uploads';
$txt['permissionhelp_smfgallery_bulk'] = 'Allows the user to use the bulk upload feature.';
$txt['cannot_smfgallery_bulk'] = 'You are not allowed to bulk upload.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit their own picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit that picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete their own picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete that picture.';

$txt['permissionname_smfgallery_ratepic'] = 'Rate Picture';
$txt['permissionhelp_smfgallery_ratepic'] = 'Allows the user to rate a picture.';
$txt['cannot_smfgallery_ratepic'] = 'You are not allowed to rate that picture.';

$txt['permissionname_smfgallery_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_smfgallery_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_smfgallery_editcomment'] = 'You are not allowed to edit that comment.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_smfgallery_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_usergallery'] = 'Personal Gallery';
$txt['permissionhelp_smfgallery_usergallery'] = 'Allows the user to have a personal gallery.';
$txt['cannot_smfgallery_usergallery'] = 'You are not allowed to have a gallery.';

$txt['permissionname_smfgallery_manage'] = 'Admin Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures.';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//Permissions
$txt['permissiongroup_smfgalleryvideo'] = 'SMF Gallery Pro Video/Audio';

$txt['permissionname_smfgalleryvideo_add'] = 'Add Video/audio';
$txt['permissionhelp_smfgalleryvideo_add'] = 'Allows the user to add a video/audio file.';
$txt['cannot_smfgalleryvideo_add'] = 'You are not allowed to add a video/audio file.';

// END SMF Gallery Text Strings
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline DragonLady

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #41 on: February 21, 2019, 10:57:20 am »
Okay; that worked...so far, so good. I think everything is working now, but will keep an eye on it for a while, and let you know if I find any more issues.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15123
    • View Profile
Re: SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors
« Reply #42 on: February 21, 2019, 11:02:03 am »
Great. If you encounter other issues when installing mods with the package manager might be a bug with SMF
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
4203 Views
Last post December 04, 2007, 09:27:54 pm
by SMFHacks
1 Replies
3733 Views
Last post April 28, 2008, 06:58:32 pm
by SMFHacks
8 Replies
5585 Views
Last post November 04, 2008, 08:32:31 pm
by SMFHacks
2 Replies
3060 Views
Last post December 24, 2008, 01:19:29 pm
by bluedevil
2 Replies
2979 Views
Last post December 21, 2008, 11:40:53 am
by weightman

+- Recent Topics

Moving pictures to another user personal gallery by Hatshepsut
Today at 11:07:26 pm

Rebuild related images time too long by SMFHacks
August 09, 2020, 01:52:57 pm

Call to undefined function mysql_num_rows() by SMFHacks
July 30, 2020, 07:45:29 am

Problem with one videosite embedding by Hatshepsut
July 24, 2020, 01:25:08 am

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

Powered by EzPortal