Get these errors after a clean install on D7.12:

Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Notice: Undefined index: links in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php).
Warning: array_values() expects parameter 1 to be array, null given in mothership_preprocess() (line 385 of /sites/all/themes/mothership/mothership/template.php
Notice: Undefined variable: rdf_header in include() (line 1 of /sites/all/themes/mothership/mothership/templates/html.tpl.php).
Notice: Undefined variable: rdf_profile in include() (line 7 of/sites/all/themes/mothership/mothership/templates/html.tpl.php).
CommentFileSizeAuthor
#5 undefined-index-links-1451864-5.patch447 bytesbbujisic

Comments

derPaolo’s picture

over here it's just the last two lines (the rdf errors)
using 7.12 as well

bruitism’s picture

Same here on a fresh install.

msmithcti’s picture

I can also confirm that I'm getting the last two RDF errors on every page load.

msmithcti’s picture

I've made a separate issue for the RDF errors #1471562: RDF Errors and posted a patch to fix them.

bbujisic’s picture

Status: Active » Needs review
StatusFileSize
new447 bytes

This patch should help with undefined links in mothership_preprocess()

mortendk’s picture

Status: Needs review » Fixed

fixed up & are gonna be the in the 7.x-2.4

Status: Fixed » Closed (fixed)

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