Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 280
Total: 281

Author Topic: An error when saving post  (Read 8268 times)

0 Members and 1 Guest are viewing this topic.

Offline TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
An error when saving post
« on: October 23, 2015, 07:46:18 am »
This error occurred and is there a way to remedy it?

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20416 bytes) in /home/content/11/********/html/************/Sources/classifieds2.php on line 9489
-------------------------------------------------------------------
Is this requiring a file size change in the settings, maybe?


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: An error when saving post
« Reply #1 on: October 23, 2015, 08:18:40 am »
Try this open Sources/Classifieds2.php

Around line 9466
Find
Code: [Select]
function Classifieds_DoImageResize($sizes,$destName)
{
global $modSettings, $gd2;

@ini_set('memory_limit', '128M');

Change to
function Classifieds_DoImageResize($sizes,$destName)
{
   global $modSettings, $gd2;

   @ini_set('memory_limit', 256M');

[/code]
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 TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #2 on: October 23, 2015, 10:31:53 am »
Try this open Sources/Classifieds2.php

Around line 9466
Find
Code: [Select]

--------------------------------------------------------------------
function Classifieds_DoImageResize($sizes,$destName)
{
global $modSettings, $gd2;

@ini_set('memory_limit', '128M');

Change to
function Classifieds_DoImageResize($sizes,$destName)
{
   global $modSettings, $gd2;

   @ini_set('memory_limit', 256M');

[/code]

This is what the section between lines 9462 & 9474 looks like now. I didn't think that the [/code] was supposed to be inserted. Correct?
function Classifieds_DoImageResize($sizes,$destName)
{
   global $modSettings, $gd2;

   @ini_set('memory_limit', 256M');

   $default_formats = array(
      '1' => 'gif',
      '2' => 'jpeg',
      '3' => 'png',
      '6' => 'bmp',
      '15' => 'wbmp'
   );

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: An error when saving post
« Reply #3 on: October 23, 2015, 10:41:07 am »
Yeah taht's it just raise the 128 to 256
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 TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #4 on: October 23, 2015, 10:51:50 am »
I use Extended Script Editor and when I cut and pasted your change it changed the color of several items in that section and that usually is a flag depicting a syntax error. So what I done was reverted back to the original code and just changed the numeric value inside the quotes from '128M" to '256M' and the colors all went back to normal. Did I do the right thing cause the one in your post doesn't have quotes like the other.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: An error when saving post
« Reply #5 on: October 23, 2015, 11:01:16 am »
Yeah that is fine just to change that number
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 TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #6 on: October 23, 2015, 11:08:09 am »
While I have you on the "phone"... Is their any way the Classifieds category can be included in the regular category list so it can be moved either up or down easily on our board index? Right now it is on top of the "Info Center" and it would be nice if it could be moved in among the other category's or up closer to the top of the list.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: An error when saving post
« Reply #7 on: October 23, 2015, 11:14:39 am »
No way to do that. You can either have it at the bottom or top or you can try to arrange it after a certain category with php code.
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 TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #8 on: October 23, 2015, 11:24:21 am »
I won't pester you any more today about this but I do believe that I would rather have it sitting on the top of the board index category's than all the way at the bottom. If I were to send you a copy of my board_index.php file to review, do you think you could tell me how I could do this. I'm really not a coder but, I can move things around a little if I have a good coach.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: An error when saving post
« Reply #9 on: October 23, 2015, 12:28:53 pm »
Yes I could move it on top
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 TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #10 on: October 23, 2015, 12:37:53 pm »
Yes I could move it on top

Do you want me to send you my file or do you just want to tell me how to move it? Anyhoo, I attached the file just in case.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: An error when saving post
« Reply #11 on: October 23, 2015, 12:57:41 pm »
Try this file
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 TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #12 on: October 23, 2015, 01:06:39 pm »
I don't know who I'm conversing with but, you ROCK!

I got it to move but it wouldn't populate the icons, colors or justify the positioning. It just showed the text. It all functioned, but looked like crap.

So whoever you are...Thanks a bunch!

Terry Olds
TKO-100

Offline TKO-100

  • SMF Classifieds Customer
  • Member
  • *****
  • Posts: 31
  • Site Admin
    • View Profile
    • Knights of the Coin Table
Re: An error when saving post
« Reply #13 on: October 23, 2015, 01:10:23 pm »
I see where I screwed up. I inserted it on line 85 before:

   echo '
   <div id="boardindex_table">
      <table class="table_list">';

That's why it didn't populate any of the other items. I told you I wasn't a coder....

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
6643 Views
Last post April 02, 2009, 01:24:20 pm
by CLSSY56
1 Replies
3537 Views
Last post January 22, 2015, 10:09:00 am
by SMFHacks
2 Replies
3744 Views
Last post March 25, 2017, 10:15:59 am
by Darkshadow
5 Replies
4906 Views
Last post July 04, 2017, 11:14:07 am
by SMFHacks
7 Replies
2242 Views
Last post January 31, 2021, 03:54:01 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal