Elxis CMS Forum

Extensions => Components => Topic started by: speck on February 27, 2008, 20:58:05

Title: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 3736
Post by: speck on February 27, 2008, 20:58:05
error in elxis 2008 in administator section exactely in:

components--->links--->weblinks--->new

PHP: Invalid argument supplied for foreach()
uri: index2.php
path: /administrator/components/com_weblinks/admin.weblinks.php
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): D:\www_progea2008\includes\Core\elxis.php, line 3736

how can resolve this?  ???

Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: Ivan Trebješanin on February 27, 2008, 21:05:39
Hi speck,
Please check your images/screenshots folder. Does it exist?
And please tell us your PHP version.
Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: speck on February 27, 2008, 21:24:50
thanks a lot....resolved... ;D

ps. in these days i modifiied some components because the images doesn't work well in firefox. the incriminy is hspace=6px. i resolved deleted it and substitute this with css. for me is work fine
how can send it to you for testing ???

i found a big bug...com_weblink doesn't works in SEO PRO  >:(

PHP version 4.4.4
Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: datahell on February 28, 2008, 12:43:02
Component Weblinks works fine with SEO PRO. Check it by your self:
http://www.elxis-demo.com/links/elxis/ (http://www.elxis-demo.com/links/elxis/)

Check (with Updiag) if you miss some Elxis files
Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: speck on February 28, 2008, 13:33:57
no missing file.
the problem is in the link. with SEO Pro don't works but in SEO Basivc works

for workin i need modify now the file
includes/seopro/com_weblinks.php

the line 63:
return $mosConfig_live_site.'/links/'.$seotitle.'.html';

in

return $mosConfig_live_site.'/links/'.$seotitle;
Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: datahell on February 28, 2008, 18:50:43
You are right!
includes/seopro/com_weblinks.php line 63

replace this:
return $mosConfig_live_site.'/links/'.$seotitle.'.html';

to this:

return $mosConfig_live_site.'/links/'.$seotitle.'/';

Normally the problem is not shown as component weblinks is optimized for SEO pro and this function is not used. How did you found this? From an other component?
Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: speck on February 28, 2008, 20:51:03
i found because i use web link for for a site.

on error i tried to delete ".html" from the link in the ie bar and seeing that it worked so i try to find it.  ;)

it's a pitty that i don't know php .... i eat asp  ;D

uhm...and now i want to try to optimize for seo docman extension...
but i don't know from where to start....maybe seeing how is made a code in some seo extension.. ;)

don't worry...i'm very bastard with softwares  ;D and for me elxis is better than other OS... the extensions worked very well....no errors

uhm about EDIR....the old vewrsion i need to buy to extensions that i never bought before but now  maybe i'll must use ... where i can buy them???
Title: Re: Invalid argument supplied for foreach() in includes\Core\elxis.php, line 373
Post by: datahell on February 28, 2008, 21:57:02
It is time to start programming in a more free and open language, and that's PHP!

Regarding SEO PRO extensions, read this:
SEO PRO extensions - developers guide (https://forum.elxis.org/index.php?topic=1378.0)