andros705
andros705
Offline
I tried customizer on two different themes: 'second' and 'default' but it didn't seem to work on either.
When I do all the changes and want to save the style by clicking on the 'Save Customizer Editing' I am getting '500' error, when I reload the page I can see this error on the top 'Notice: Undefined index: HTTP_REFERER in admin/controller/appearance/customizer.php on line 88' and when I click 'X' to exit the customizer I am getting logged off and redirected to the admin login page.

I am already checked all the file permissions and all of them are set to 777 so

How to fix it?
In Themes
Tuesday, August 09 2016, 04:30 PM
Share this post:

Accepted Answer

Thursday, December 29 2016, 10:42 AM - #Permalink
This issue solved Arastta 1.5.0 => View
The reply is currently minimized Show
Responses (8)
  • Accepted Answer

    andros705
    andros705
    Offline
    Tuesday, August 09 2016, 04:33 PM - #Permalink
    Oh
    Am serving the webpage on Arch Linux with:
    apache 2.4.23-1
    php-apache 7.0.9-1
    php 7.0.9-1
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 09 2016, 05:07 PM - #Permalink
    If you need to use chmod 777 your server sucks, and you need to move to better hosting anyway.

    Anyhow, the Customizer do indeed work with PHP 7 and default templates (just tested it), so it must be you hosting blocking. Ask the admin to check the logs for Suhosin/ModSecurity (if activated) etc.

    Also, if you use the custom fields, ensure there is nothing wrong in the data (try to remove).
    The reply is currently minimized Show
  • Accepted Answer

    andros705
    andros705
    Offline
    Tuesday, August 09 2016, 05:14 PM - #Permalink
    Well, sorry I didn't said it before but I don't use any hosting, I am hosting website on my own computer.
    It is almost clean Arastta installation, I have only installed Polish language on it but with English set to default it also don't work.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 09 2016, 05:23 PM - #Permalink
    So, in case you are not good at being server admin I recommend getting a proper server account online.
    In any case, you need to check the error logs etc., and adjust the server settings if needed.
    The reply is currently minimized Show
  • Accepted Answer

    andros705
    andros705
    Offline
    Tuesday, August 09 2016, 05:58 PM - #Permalink
    In contrast OpenCart is working perfectly.
    And my error logs are only full of this:
    PHP Notice: Undefined index: HTTP_REFERER in admin/controller/appearance/customizer.php on line 88

    I don't want to be mean but it seems that customizer on Arrasta's also don't seem to work, in fact it don't show any errors but any changes are not being visible either.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 09 2016, 06:16 PM - #Permalink
    Have OpenCart gotten a Customizer, which you've tested on this same setup, since you're referring to it as "equal"? Anything else than the Customizer in Arastta not working on your computer? Else, does the Customizer in t.ex. Wordpress work on your computer?

    Ref http://php.net/manual/en/reserved.variables.server.php
    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.

    But it could probably also be improved in Arastta yes.
                $data['button_back'] = $this->request->server['HTTP_REFERER'];

    But this is a notice for the back button, I don't think that is causing the "500 error" on save.
    The reply is currently minimized Show
  • Accepted Answer

    andros705
    andros705
    Offline
    Tuesday, August 09 2016, 07:29 PM - #Permalink
    Whatever
    I have just managed to fix it.
    That was the problem: 'PHP Fatal error: Uncaught Error: Call to undefined function iconv() in /srv/http/admin/model/appearance/customizer.php:28'
    From some reason I managed to install the Arastta without iconv. On the requirements page I found that "Mbstring / Iconv" so I fought it means, mbstring or iconv but I see now that I need iconv anyway. So anyway thanks for all your help.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 09 2016, 08:24 PM - #Permalink
    I'm happy to hear that looking at the log solved it. :D
    And yes, the iconv requirement should probably be specified then.
    The reply is currently minimized Show
Your Reply