Advertisement:

Author Topic: Fails to show page after saving changes on theme and plugin  (Read 383 times)

matrixpng

  • Newbie
  • *
  • Posts: 17
Fails to show page after saving changes on theme and plugin
« on: February 26, 2019, 07:25:20 am »
Everytime am doing changes to them or plugin settings and when I click save, the page does not refresh. It would normaly say "you have saved your changes successfully" or something like that. But it does not do that. It is rather displaying blank white page. So I have to press back button all the time to refresh the page which shows the changes have actually happened. The same is happening at Admin CP as well as at user level too. Whenever user updates changes to profile data for both user and company, it does not refresh automatically to show saved changes but shows blank white page.

Can someone help solve this?

Thanks
Mat

Aficionado

  • Guest
Re: Fails to show page after saving changes on theme and plugin
« Reply #1 on: February 26, 2019, 07:38:10 am »
Enable Osclass debug to a LOG and check. White pages are mostly Fatal PHP Errors.


matrixpng

  • Newbie
  • *
  • Posts: 17
Re: Fails to show page after saving changes on theme and plugin
« Reply #2 on: February 27, 2019, 06:26:00 am »
This is an extract of the log. The last 2 errors keep on repeating. The first error remains as just one line. What would be the solution here? Newbie so not really sure...


[26-Feb-2019 15:37:21 Pacific/Port_Moresby] PHP Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/matrix/xxxx.com/oc-includes/osclass/utils.php:1744) in /hsphere/local/home/matrix/xxxx.com/oc-includes/osclass/utils.php on line 1749

[26-Feb-2019 16:17:11 Pacific/Port_Moresby] PHP Notice: Undefined index: s_name in /hsphere/local/home/matrix/xxxx.com/oc-content/plugins/custom_field_enhancer/functions.php on line 834

[26-Feb-2019 16:17:11 Pacific/Port_Moresby] PHP Notice: Undefined index: default_text in /hsphere/local/home/matrix/xxxx.com/oc-content/plugins/custom_field_enhancer/functions.php on line 835

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Fails to show page after saving changes on theme and plugin
« Reply #3 on: February 27, 2019, 11:15:12 am »
That warning 'PHP Warning: Cannot modify header information' is causing white page. Good news is that your forms are posted and changes saved, but later html drawing fails for some reason. You need to at least identify why / what's causing it. Disable all plugins and try again. Then, gradually, one-by-by enable them back until it happens. Maybe you did some changes on your own? What have you changed/installed recently? Some incompatibility between code may exist.

matrixpng

  • Newbie
  • *
  • Posts: 17
Re: Fails to show page after saving changes on theme and plugin
« Reply #4 on: March 02, 2019, 01:39:37 am »
Would require some paid assistance. Contact me on matrixpng@gmail.com

Thanks.

matrixpng

  • Newbie
  • *
  • Posts: 17
Re: Fails to show page after saving changes on theme and plugin
« Reply #5 on: March 04, 2019, 01:44:59 am »
I have reinstalled Osclass. I have error messages from the osclass installation generated by error log. Trying to edit settings and plug-ins via CPANEL is sometimes slowing down and not loading...giving blank white pages. Could someone help to resolve? I have tried including the DBCommandClass.php but exceeds limit for posting (attached instead).

***

[03-Mar-2019 12:35:05 Europe/Madrid] PHP Warning: mysqli::query(): MySQL server has gone away in /hsphere/local/home/matrix/example.com/oc-includes/osclass/classes/database/DBCommandClass.php on line 1011
[03-Mar-2019 12:35:05 Europe/Madrid] PHP Warning: mysqli::query(): Error reading result set's header in /hsphere/local/home/matrix/example.com/oc-includes/osclass/classes/database/DBCommandClass.php on line 1011
[03-Mar-2019 12:35:05 Europe/Madrid] PHP Warning: mysqli::query(): MySQL server has gone away in /hsphere/local/home/matrix/example.com/oc-includes/osclass/classes/database/DBCommandClass.php on line 1011
[03-Mar-2019 12:35:05 Europe/Madrid] PHP Warning: mysqli::query(): Error reading result set's header in /hsphere/local/home/matrix/example.com/oc-includes/osclass/classes/database/DBCommandClass.php on line 1011
[03-Mar-2019 12:35:05 Europe/Madrid] PHP Fatal error: Uncaught Error: Call to a member function numRows() on boolean in /hsphere/local/home/matrix/example.com/oc-includes/osclass/model/Category.php:127
Stack trace:
#0 /hsphere/local/home/matrix/example.com/oc-includes/osclass/model/Category.php(207): Category->listWhere('b.s_name != '' ...')
#1 /hsphere/local/home/matrix/example.com/oc-includes/osclass/model/Category.php(232): Category->listEnabled()
#2 /hsphere/local/home/matrix/example.com/oc-includes/osclass/model/Category.php(73): Category->toTree()
#3 /hsphere/local/home/matrix/example.com/oc-includes/osclass/model/Category.php(40): Category->__construct('en_US')
#4 /hsphere/local/home/matrix/example.com/oc-includes/osclass/helpers/hCategories.php(96): Category::newInstance()
#5 /hsphere/local/home/matrix/example.com/oc-content/themes/rival/templates/inc/country.php(23): osc_count_categories()
#6 /hsphere/local/home/matrix/example.com/oc-includes/osclass/helpers/hDefines.php(238): require('/hsphere/local/...')
#7 /hsphere/local/home/matrix/example.com/oc-co in /hsphere/local/home/matrix/example.com/oc-includes/osclass/model/Category.php on line 127

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Fails to show page after saving changes on theme and plugin
« Reply #6 on: March 04, 2019, 11:01:45 am »
By reinstall, can you explain what is your system, hosting and what locations you selected? How many categories?

As a step #1 in debugging this I would contact hosting support and see if they allow raising timeout parameters through some way (htaccess or php).

As a step #2 I would probably try with another hosting.

matrixpng

  • Newbie
  • *
  • Posts: 17
Re: Fails to show page after saving changes on theme and plugin
« Reply #7 on: March 04, 2019, 12:21:37 pm »
Hosting on linux platform. Country is still default at US and have 10 categories. Using rival theme which has options for uploading category images as well.

I have contacted hosting provider quandrahosting.com.au for support as per your advice.

Thanks
Mat