Reports > recent log messages generates the following error messages. I'm running:

content analysis beta5
content optimizer beta4
keyword analysis beta3
readability rc2, alchemy beta1
alchemy content analyzer beta1
keyword research alpha3
wordstream beta1
seo tools alpha4

Dependicies for seo tools - redirect beta4, strongarm beta5, insight alpha2

Notice: Undefined index: admin form submit callback in contentanalysis_analyze_js() (line 527 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Notice: Undefined index: kwresearch_adult_filter in kwresearch_analyze_js() (line 860 of C:\wamp\www\websites\development\sandbox\sites\all\modules\kwresearch\kwresearch.module).

Notice: Undefined index: messages in theme_contentanalysis_analysis() (line 1225 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Notice: Undefined variable: resultstr in alchemy_get_elements() (line 107 of C:\wamp\www\websites\development\sandbox\sites\all\modules\alchemy\alchemy.module).

Notice: Undefined index: #score in contentanalysis_save_status() (line 569 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Notice: Undefined index: #score in contentanalysis_save_status() (line 559 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Notice: Undefined index: admin form submit callback in contentanalysis_analyze_js() (line 527 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Deprecated function: Function split() is deprecated in autokeyword->parse_3words() (line 206 of C:\wamp\www\websites\development\sandbox\sites\all\libraries\autokeyword\class.autokeyword.php).

Deprecated function: Function split() is deprecated in autokeyword->parse_2words() (line 176 of C:\wamp\www\websites\development\sandbox\sites\all\libraries\autokeyword\class.autokeyword.php).

Deprecated function: Function split() is deprecated in autokeyword->parse_words() (line 145 of C:\wamp\www\websites\development\sandbox\sites\all\libraries\autokeyword\class.autokeyword.php).

Notice: Undefined index: inputs in kwresearch_stats_report_form() (line 98 of C:\wamp\www\websites\development\sandbox\sites\all\modules\kwresearch\includes\stats_report.inc).

Many thanks for all your hard work Tom :)

Comments

kingfisher64’s picture

Issue summary: View changes

Extra information

kingfisher64’s picture

Has any progress been made to get rid of the above errors? I ask as i'd like to use the mods listed above in my projects - but can't until the errors are fixed.

Many thanks

mgifford’s picture

This is tied to the version of PHP. Generally not a big deal. Should be just a matter of using http://www.php.net/manual/en/function.preg-split.php

kingfisher64’s picture

I'm using php version 5.3.4 - how do i install preg_split?

Many thanks MGifford

mgifford’s picture

It's installed with your version of PHP. You just have to change your code & essentially swap out split() with preg_split(). Maybe this is more helpful to guide you to update the code for the content analysis module - http://tgrove.com/2010/06/01/php-5-3-deprecated-split-function-means-tim...

kingfisher64’s picture

Many thanks for taking the time to respond mgifford - it is appreciated - i'll get a later version of php.

kingfisher64’s picture

Right the php split issue is fixed. This appeared for me by having php version 5.3.4. I upgraded to latest which at time of writing this is 5.3.9 and they are fixed.

The error log is outputting:

Notice: Undefined index: messages in theme_contentanalysis_analysis() (line 1225 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Notice: Undefined index: #score in contentanalysis_save_status() (line 569 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).

Notice: Undefined index: #score in contentanalysis_save_status() (line 559 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module). - x3 errors

Notice: Undefined index: admin form submit callback in contentanalysis_analyze_js() (line 527 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module). - x4 error notices

Notice: Undefined index: inputs in kwresearch_stats_report_form() (line 98 of C:\wamp\www\websites\development\sandbox\sites\all\modules\kwresearch\includes\stats_report.inc).

Notice: Undefined variable: resultstr in alchemy_get_elements() (line 107 of C:\wamp\www\websites\development\sandbox\sites\all\modules\alchemy\alchemy.module). - x3 times

Is there been any progress made with fixing these error messages? I'm really wanting to use the mods in a default profile install. Thanks

steveb_uk’s picture

Getting the same errors (minus the 'Function split() is deprecated' errors).

Drupal: 7.12
PHP: 5.3.5
Wysiwyg: 7.x-2.1
TinyMCE: 3.4.8
Content Analysis: 7.x-1.0-beta4 (was about to upgrade to latest version when I came across this issue)

mgifford’s picture

@kingfisher64 - would be good to have a preg_split patch for this module so this can be fixed in the future. Do you have one to toss up for review?

kingfisher64’s picture

Sorry I don't have a preg_split patch - I installed a later version of php and the error no longer comes up.

kingfisher64’s picture

Is there any chance of a new version with these fixes Tom? I'd really like to use the suite in all my sites - however I can't until those errors are fixed. :)

Many thanks

kingfisher64’s picture

Well the messages in #6 are still displaying over 2 and a half months later there's been no sign of any fixes. It would be nice to have a brief response regarding the status of the mod.

b-prod’s picture

Version: 7.x-1.0-beta5 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new48.25 KB

The patch below:

  • fixes some of the issues above
  • removes trailing spaces

Let me know if there are still some "undefined variables" errors so I could extend the patch.

b-prod’s picture

kyletaylored’s picture

Status: Needs review » Patch (to be ported)

I believe a lot of these fixes will be addressed along with the patch listed in #1532734: Finish Running Through Coder.

Kevin Rogers’s picture

I looked at a few of these undefined index warnings and couldn't see them addresses in #1532734.

I'm running a Drupal site on a server that has error_reporting set to E_ALL, so these notices are cluttering up my log - it would be great to get this patch applied.

Kevin Rogers’s picture

I looked at a few of these undefined index warnings and couldn't see them addresses in #1532734.

I'm running a Drupal site on a server that has error_reporting set to E_ALL, so these notices are cluttering up my log - it would be great to get this patch applied.

Kevin Rogers’s picture

StatusFileSize
new1.71 KB

Here's a version of the patch in #1416408-13 with the whitespace changes removed, so it just includes the fixes for the undefined index warnings.

Kevin Rogers’s picture

Issue summary: View changes

better formatting

JulienThomas’s picture

Regarding kwreasearch, an empty() check remove the warning
sites/all/modules/kwresearch/includes/stats_report.inc

- '#default_value' => ($analysis && $analysis['inputs']['keyword']) ? $analysis['inputs']['keyword'] : '',
+  '#default_value' => ($analysis && !empty($analysis['inputs']['keyword'])) ? $analysis['inputs']['keyword'] :

kyletaylored’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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