I'm getting this error when I visit admin/content/node:

Warning: Invalid argument supplied for foreach() in smart_paging_url_outbound_alter() (line 507 of /sites/all/modules/contrib/smart_paging/smart_paging.module).
CommentFileSizeAuthor
#1 smart_paging-n1302834.patch1.04 KBdamienmckenna

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

Here's a quick patch to do a quick check before doing the foreach() loop.

rickvug’s picture

Status: Needs review » Reviewed & tested by the community

Also having the same problem. Patch applies cleanly, fixes the problem and makes sense. RTBC.

arpeggio’s picture

Status: Reviewed & tested by the community » Fixed

The patch is already included in #1309516: Extended path aliases compatability which is already committed/pushed. Thanks.

Status: Fixed » Closed (fixed)

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

joshua2046’s picture

after install Smart Paging module
My website report this!

Warning: Invalid argument supplied for foreach() 在 smart_paging_url_outbound_alter() (行 507 在D:\wwwroot\joshua2046\wwwroot\sites\all\modules\smart_paging\smart_paging.module).
Warning: Invalid argument supplied for foreach() 在 smart_paging_url_outbound_alter() (行 507 在D:\wwwroot\joshua2046\wwwroot\sites\all\modules\smart_paging\smart_paging.module).
Warning: Invalid argument supplied for foreach() 在 smart_paging_url_outbound_alter() (行 507 在D:\wwwroot\joshua2046\wwwroot\sites\all\modules\smart_paging\smart_paging.module).

rumcious’s picture

I'm guessing a recent update to Drupal core is causing issues with the smart paging module? I've just started to get this same error on a recent install (7.12 at time of writing +current 'live' version of smart_paging);

Warning: Invalid argument supplied for foreach() in smart_paging_url_outbound_alter() (line 507 of /[path]/[to]/[drupal]/[module]/smart_paging/smart_paging.module)

rumcious’s picture

Status: Closed (fixed) » Needs review

Looking into this error a little bit... the number off lines the error spits out is concurrent with the number of pages available through pagination. Any movement on this or should a new topic be posted? Content does appear to paginate where indicated (not noticed any errors - there was originally due to misconfiguration, but that was sorted out once the correct parameters were set).

valderama’s picture

Status: Needs review » Reviewed & tested by the community

I also get this warning, in version 1.3 -- I guess it is only fixed in the dev version.

Would be great if you could be provide a new release which includes this fix.

Thanks

ivars211’s picture

The same error for me :(

t-readyroc’s picture

Seeing the same error here as well.

hollyh’s picture

any fixes?

arpeggio’s picture

Status: Reviewed & tested by the community » Fixed

Hi, I have created a 1.4 version and this fix is already included. Thanks.

Status: Fixed » Closed (fixed)

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