Page 1 of 2

dashboard links turned white, autocomplete broken

Posted: Sat Oct 15, 2011 1:23 pm
by nightvision04
Hi there,


I am having a problem with my admin dashboard being loaded correctly. Every link such as "Save", "Insert", "Delete", etc. that is used either has turned white (against the white background) or lost its functionality.

Another symptom to the problem is that "autocomplete" has apparently stopped working in the "Featured module". I require autocomplete to add products to the features module, so it is an obstacle I cannot afford to overlook.


my error message is "2011-10-15 5:05:29 - PHP Notice: Error: Could not load library json! in /home/dwai/public_html/store/system/engine/loader.php on line 23"

Any help would be appreciated.

Thanks,
Dan

Re: dashboard links turned white, autocomplete broken

Posted: Sat Oct 15, 2011 1:24 pm
by nightvision04
I am using OpenCart Version 1.5.1.3

Re: dashboard links turned white, autocomplete broken

Posted: Sat Oct 15, 2011 5:33 pm
by uksitebuilder
It appears you have updated from a previous version ?

In 1.5.1.3 the <span> attribute was removed from buttons

A new implementation of json was added

You need to upload the admin files again (apart from config.php).

Re: dashboard links turned white, autocomplete broken

Posted: Sun Oct 16, 2011 12:59 am
by nightvision04
Alright, but I had installed the import export module, it will break that module if I do that..

Is there a specific file I could change instead.

Re: dashboard links turned white, autocomplete broken

Posted: Sun Oct 16, 2011 1:21 am
by uksitebuilder
You cant partially upgrade to 1.5.1.3

It will cause no end of problems.

Re: dashboard links turned white

Posted: Sat Oct 22, 2011 3:26 am
by mstone
There was an issue with the button css. The button background jpg used an underscore and the image file name used a dash. Or visa versa can't remember but it may now be fixed with 1.5.3.1 don't know since I fixed it myself by uploading another copy of the jpg with the correct name.

Re: dashboard links turned white, autocomplete broken

Posted: Sat Oct 29, 2011 12:24 am
by nightvision04
where can I go to figure out exactly what picture needs its name changed?

Thanks

Re: dashboard links turned white, autocomplete broken

Posted: Mon Oct 31, 2011 8:22 pm
by robbamacco
If you want to fix temporarly this problem, you can copy the file ./system/library/json.php from a previous version of opencart (e.g. form v.1.5.1.2)

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 10:06 am
by nightvision04
Alright i'll do that.

Is that decision potentially to affect my store's stability? Or is it going to cause fundamental functions to not work?

Thanks.

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 11:54 am
by nightvision04
I uploaded json.php from 1.5.1.2 to my current, 1.5.1.3 setup and it did not fix my issue


Here's what it looks like.

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 11:55 am
by nightvision04
By the way, no I did not do any upgrading of any kind. I started with a vanilla 1.5.1.3 install mid - October.

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 12:08 pm
by fido-x
The error message you provided in your first post, suggests that you may have upgraded.
nightvision04 wrote:my error message is "2011-10-15 5:05:29 - PHP Notice: Error: Could not load library json! in /home/dwai/public_html/store/system/engine/loader.php on line 23"
So, if you didn't upgrade, you have an incompatible 3rd party module that is causing your problem. The json functions were changed in 1.5.1.3, which broke any module that was built on (or for) an earlier version that used json.

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 12:26 pm
by nightvision04
I see. Well. I have two mods.

1. Import/Export (JNeuhoff)
2. Restricted Access (Qphoria)

Both plugins were specifically made for the 1.5.1.3 release. Any suggestions?

p.s. - If anything, my guess is that between to the two possibilities, it wasn't a Qphoria issue.

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 12:39 pm
by fido-x
nightvision04 wrote:I see. Well. I have two mods.

1. Import/Export (JNeuhoff)
2. Restricted Access (Qphoria)

Both plugins were specifically made for the 1.5.1.3 release. Any suggestions?

p.s. - If anything, my guess is that between to the two possibilities, it wasn't a Qphoria issue.
Well, I wouldn't come to that conclusion without any evidence. Compared to JNeuhoff, Qphoria is a noob!

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 1:25 pm
by jty
fido-x wrote:Well, I wouldn't come to that conclusion without any evidence.
yer, JNeuhoff is a Senior around here and has been giving us the Import/Export module since version 0.7. That was a long time ago, before most people knew about OpenCart, even before Adam and Eve were born :laugh:
Fido-X is also a Senior around here

Try removing the mods one by one to isolate you problem

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 2:51 pm
by nightvision04
After I take my foot out of my mouth, i'll get right on that. :)

Sorry Fido-X

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 3:07 pm
by fido-x
jty wrote:... Fido-X is also a Senior ...
Now I'm feeling old! ;D :laugh: :joker:
nightvision04 wrote:After I take my foot out of my mouth, i'll get right on that. :)

Sorry Fido-X
No worries.

It might also be an idea to check any vQmod file that may have come with either of those packages, to see if the cause of your problem lies there.

To disable a vQmod (or to hide a controller), just add an underscore to the end of the filename's extension (eg., .xml_ or .php_), or change the extension from .xml (or .php) to .bak.

Re: dashboard links turned white, autocomplete broken

Posted: Wed Dec 21, 2011 3:43 pm
by nightvision04
Okay.

I have disabled both mods (vqmod scripts), and confirmed that they are no longer working.

I still however get the font issues. Below is another example of the problem. There should be dark Login text, but instead it is white.

Last picture example shows a missing autocomplete, necessary for adding coupon products and other things wonderful...

Is this as easy as re-uploading the open cart 1.5.1.3 version directly in ftp?

Re: dashboard links turned white, autocomplete broken

Posted: Thu Dec 22, 2011 6:04 am
by nightvision04
I forgot to mention, I also replaced the json.php file to its original 1.5.1.3 version. (I had tried using a 1.5.1.2 version by request on this thread).

Re: dashboard links turned white, autocomplete broken

Posted: Thu Dec 22, 2011 10:07 am
by fido-x
nightvision04 wrote:I forgot to mention, I also replaced the json.php file to its original 1.5.1.3 version. (I had tried using a 1.5.1.2 version by request on this thread).
OK. Get rid of "system/library/json.php" (that's the old one). Make sure that you have a "sytem/helper/json.php" (from the 1.5.1.3 package).

Now, you stated earlier that you have 2 mods/extensions:
nightvision04 wrote:... I have two mods.

1. Import/Export (JNeuhoff)
2. Restricted Access (Qphoria)
(a) Of these, JNeuhoff's Import/Export mod is a tool which allows you to backup/restore your database to/from an Excel spreadsheet. This has no impact on products and doesn't use json.

(b) On the other hand, Qphoria's Restricted Access mod does have an impact on products, as its purpose is to "restrict access".

Using the basic principle of logic that "a + b therefore c", the conclusion is that your problem is in Qphoria's Restricted Access mod.

Disable this mod by renaming the controller (add ".bak" to the end of the filename or change the extension to ".php_"). If this is a "module", the controller will be found in "admin/controller/module" folder. If it is a "tool" the controller should be found in the "admin/controller/tool" folder. This will confirm whether this module is the cause of your problem, or not.

The error message you included in your first post:
nightvision04 wrote:"2011-10-15 5:05:29 - PHP Notice: Error: Could not load library json! in /home/dwai/public_html/store/system/engine/loader.php on line 23"
This suggests that something is trying to load the json "library" (doesn't exist in 1.5.1.3), so you are getting an error. If I'm right about which mod is causing your problem, have a look in the controller for Qphoria's Restricted Access mod, and look for something like:

Code: Select all

$this->load->library('json');

$this->response->setOutput(Json::encode($product_data)); 
Delete:

Code: Select all

$this->load->library('json'); 
and replace the second line with:

Code: Select all

$this->response->setOutput(json_encode($product_data));