Registration User form uncontrolled after update

  • Posts: 22
  • Thank you received: 0
10 years 3 days ago #213246

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 2.5.28
-- Error-message(debug-mod must be tuned on) -- : xml-rpc error (404) unknown error

Good morning, I upgraded to hikashop no errors. Since that time, however, it did not check the syntax of the username field more during recording, for example if in the 'username is an empty space. Saves to joomla but then buy from error and white page with "xml-rpc error (404) unknown error".
why? how can I solve and apply this control?

Please Log in or Create an account to join the conversation.

  • Posts: 84293
  • Thank you received: 13693
  • MODERATOR
10 years 3 days ago #213249

Hi,

Please try to add the code:

if(!empty($this->registerData->username)){
			$safeHtmlFilter = JFilterInput::getInstance(null, null, 1, 1);
			$this->registerData->username = $safeHtmlFilter->clean($this->registerData->username,'USERNAME');
		}
before the code:
if($simplified == 0 || $simplified ==3){
in the file administrator/components/com_hikashop/classes/user.php
That should take the filtering of the username of Joomla into account on the registration form of HikaShop.

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
10 years 2 days ago #213332

Nicolas Hello, thanks for the help but the problem remains :( .. I edited the file by adding the code but the control does not happen, not me error in the username field, but shows "xml-rpc error (404) unknown error" on page white.By the Joomla I find the username created but not active.
My joomla is connected by Joomdle to Moodle and before the upgrade did not create problems

Please Log in or Create an account to join the conversation.

  • Posts: 84293
  • Thank you received: 13693
  • MODERATOR
10 years 2 days ago #213333

Hi,

Well, my code modification is to properly filter the username. Not to fix that xml-rpc error.
HikaShop doesn't use xml-rpc.
It seems to come from moodle, not HikaShop.
The best would thus be to contact them.
Here is a thread about that error message and a potential solution:
stackoverflow.com/questions/18497903/joo...la-xml-rpc-error-404

The following user(s) said Thank You: cfi

Please Log in or Create an account to join the conversation.

Time to create page: 0.036 seconds
Powered by Kunena Forum