Support Forum
I'm getting the following errors above some of my forum threads:
Undefined offset: 1 in webcomicunderdogs.com/wp-content/plugins/simple-press/sp-api/sp-api-filters.php on line 1749
Here's what's on line 1749:
return '<img src="'.$src[1].'"'.$display_width.$display_height.' title="'.$title[1].'" alt="'.$alt[1].'" />';
Any ideas why this notice is cropping up? Thanks!
its not an error... its a notice (harmless)... and you really shouldnt be displaying notices, warnings or errors on a production site... you should turn them off in php...
that said, not sure what the issue is... is the image in the post valid html?
Visit Cruise Talk Central and Mr Papa's World
It is set in your php.ini file. If you are in control of the php.ini file the easiest thing to do is open it, search for, say, E_NOTICE, and then read the comments in the error reporting section and change the settings to suit. It will usually have good examples of what to set for a production, live site v what to set for development, private use.
As you the notice you are getting, are any of the images missing or messed up?
YELLOW
SWORDFISH
|
I looked through the threads in question, and can't locate any missing or messed up files. But, perhaps I don't know what to look for. Here's one of the image-heavy threads: http://www.webcomicunderdogs.c.....work-space
my guess is its this post: http://www.webcomicunderdogs.c.....ace/#p4112
two warnings and that has two images.. plus its form a tinypic site, so it might be returning/blocking requests for the file image size... might be a cdn or cache of some sorts... and oddly the images have a link to the same image... kind of confusing...
biggest problem is the notice message isnt helpful... as you can see in the code, several items have an index of 1 referenced.. we can see about adding some special guards, but that info should really be there...
and you should block those notice, warning and error displays on your production site... its done in your php.ini file...
Visit Cruise Talk Central and Mr Papa's World
check with your host - they will know... do you not have some sort of control panel, like cpanel?
also in your wp-config.php, try adding these settings:
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
Visit Cruise Talk Central and Mr Papa's World
I was told by a developer:
error_reporting(0);
1 Guest(s)