#1 October 17, 2013 5:21pm

ant100
Member
Registered: October 16, 2013
Posts: 11

'Update' doesn't work

Hello everybody!


I'm new here, just installed Big Tree and working with it is awesome!


I have a problem though. I'm just learning how to build modules, callouts, etc. So I decided to try and build a similar 'features' module, like the one on the example page. I made a table in mysql, configure form and view, and then noticed that the images weren't loading on the module view (I had it set to Image List). That's when I figured I had to configure in view options.


Now, the problem is that when I update the 'view options' it won't save. So changes won't apply and images never load sad Why could this happen?


I wasn't sure where to post this, or if this forum was appropiate at all for my question, but I didn't know where else to ask!


Sorry for the trouble, thanks for your time!


Ant



Offline

#2 October 17, 2013 5:24pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: 'Update' doesn't work

A bit hard to diagnose from afar. Are there any warnings or errors (red blocks) shown when you go to the Site Status area in Developer?

My best guess is that there could be a magic quotes issue.

Offline

#3 October 18, 2013 10:09am

ant100
Member
Registered: October 16, 2013
Posts: 11

Re: 'Update' doesn't work

I haven't seen any warnings, but just checked and magic_quotes_gpc is turned on. Could that be the issue? I'll talk to my hosting service to turn it off.

Offline

#4 October 18, 2013 10:11am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: 'Update' doesn't work

Yeah, magic_quotes_gpc can really screw up lots of PHP/MySQL implementations. BigTree tries to turn it off in .htaccess but some hosting providers don't allow php flags to be set at runtime.

Offline

#5 October 18, 2013 10:55am

ant100
Member
Registered: October 16, 2013
Posts: 11

Re: 'Update' doesn't work

Just talked to my hosting provider and they told me that they couldn't turn magic_quotes_gpc off, because the configuration they did in the .htaccess file made conflict with BigTree rewrite rules, and that made my site unavailable.

I checked the changes they did and this is the code they tried to put:

AddHandler php53 .php
Action php53 /cgi-bin/php53.cgi
RewriteEngine On
RewriteRule ^$ site/ [L]
RewriteRule (.*) site/$1 [L]

They added the first two lines. Do you have any idea why these lines conflict?

Offline

#6 October 18, 2013 10:59am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: 'Update' doesn't work

It seems like they just tried to turn PHP 5.3 on as the default handler of .php files. That shouldn't cause any issues with BigTree as that's the primary version we test on.

Can you try adding "php_flag magic_quotes_gpc Off" into your .htaccess file below the rewrite rules?

Offline

#7 October 18, 2013 11:08am

ant100
Member
Registered: October 16, 2013
Posts: 11

Re: 'Update' doesn't work

That turned it off only on 'local value', but it fixed the problem I had. Amazing.


THANK YOU! smile

Offline

#8 October 18, 2013 11:08am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: 'Update' doesn't work

Awesome! Great to hear!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.