Elxis CMS Forum

Support => General => Topic started by: xenios on March 04, 2008, 19:56:39

Title: Fatal error: Call to undefined function: sefsorturl()
Post by: xenios on March 04, 2008, 19:56:39
When making a new autonomous page and going to link it with a menu i get this message:


Fatal error: Call to undefined function: sefsorturl() in /home/ikariagr/public_html/test/administrator/components/com_typedcontent/admin.typedcontent.php on line 616

But the page is linked normal..

[old attachment deleted by admin]
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: nikos65 on March 04, 2008, 22:02:17
I have exactly the same problem.
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: Ivan Trebješanin on March 04, 2008, 22:15:24
Hi,
Is this happening when you install Elxis in the root folder, or only in subfolder installation? With SEOpro only, or in every case?
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: xenios on March 04, 2008, 22:33:11
In my case is installed in a clear subdomain.

I think nikos65 has it in root.

I didn't try to install in root yet.
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: nikos65 on March 04, 2008, 22:41:09
The installation is on the root  and the pro seo is on.
I test it with Seo pro off and happens the same thing.

Also the suggestion title does't work i have to write manual the seo title and then to confirm the seo title.



[old attachment deleted by admin]
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: xenios on March 04, 2008, 22:53:02
niko65, this problem you discribed right now happened to me allso when i tried to upgrade from my old web site.... Is this a clear installation??  Because after that i tried a clear installation everything worked fine...
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: nikos65 on March 04, 2008, 23:17:26
Yes this is a clear installation and i have check all the files from the tool of hashes.

The problem with the suggest seo title comes afterwards but the problem with the autonomous page and the menu connection happens from the very first time.

Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: datahell on March 04, 2008, 23:53:48
This is weird... I will explain you afterwards why.
I am checking it right now, wait...
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: xenios on March 04, 2008, 23:55:34
nikos65 take a look allso here....   https://forum.elxis.org/index.php?topic=1845.0   ;)
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: nikos65 on March 05, 2008, 00:17:43
Datahell comes the same think even i write  manual the seo title and then press to suggest.
The confirmation of the seo title works and approve it.


[old attachment deleted by admin]
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: datahell on March 05, 2008, 00:20:37
The weird thing is that the sefSortURL function is from a previous Elxis DEV version which never published and that function removed from Elxis CMS afterwards! The whole SEO PRO procedure used in this feature, with an extra db table called seo_map never published (Ivan knows this as he had tested that version). Unfortunately we forgot to remove that code from the Elxis 2008.0 release...

Here are 2 solutions till a patch is released

1. Comment deprecated PHP code
Open /administrator/components/com_typedcontent/admin.typedcontent.php
Comment everything from line 616 to line 667:

//generate SEO entry
/*   
$olink = sefSortURL($row->link.'&Itemid='.$row->id);
.....
$database->setQuery("INSERT INTO #__seo_map VALUES(0, '$olink', '$seolink', '$seokey')");
$database->query();
}
*/

Elxis will work fine as it does not use this feature any more. Published SEO PRO works differently than this DEV version. You can even completely delete these lines!

2. Do not add your menu links from this page.
Use the normal way to add link to Autonomous pages from the menu manager and not directly from the autonomous pages edit page.

Sorry for forgetting to remove these lines from the Elxis 2008.0 release.

The "suggest" feature works fine. Check if you have missed to upload any files in component typed content (com_typedcontent)
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: nikos65 on March 05, 2008, 00:53:24
I have delete the lines from the file and also check for the folder for the others files but still i have the same problem with suggest feature.
The strange is that it works before and i m sure i didn't chance anything.

If you want datahell you can login you must  have from previous pm the login name & psw .
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: datahell on March 05, 2008, 07:48:57
I never keep login info for (your) security reasons. Can you re-send them?
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: xenios on March 05, 2008, 07:57:14
i've done as datahell said and everything worked fine!
Title: Re: Fatal error: Call to undefined function: sefsorturl()
Post by: xenios on March 11, 2008, 13:43:19
Unfortunately.... The problem came again suddenly!!!  I check again everything we said before, but i still have a undefined message wile checking the title for seo pro.....

What should i do?