Closed (fixed)
Project:
Text Size
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2011 at 08:10 UTC
Updated:
1 Nov 2015 at 15:09 UTC
Jump to comment: Most recent
I'm getting occasional errors while textsize is installed. They don't appear on every page reload and they are not associated with me having just pressed one of the textsize buttons. Here are the errors:
Notice: Undefined index: textsize in textsize_check() (line 159 of...modules/textsize/textsize.module).
Notice: Undefined index: textsize in textsize_check() (line 160 of ...modules/textsize/textsize.module).
Notice: Undefined index: textsize in textsize_set() (line 234 of ...modules/textsize/includes/textsize.block.inc).
Notice: Undefined index: textsize in textsize_set() (line 236 of...modules/textsize/includes/textsize.block.inc).
If you need to me to do any further diagnostics, please let me know.
Comments
Comment #1
CZ commentedHi Matthew.
- Have you change the default settings?
- Chache cleared?
Comment #2
mshepherd commentedHi Christian,
Yes, I have changed the default settings, and I have cleared the cache since, but maybe not immediately after.
I'll try and get this to reproduce in a reliable way.
Thanks for your support by the way :)
Matthew
Comment #3
mshepherd commentedI've not been able to reproduce this since. It did happen a few times.
Anyway, I'll close this & reopen if it starts happening again.
Thanks,
Matthew
Comment #4
andyl29 commentedI am receiving lots of undefined index errors as well and think these may be related to this thread. The module appears to have completely stopped working for me (it was working and I havn't changed the configuration).
Notice: Undefined index: textsize in textsize_decrease() (line 129 of ... /modules/textsize/includes/textsize.block.inc).
Notice: Undefined index: textsize in textsize_increase() (line 68 of ... /modules/textsize/includes/textsize.block.inc).
Drupal version 7.4 if that helps.
Comment #5
mshepherd commentedFirst of all, I'd repeat Christian's comment from above:
- Have you change the default settings?
- Chache cleared?
After that, I'd suggest that you try out the much more recent dev version of the module. If you're using 7.x-1.0, it's about 10 months old.
Comment #6
andyl29 commentedAh! It was a cookie issue. I changed my domain and forgot to update the cookie domain in the text resize advanced configuration.
And yeah, I probably should update the module, but prefer to stick with the recommended release since it is working now.
Thanks for the quick response!
Comment #7
bcobin commentedI'm still getting the following error in the logs:
Notice: Undefined index: textsize in textsize_increase() (line 68 of /home/[site]/public_html/sites/all/modules/textsize/includes/textsize.block.inc).
I see this has to do with cookies - is it possible that somebody who tested the site prior to deployment (when it was either in the sandbox or on IP prior to DNS change) is causing these? It's repeated quite a few times. I also notice that the error is called from http://xx.xx.xxx.xxx/textsize/increase?destination=node/84%3Fsplash%3D - in other words, the IP rather than the domain.
Didn't want to be rude and reopen, but I don't think this is fixed yet... thanks!
Comment #9
myron_s commentedSame here. Log file is full of these "Notice: Undefined index: textsize in textsize_increase() (line 68 of /content/sites/r/e/respectforall.org.uk/web/counselling/sites/all/modules/textsize/includes/textsize.block.inc)." errors.
Cleared cache several times, more than double checked the settings. I am at an absolute loss.
Will try development release.
Comment #10
bcobin commentedI'm getting the same thing - any ideas? Thanks!
Comment #11
bcobin commentedI tried the development release and js doesn't work at all - it works with PHP only, forcing a reload of the page. So I've fallen back to 1.0 and I guess I'll have to deal with the multiple error messages in the log until there's a solution...
Comment #12
izmeez commentedUsing the 7.x-1.x-dev version and only encountered this once. I think it was when the advanced settings normal text size was changed the first time from 76%. On saving the changes two notices: