Customizing SMF > Modifications and Packages

Highslide 4 SMF

<< < (76/81) > >>

Spuds:

--- Quote from: Iomega0318 on April 23, 2012, 01:10:08 AM ---So just noticed this error, it came from modifying a post which had no images btw..

--- End quote ---
I understand the error and can mask it, but I'd like to be able to replicate first ... please let me know what your settings are in the mods control panel and some details of the post that caused the error (how many messages / pages / images / etc) a link would be good.


--- Quote ---I'm having troubles on my forum.
A few times a day i'm getting this error:
--- End quote ---
Thats an out of memory error, the mod does not even ask for more memory so this is something else with your setup.  You will need to increase your PHP memory limit, check with your host on how to do that and if you can.


--- Quote ---The issue 1 response above has been rectified.
--- End quote ---
Cool


Iomega0318:

--- Quote from: Spuds on May 07, 2012, 04:17:48 PM ---
--- Quote from: Iomega0318 on April 23, 2012, 01:10:08 AM ---So just noticed this error, it came from modifying a post which had no images btw..

--- End quote ---
I understand the error and can mask it, but I'd like to be able to replicate first ... please let me know what your settings are in the mods control panel and some details of the post that caused the error (how many messages / pages / images / etc) a link would be good
--- End quote ---
To be honest not sure what caused the error, it doesn't happen all the time sometimes it even shows the error occurs on the index.php.. The topic in question has 21 posts, 2 pages, 2 images on the first page, and 5 on the second.. but the post I was modifying has no images..
Here are the settings I have set for the mod:



**EDIT**
Ok I was having trouble replicating it but found the post I initially got the error on, you wont be able to see it since it's under a test section and registered users can't even see it.. but here is the code I was playing around with when I got the message if you put it into a post and click preview you should get an error for it..

--- Code: ---Removed
--- End code ---
Was playing around with some index php scripts and trying to add them into an iframe..

**EDIT TWO**
Hmm.. nope it's something in the thread.. tried a fresh topic and got no error.. soooo.. go ahead and register on my forum and I will give you access to the thread causing the error so you can check it.. I have to warn you though the thread is a complete mess :)

**EDIT THREE**
After some further investigation I believe I know why it's tossing an error, I use the Inline Attachments mod and have images that show inline in one of the posts instead of in the attachment area, when I modify any of the messages on that page I get an error showing that topic, however if I modify that message specifically and click preview I get the error for that message ONLY not the topic..
**Confirmed, went to another topic with one post and one image attached but inline and went to modify/preview and got the error, this one is public so here is the link:
http://www.uofreeshards.net/index.php?topic=85.0

Spuds:
Strange indeed ....

I set up my test site with just those two mods, and duplicated the posts you linked to ... no errors :(

I'm guessing that it might have something to do with another mod and/or the custom theme that you are using and where the slideshow tracking code is being called.

You can mask the error by doing this in the hs4smf-Subs.php file in the sources directory:


--- Code: (find) ---function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;

--- End code ---


--- Code: (replace) ---function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;

// this should not happen, but here we find ourselfs
$context['hs4smf_img_count'] = isset($context['hs4smf_img_count']) ? $context['hs4smf_img_count'] : 0;

--- End code ---

FrizzleFried:
Any way possible to prevent this mod from "breaking" SMF Quiz?   With this (awesome) mod installed, SMF Quiz will not call up actual questions... remove the mod and it works fine?!

Thanks!

Iomega0318:

--- Quote from: Spuds on May 10, 2012, 05:26:24 PM ---Strange indeed ....

I set up my test site with just those two mods, and duplicated the posts you linked to ... no errors :(

I'm guessing that it might have something to do with another mod and/or the custom theme that you are using and where the slideshow tracking code is being called.

You can mask the error by doing this in the hs4smf-Subs.php file in the sources directory:


--- Code: (find) ---function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;

--- End code ---


--- Code: (replace) ---function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;

// this should not happen, but here we find ourselfs
$context['hs4smf_img_count'] = isset($context['hs4smf_img_count']) ? $context['hs4smf_img_count'] : 0;

--- End code ---



--- End quote ---
I have a file and an image uploaded to the post, in the post I added this:

--- Code: ---[attach=1]
[attachimg=2]
--- End code ---
Then once posted I modify it and click preview, thats when the error occurs..
I might have to get you my mod because my version shows up as InLine Attachments 1.11, but anyways the fix you provided at least keeps my error log free lol..

**EDIT**
Here is the one I use:
http://custom.simplemachines.org/mods/index.php?mod=2481
and according to him he has made edits since 1.11 to work with your mod... soooooooo.. this was all my fault for not updating it even though it was supposed to notify me on updates LOL.. so I updated my mod but left your fix in so haven't tested it yet..

**EDIT TWO**
Ok removed your fix and tried the same way to replicate the error and got nothing.. so your mod works flawlessly now with the ILA update! Woot! Sorry for all the hassle I put you through lol but thank you so much for your help!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version