Elxis CMS Forum

Support => Technical support => Topic started by: cdesp on July 28, 2008, 12:54:44

Title: Problem Submiting content from Frontend
Post by: cdesp on July 28, 2008, 12:54:44
Hi i just moved my ste to a hosting server from my WinXp pc and i have this problem only on hosting pc.
After i save the content the following error occurs :

PHP: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object
uri: index.php
path: /components/com_content/content.php
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): /home/newbrain/public_html/includes/Core/utf8.class.php, line 472

Also a popup message saying that the seo title should be set.

I already checked the includes/utf8db dir and the seo .class.php file they are ok.
Permissions are 644 for the files and 755 for the dir.

Please advise.

Chris

Title: Re: Problem Submiting content from Frontend
Post by: datahell on July 28, 2008, 14:39:52
Please check if the SEO title is empty, all SEO title should be filled in otherwise you will have fatal errors. Did you upgraded an Elxis 2006.x site to 2008.x?
Title: Re: Problem Submiting content from Frontend
Post by: cdesp on July 28, 2008, 22:41:30
As i said the problem is when i submit content from the frontend and only on my hosting server not on my pc.
From the frontend you don't specify SEO title it is completed automatically from the suggest function.

I did not upgrade it's a clean installation of elxis 2008.
Title: Re: Problem Submiting content from Frontend
Post by: cdesp on July 28, 2008, 23:37:37
I now enable SEO PRO and the error message is gone.

Now a full line of question marks (?) apears on top of the screen and the message popup "seo title cannot be empty".

Title: Re: Problem Submiting content from Frontend
Post by: Ivan Trebješanin on July 28, 2008, 23:42:14
Hi,

Is your Elxis installed in a subdirectory?
Title: Re: Problem Submiting content from Frontend
Post by: cdesp on July 28, 2008, 23:53:56
It's installed on

/public_html/

No subdir.
Title: Re: Problem Submiting content from Frontend
Post by: Ivan Trebješanin on July 29, 2008, 00:31:46
Have you setup your .htaccess properly?
Or, do you have any other problem beside suggested tile?
Title: Re: Problem Submiting content from Frontend
Post by: datahell on July 29, 2008, 00:47:02
Do you write a proper title and submitting content in an allowed category? The SEO title suggestion feature will return an empty seo title it the normal title is wrong and/or the category has not been set.
Title: Re: Problem Submiting content from Frontend
Post by: cdesp on July 29, 2008, 01:32:24
About htaccess the only thing i changed was the

RewriteBase /

As i said in my localhost server it works ok. (same category title etc)

I also have the seo patch installed but nothing solved by that.

The title i used (among others) is 'testing' in the 'newsflashes' section/category,  ALL languages, and public frontend.

But i am sure the problem occurs always no matter what i want to submit.

I would try to debug it but i am over PSTN line so Online debugging is a little bit difficult for me.
Title: Re: Problem Submiting content from Frontend
Post by: cdesp on July 30, 2008, 13:34:41
Problem Solved!!!!

I did some debugging and the problem was on function utf8_to_ascii in file utf8.class.php.

Line 464
 if ( !include($bankfile) ) { continue; }
after the execution of this line on the output i saw a line full of question marks
??????????????????????????????????????????????????????????????????????????????????????????????????

now that only happen to the hosting server in my server worked ok.

at that line it loaded file x00.php from utf8db

that file was missing " ?> " at the end

i just added that and works ok.

Probably i should add this to all files in utf8db.

Can Someone explain this?

Title: Re: Problem Submiting content from Frontend
Post by: datahell on July 30, 2008, 14:29:13
You are right! The x00.php file needs a "?>" at the end. Thanks for the debug!!

Attention: when editing this file make sure you dont destroy the file's encoding.
Title: Re: Problem Submiting content from Frontend
Post by: elpvn on August 09, 2008, 09:53:35
I got same issues, when I try to 'summit content' from user menu at frontpage: The SEO section does not appear here. So I guest that should add to all of *.php files in utf8db directory now to fix it, is it right?
Thanks.
Title: Re: Problem Submiting content from Frontend
Post by: jorgebravoc on February 09, 2011, 08:14:48
You are right! The x00.php file needs a "?>" at the end. Thanks for the debug!!    This answer is fundamental, but you actually need to add the     ?>   on every single file inside the Folder utf8db

Dreamwevaer has a real nice Find/Replace feature that can find a tag and replace every single tag in an antire folder.

I used that, if you know other methods great! otherwise you are going to have to add the ?> at the end of about more than 150 files. Good luck :D