Database is not writable

kissarmy

Avatar: kissarmy

2018-07-26 10:44

Hi,
I migrate Quick.Cms 6.4 to new webhosting and I have problem with administration. I can not save any data in admin.php. I see all pages and text there, but save new or update not work. Amin panel after save jump to admin panel and not save any data. Database is writable from phpliteadmin.php and there is work good. Can you help me with it? I try Quick.Cms 6.5 and it is doesn't work too.

» Quick.Cms v6.x

treewood (OpenSolution)

Avatar: treewood

2018-07-31 09:01

Edit templates/admin/pages-form.php and change:
$iPage = $oPage->savePage( $_POST );
to:
$iPage = $oPage->savePage( $_POST ); exit;

After log to admin panel and edit subpage. Click "save" button and check if there are any errors.

kissarmy

Avatar: kissarmy

2018-08-13 10:57

I try it, but it is not work.

treewood (OpenSolution)

Avatar: treewood

2018-08-13 12:24

Do you see any errors?

kissarmy

Avatar: kissarmy

2018-08-13 13:15

Any errors. After click to save button is page return to home page of administration.

treewood (OpenSolution)

Avatar: treewood

2018-08-13 15:09

Do you have same problem with saving configuration or saving position from pages list (click "save" button in pages list in admin panel)?

kissarmy

Avatar: kissarmy

2018-08-13 15:27

Yes, I have the same problem too.

treewood (OpenSolution)

Avatar: treewood

2018-08-14 08:33

Perhaps you have problem with global variables on your server: $_SERVER['HTTP_REFERER'] and $_SERVER['SCRIPT_NAME']

Edit admin.php and find code:
if( ( !empty( $_SERVER['HTTP_REFERER'] ) && !strstr( $_SERVER['HTTP_REFERER']
change it to:
if( false && ( !empty( $_SERVER['HTTP_REFERER'] ) && !strstr( $_SERVER['HTTP_REFERER']

It should help

kissarmy

Avatar: kissarmy

2018-08-14 09:12

It is working! Thank you very much.

Back to top
about us | contact