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

CZ’s picture

Hi Matthew.
- Have you change the default settings?
- Chache cleared?

mshepherd’s picture

Hi 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

mshepherd’s picture

Status: Active » Closed (cannot reproduce)

I'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

andyl29’s picture

Version: 7.x-1.x-dev » 7.x-1.0

I 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.

mshepherd’s picture

First 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.

andyl29’s picture

Ah! 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!

bcobin’s picture

Status: Closed (cannot reproduce) » Fixed

I'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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

myron_s’s picture

Same 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.

bcobin’s picture

Issue summary: View changes

I'm getting the same thing - any ideas? Thanks!

bcobin’s picture

I 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...

izmeez’s picture

Using 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:

Notice: Undefined index: textsize in textsize_set() (line 239 of .../textsize/includes/textsize.block.inc)
Notice: Undefined index: textsize in textsize_set() (line 241 of .../textsize/includes/textsize.block.inc)