Author Topic: SOBISef tasks issues  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Offline metalball

SOBISef tasks issues
« on: 06. June 2010, 16:51:44 »
hey all,

i'm having some issues using SOBISef. when the plugin on, the tasks won't work.
it seems that the real URL pointing to the right command, but the SEF URL gets me to the wrong task.

example:
Internal      index.php?option=com_sobi2&sobi2Task=addNew&Itemid=0
External    /add-new.html

when clicked on the Add-New task, gets me to the SOBI component page.

same thing with search task.

i've checked the errorlog, and found an error there which i couldn't find any solution for:

2010-06-06 15:50:07:     
::1     http://localhost/demo/index.php?sobi2Task=addNew&option=com_sobi2&Itemid=& 
   http://localhos ... 
   Mozilla/5.0 (Wi ...     
Invalid argument supplied for foreach() (Error number:2) in file: C:\xampp\htdocs\demo\components\com_sobi2\plugins\sobisef\sobisef.class.php at the line: 278.


any ideas?
Country: Israel Israel |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.5.9 Firefox 3.5.9 | View Profile

Offline aboututila

Re: SOBISef tasks issues
« Reply #1 on: 07. June 2010, 17:52:42 »
metalball,
It would be helpful if you could provide some information about your configuration.
What versions of;
Joomla!
SOBI2
SobiSEF plugin
Are you using any other Joomla! SEF Components or Joomla! Components/Plugins that modify SOBI2 URL's (such as Joom!fish)?
Please attach your SOBI2 System Check logfile
Joomla! Administrator->Components->SOBI2->About System->Perform System Check->Download System Check Log File

The problem you report is sometimes caused by your Joomla! Menu Items configuration not conforming to SobiSEF Plugin Configuration Essentials. Does your configuration conform to SobiSEF Plugin Configuration Essentials?

Regards - Mark
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline metalball

Re: SOBISef tasks issues
« Reply #2 on: 07. June 2010, 19:08:55 »
sorry, i assumed that the info was irrelevant because checked all possible troubleshooting earlier.

anyway, Joomla 1.5.15, running on XAMPP
latest SOBI2 RC 2.9.2.4
latest SobiSEF RC 1.7

no additional components installed, just fresh joomla installation and SOBI component.

there is a menu link to SOBI frontpage, and set it to default.

the error i gave u is a copy from the errorlog, but i'll add it (the error repeats itself):
Quote
2010-06-06 12:42:11:
    IP: ::1
    Requestet URI: /index.php?Itemid=2&option=com_sobi2&sobi2Task=showNew&
    Refferer: http://localhost/demo/
    Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 ( .NET CLR 3.5.30729)
    Error: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array (Error number:2) in file: C:\xampp\htdocs\demo\components\com_sobi2\plugins\sobisef\sobisef.class.php at the line: 394.
---------------------------------------------------------
2010-06-06 12:42:11:
    IP: ::1
    Requestet URI: /index.php?Itemid=2&option=com_sobi2&sobi2Task=showNew&
    Refferer: http://localhost/demo/
    Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 ( .NET CLR 3.5.30729)
    Error: Invalid argument supplied for foreach() (Error number:2) in file: C:\xampp\htdocs\demo\components\com_sobi2\plugins\sobisef\sobisef.class.php at the line: 278.
---------------------------------------------------------
Country: Israel Israel |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Offline aboututila

Re: SOBISef tasks issues
« Reply #3 on: 07. June 2010, 20:00:27 »
metalball,

sorry, i assumed that the info was irrelevant because checked all possible troubleshooting earlier.
anyway, Joomla 1.5.15, running on XAMPP
latest SOBI2 RC 2.9.2.4
latest SobiSEF RC 1.7
no additional components installed, just fresh joomla installation and SOBI component.
there is a menu link to SOBI frontpage, and set it to default
Thank you, but until you tell me, I have no way of knowing this.
I have also had many users stating "I am using the latest versions", but do not quote which versions.
When I check (and this takes yet more of my time), I discover they are not using the latest versions.

metalball,
It would be helpful if you could provide some information about your configuration.
...
Please attach your SOBI2 System Check logfile
Joomla! Administrator->Components->SOBI2->About System->Perform System Check->Download System Check Log File
...
This file also contains useful information that may assist me in determining the cause of your problem.


Regardless,
your error message;
Code: [Select]
2010-06-06 12:42:11:
IP: ::1
Requestet URI: /index.php?Itemid=2&option=com_sobi2&sobi2Task=showNew&
Refferer: http://localhost/demo/
Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 ( .NET CLR 3.5.30729)
Error: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array (Error number:2) in file: C:\xampp\htdocs\demo\components\com_sobi2\plugins\sobisef\sobisef.class.php at the line: 394.
indicates that the
Requested URI: /index.php?Itemid=2&option=com_sobi2&sobi2Task=showNew&
is incomplete.
As a minimum it should also include an Itemid
For example;
Requested URI: /index.php?Itemid=2&option=com_sobi2&sobi2Task=showNew&Itemid=6
where the value for 'Itemid' corresponds to the Joomla! Menu Item ID that was used to navigate to the 'page' that contains the link to the sobi2Task 'showNew' or the 'page' where the showNew task is to display it's output.

Joomla! 1.5.x has the capability to use different Site Templates for different Joomla! Menu Items.
The Joomla! Menu Item ID is used by Joomla!/SOBI2 to determine which Site Template to use to display the resulting output.

Since the 'showNew' SOBI2 task is not usually displayed by the 'standard/default' SOBI2 configuration,
I suspect your Joomla Menu Items are not conforming to SobiSEF Plugin Configuration Essentials - Item 5 and/or Item 8
That is to say you have either made a Joomla! Menu Item link to the SOBI2 showNew task that is not using the SOBI2 Extended Menu Items ->Latest Entries
or the link to the showNew task has not been made in conformance with SOBI2 Special Task Links

The same probably applies to your Search Task problem.

Do not forget to purge your SobiSEF URL's each time you make a configuration change, including Joomla! Menu Item configuration changes. (Refer SobiSEF Plugin Configuration Essentials - Item 10)

Regards - Mark
« Last Edit: 07. June 2010, 20:13:36 by aboututila »
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Offline metalball

Re: SOBISef tasks issues
« Reply #4 on: 07. June 2010, 20:59:19 »
i guess the thing i missed is that i have to create a menu item for search and add new tasks,
after done that it seems to work, even with menu items unpublished.

 :D
thanx alot!
Country: Israel Israel |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Offline aboututila

Re: SOBISef tasks issues
« Reply #5 on: 07. June 2010, 22:48:45 »
metalball,

I am glad you solved your problem(s).
You should not have to create Joomla Menu Items for search and add new tasks, if you have configured
Joomla! Administrator->Components->SOBI2->Configuration->General Configuration->General->Show Link "Search" = Yes
Joomla! Administrator->Components->SOBI2->Configuration->General Configuration->General->Show Link "Add Entry" = Yes
or
in the SOBI2 Menu Module (mod_sobi2menu), if you have configured
Parameters->Module Parameters->Show Search Link = Yes
Parameters->Module Parameters->Show Add Entry Link = Yes

if neither of these have been configured then SOBI2 does not normally display links to these tasks and therefore the SobiSEF plugin can not build an External/Internal URL pair for them, unless they are configured as Joomla! Menu Items (which is what I presume you have done).

I hope this helps to explain.
Regards - Mark

PS: Yes, I have also noticed that the SobiSEF plugin will build External/Internal URL pairs for unpublished Joomla! Menu Items, but until today I had never updated SobiSEF Plugin Configuration Essentials to confirm this information. I have now made the necessary updates, refer Re: SobiSEF Plugin Configuration Essentials.
Thank you for reminding me.
« Last Edit: 07. June 2010, 22:50:46 by aboututila »
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Offline metalball

Re: SOBISef tasks issues
« Reply #6 on: 08. June 2010, 05:47:23 »
i'm sorry mark, the errors i've got before was despite activated options:
Joomla! Administrator->Components->SOBI2->Configuration->General Configuration->General->Show Link "Search" = Yes
Joomla! Administrator->Components->SOBI2->Configuration->General Configuration->General->Show Link "Add Entry" = Yes

only when created mehu link for each task, the tasks worked.


Country: Israel Israel |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Offline aboututila

Re: SOBISef tasks issues
« Reply #7 on: 08. June 2010, 17:13:08 »
i'm sorry mark, the errors i've got before was despite activated options:
Joomla! Administrator->Components->SOBI2->Configuration->General Configuration->General->Show Link "Search" = Yes
Joomla! Administrator->Components->SOBI2->Configuration->General Configuration->General->Show Link "Add Entry" = Yes
only when created mehu link for each task, the tasks worked.
Hmmmm,
That is unusual.

Regards - Mark
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile

Tags: