Forums / Upgrading from 1.3.x to 1.3.9 / Attribute Controller not loading

Attribute Controller not loading

Views: 5,288

Results 1 to 18 of 18
26 Jan 2011, 11:39 AM
#1
asmdroid avatar

asmdroid

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Attribute Controller not loading

Hi there,

I did an upgrade of Zencart from 1.3.9a to 1.3.9h.

On upgrade I went through and merged the content and customisations.

When I open the Attribute Controller on admin, and attempt to add new content or image, I am redirected to the Index.php page and the request is not processed.

I have restored the old version, but this has similar problems - For example, unable to Add Image etc.

I haven't touched the code base in a long time now, and the system was implemented by another developer, so have little clue as to what could be wrong.

Any ideas? How can I provide more info for further diagnosis?

Cheers,
Dan

26 Jan 2011, 11:41 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute Controller not loading

Did you merge/touch any admin files?
Why & what?

Zen-Venom Get Bitten

26 Jan 2011, 12:39 PM
#3
asmdroid avatar

asmdroid

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

Gone through an remerged, no longer redirects, and have error when trying to add a new Image.

On old version, could add images.

This version:

Duplicate Attribute - Attribute was not added -:TEXT

Any ideas?

26 Jan 2011, 1:09 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute Controller not loading

You did not answer my question...

Zen-Venom Get Bitten

26 Jan 2011, 1:37 PM
#5
asmdroid avatar

asmdroid

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

None, apart from customers and headers.php. Only for amendments. Not the attribute controller.

26 Jan 2011, 8:42 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute Controller not loading

Exactly what admin files
name & path & what you changed

Zen-Venom Get Bitten

27 Jan 2011, 12:06 PM
#7
asmdroid avatar

asmdroid

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

As stated, I had not changed all the files, only the two above.

First, can you explain this, as there seems to be a difference in interface

http://postimage.org/image/7gy87fus/

27 Jan 2011, 5:15 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute Controller not loading

NO, first provide the two full file names and the path that you have changed, and what you changed

Zen-Venom Get Bitten

27 Jan 2011, 5:34 PM
#9
asmdroid avatar

asmdroid

New Zenner

Join Date:
Jan 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

Addition to admin\includes\languages\english\customers.php

define('TABLE_HEADING_REFERRED_BY', 'Referred By'); //rmh referral

From admin\includes\header.php, removed the Zencart <IMG> from the top.

27 Jan 2011, 5:42 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute Controller not loading

Ok, That 3rd party module should have no effect on your issue

A stock install does not exhibit what the issue you have posted about

Suggest that you check that you replaced the changed files and also check for the removed files

Zen-Venom Get Bitten

14 Oct 2011, 9:55 PM
#11
seattleannie avatar

seattleannie

Zen Follower

Join Date:
Oct 2005
Posts:
151
Plugin Contributions:
0

Re: Attribute Controller not loading

I am also having this issue with 1.3.9h where I get bumped out to the admin home page when I try to insert an option in the Attributes Controller. I have added many modules and customized many files to this site. And perhaps it isn't even a problem with a modified file - but instead with a file that was corrupted during upload.

Can you tell me where to look, in general, to re-upload files to repair this. Such as, "probably the problem file is in admin/includes". Or something like that, so I can narrow my search down?

Thanks!

~anne

16 Oct 2011, 4:28 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute Controller not loading

I have added many modules and customized many files to this site. And perhaps it isn't even a problem with a modified file - but instead with a file that was corrupted during upload.

Can you tell me where to look, in general, to re-upload files to repair this.
Not without knowing all the add ons and their versions and even then maybe not

Zen-Venom Get Bitten

17 Oct 2011, 7:53 PM
#13
seattleannie avatar

seattleannie

Zen Follower

Join Date:
Oct 2005
Posts:
151
Plugin Contributions:
0

Re: Attribute Controller not loading

Thanks Kobra.
Here are all the modules I installed:
Admin Activity Report
Editable Sidebox
Image Handler 3
Multi Cross Sell
Zen Lightbox 1.6.2
Sales Tax Summary Report
Recently Viewed Items
Quantity Discounts
Tiny MCE
Dual Pricing
Customer Tax Exempt
Admin Profiles
Easy Populate Advanced

Just to make sure you understand: I am not asking for you to diagnose my problem. I am asking what file affect the Attributes Controller and are "likely suspects". I could then start which checking, re-uploading (or merging) those. Thanks!

~anne

20 Dec 2011, 11:31 AM
#14
curiouschris avatar

curiouschris

New Zenner

Join Date:
Dec 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

I have the same issue
Whats odd is that when I install the software on my home machine the problem goes away

now when I say install, I actually mean I git cloned it and imported the DB so I know that both installs are identical

the difference is one machine is windows XP with apache 2.2, mysql 5.1.57 and php 5.3

That one works fine

but on my linux box (server) it is centos 5.7 with apache 2.2, php 5.1.6 and mysql 5.0.77

I am using zencart v1.3.9h with
easy populate
image handler2
column_layout_grid_for_product_listing
dual_pricing_1.8
zen_lightbox_1-6-2

My guess is the problem is the version of PHP and if it wasn't for the fact that this is not the only software running on the box I'd consider upgrading php. but I can't do that and need to resolve the issue.

Whats even more odd was that at one time it did work. I deleted those attributes as they were wrong and when I tried to redo them this issue arose.

Another obvious possible problem is permissions, so I gave the linux box full read/write permissions like XP has and the problem continued to occur. so its not a permissions issue.

I will try to downgrade php on my dev box (xp) and see if the issue occurs

CC

21 Dec 2011, 9:21 AM
#15
curiouschris avatar

curiouschris

New Zenner

Join Date:
Dec 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

After several hours degrading my home PC I still couldnt get the problem to re-occur

I downgraded apache to 2.0 so I could downgrade php to 5.1.6

After re importing the original database from the live site I attempted to add attributes. worked just fine!

That destroys my hypothesis that the issue was php version related.

I'll try another couple of things. Perhaps there is some db corruption and exporting and importing the DB resolved it.

I'll try that next.

CC

21 Dec 2011, 10:43 AM
#16
curiouschris avatar

curiouschris

New Zenner

Join Date:
Dec 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

Well It looks like I was mistaken. when I git cloned zencart the git repo on the server was not up to date. it was missing the dual pricing plugin. when I added that then it stopped working.

I can now debug it on my dev box

I'll get back with the cause and fix as soon as I find it

CC

22 Dec 2011, 12:55 AM
#17
curiouschris avatar

curiouschris

New Zenner

Join Date:
Dec 2011
Posts:
5
Plugin Contributions:
0

Re: Attribute Controller not loading

Ok Found the bug, No fix yet but it should not be too hard the Dual Pricing 1.8 module is not 1.3.9h compatible

There is a missing field in the attributes controller form the securityToken hidden field is not provided and therefore when submitted the form redirects to index.php

This is a stark reminder of why you should never mix code and presentation

My fix will be custom so i won't submit it here

CC