Advertisement:

Author Topic: [SOLVED]Custom fields not showing since i moved hosting ?  (Read 18457 times)

aquadiscount

  • Newbie
  • *
  • Posts: 5
[SOLVED]Custom fields not showing since i moved hosting ?
« on: April 13, 2016, 01:44:58 pm »
Hello,

sorry for poor english, i'am french  ;D

I installed OSCLASS 3.6.1, configured it with custom fiels, all was OK on my first mutualised hosting.

I changed hosting for another server, i copied database, imported it on new server, all is OK but the only problem is that custom fields don't display when a visitor want to publich a new classified.

What is the problem ??? I don't understand. Files are the same, database is the same !

You can see web site here :

Thank you for your help
« Last Edit: April 13, 2016, 04:16:24 pm by aquadiscount »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Custom fields not showing since i moved hosting ?
« Reply #1 on: April 13, 2016, 01:57:33 pm »
Hi,

Is it Bender theme? Check that your bender/item-post.php contains this block:

Code: [Select]
                        if($edit) {
                            ItemForm::plugin_edit_item();
                        } else {
                            ItemForm::plugin_post_item();
                        }

Regards

aquadiscount

  • Newbie
  • *
  • Posts: 5
Re: Custom fields not showing since i moved hosting ?
« Reply #2 on: April 13, 2016, 02:03:18 pm »
Hi,

Is it Bender theme? Check that your bender/item-post.php contains this block:

Code: [Select]
                        if($edit) {
                            ItemForm::plugin_edit_item();
                        } else {
                            ItemForm::plugin_post_item();
                        }

Regards

Hi,

of course i have this code, look my message, all is OK on a server but not on another, files and database are the same !

Thank you

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Custom fields not showing since i moved hosting ?
« Reply #3 on: April 13, 2016, 02:09:29 pm »
Well, the thing is that your Category select lacks the usual event to retrieve plugins and custom fields associated to the selected category via Ajax call. ???

Maybe some corrupted file, better re-upload your theme files.

If no change, enable debug to find out possible issues:

https://doc.osclass.org/Debug_PHP_errors

Regards

aquadiscount

  • Newbie
  • *
  • Posts: 5
Re: Custom fields not showing since i moved hosting ?
« Reply #4 on: April 13, 2016, 03:42:53 pm »
Well, the thing is that your Category select lacks the usual event to retrieve plugins and custom fields associated to the selected category via Ajax call. ???

Maybe some corrupted file, better re-upload your theme files.

If no change, enable debug to find out possible issues:

https://doc.osclass.org/Debug_PHP_errors

Regards

i uploaded files again, the problem is the same.

I cheched ajax requests with firebug, no ajax request call is done when i choose a category :(

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Custom fields not showing since i moved hosting ?
« Reply #5 on: April 13, 2016, 03:56:57 pm »
Provisionally switch to another theme to see if the issue is theme-specific.

Did you enable Debug mode? What's there?

Regards

aquadiscount

  • Newbie
  • *
  • Posts: 5
Re: Custom fields not showing since i moved hosting ?
« Reply #6 on: April 13, 2016, 04:01:17 pm »
Provisionally switch to another theme to see if the issue is theme-specific.

Did you enable Debug mode? What's there?

Regards

no error with debug mode

aquadiscount

  • Newbie
  • *
  • Posts: 5
Re: Custom fields not showing since i moved hosting ?
« Reply #7 on: April 13, 2016, 04:15:45 pm »
Solved !!!

My code on old server was :

<?
 if($edit) {
                            ItemForm::plugin_edit_item();
                        } else {
                            ItemForm::plugin_post_item();
                        }
?>

But on new it needs to be :
<?php
 if($edit) {
                            ItemForm::plugin_edit_item();
                        } else {
                            ItemForm::plugin_post_item();
                        }
?>

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [SOLVED]Custom fields not showing since i moved hosting ?
« Reply #8 on: April 13, 2016, 04:55:51 pm »
Oh, the PHP short tag... It shouldn't ever be used, because depends on server PHP configuration.

Glad you solved it, regards.