Post by straightlight » Mon Jun 20, 2016 6:03 pm

Finally, I am able to upload attachments. Try my version and see if it works, now.

Attachments

Customer Group Logo


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by BrandonBerner » Tue Jun 21, 2016 10:25 am

straightlight wrote:Finally, I am able to upload attachments. Try my version and see if it works, now.

I also am experiencing problems with this extension.


Here is the error (Displayed in the drop down menu above register and log in):

Code: Select all

Notice: Undefined variable: image in /opencart/vqmod/vqcache/vq2-system_modification_catalog_view_theme_default_template_common_header.tpl on line 257Notice: Undefined variable: image in /opencart/vqmod/vqcache/vq2-system_modification_catalog_view_theme_default_template_common_header.tpl on line 260
This error appears both when logged out, and logged in.

I have disabled this extension, and the error is sill there. How do I get rid of this? my customers are going to be so confused haha.

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by IP_CAM » Tue Jun 21, 2016 5:49 pm

as I wrote, why not just installing a virgin OC-Version again, you seem to have multiple problems, and not getting anywhere, this way..
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by BrandonBerner » Wed Jun 22, 2016 3:24 am

IP_CAM wrote:as I wrote, why not just installing a virgin OC-Version again, you seem to have multiple problems, and not getting anywhere, this way..
Ernie

Hi Ernie, I am upgrading to OC 2.1.0.2 today. Hopefully this will solve most of my problems.

If you have time, can you please take a look at my new post regarding upgrading opencart http://forum.opencart.com/viewtopic.php?f=190&t=164266

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by straightlight » Wed Jun 22, 2016 3:27 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by BrandonBerner » Wed Jun 22, 2016 3:34 am

straightlight wrote:This topic may help you greatly: http://forum.opencart.com/viewtopic.php ... it=upgrade

Thanks for the link. Although I love automated procedures, I find they always have errors. Also if something goes wrong, it will be harder to receive help, as I cant refer to which step I completed.

Are you familiar with upgrading? if so, can you view my latest post regarding upgrading, and see if I have all the information I need to upgrade successfully?

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by straightlight » Wed Jun 22, 2016 3:44 am

The most simplified solution to consider would be to backup your entire files and databases from cPanel. It buys you lots of time before applying the upgrade steps.
Last edited by straightlight on Wed Jun 22, 2016 3:44 am, edited 1 time in total.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Wed Jun 22, 2016 3:44 am

BrandonBerner wrote:[Hi Ernie, I am upgrading to OC 2.1.0.2 today. Hopefully this will solve most of my problems.
Well, You won't be able to upgrade a possibly already broken System, I fear. It would be much easier, just export Valuable data, and really start from scratch again. But it's you choice, good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by BrandonBerner » Wed Jun 22, 2016 5:03 am

IP_CAM wrote:
BrandonBerner wrote:[Hi Ernie, I am upgrading to OC 2.1.0.2 today. Hopefully this will solve most of my problems.
Well, You won't be able to upgrade a possibly already broken System, I fear. It would be much easier, just export Valuable data, and really start from scratch again. But it's you choice, good Luck ;)
Ernie

Thanks for your advice. I will try to upgrade, and If im experiencing a lot of problems, ill start from scratch. I have put in so much time adding products and modifying settings, so I dont want to re-do anything. MY store is active, and I have a lot of customers, affiliates, and orders that I dont want to disappear.


When I upgrade, wont the files all be replaced with new ones?
The only folder that I will be transferring is my images folder from 2.0.3.1 to 2.1.0.2

From what I understand the database does not change much. Only a few tables are removed.

So what broken settings will be copied over to 2.1.0.2?

Thanks :)

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by straightlight » Wed Jun 22, 2016 8:04 am

BrandonBerner wrote:
IP_CAM wrote:
BrandonBerner wrote:[Hi Ernie, I am upgrading to OC 2.1.0.2 today. Hopefully this will solve most of my problems.
Well, You won't be able to upgrade a possibly already broken System, I fear. It would be much easier, just export Valuable data, and really start from scratch again. But it's you choice, good Luck ;)
Ernie

Thanks for your advice. I will try to upgrade, and If im experiencing a lot of problems, ill start from scratch. I have put in so much time adding products and modifying settings, so I dont want to re-do anything. MY store is active, and I have a lot of customers, affiliates, and orders that I dont want to disappear.


When I upgrade, wont the files all be replaced with new ones?
The only folder that I will be transferring is my images folder from 2.0.3.1 to 2.1.0.2

From what I understand the database does not change much. Only a few tables are removed.

So what broken settings will be copied over to 2.1.0.2?

Thanks :)
The core files must be replaced upon each upgrades, yes. Although, before doing any upgrades, backup your entire site including database so that you don't loose anything. Highly suggested upgrade feature by using the topic I provided above so that you don't loose any database data during the upgrade operation.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by BrandonBerner » Wed Jun 22, 2016 9:06 am

straightlight wrote:
The core files must be replaced upon each upgrades, yes. Although, before doing any upgrades, backup your entire site including database so that you don't loose anything. Highly suggested upgrade feature by using the topic I provided above so that you don't loose any database data during the upgrade operation.
Thanks for your message.

That suggested upgrade feature is for 2.2 I want 2.1.0.2. How do I use the suggested upgrade for 2.1.0.2?

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by BrandonBerner » Wed Jun 22, 2016 12:40 pm

straightlight wrote:Finally, I am able to upload attachments. Try my version and see if it works, now.

Can you please tell me how to revert the changes your extension has made when I installed it so i can remove the error off the login drop down menu

Code: Select all

Notice: Undefined variable: image in /home1/nobscomp/public_html/SMB/opencart/vqmod/vqcache/vq2-system_modification_catalog_view_theme_default_template_common_header.tpl on line 257
I have disabled your extension, but its still displaying the error.

Thanks :)

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by straightlight » Wed Jun 22, 2016 6:30 pm

Simply rename the XML file to: xml_ at the end.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by BrandonBerner » Thu Jun 23, 2016 4:34 am

straightlight wrote:Simply rename the XML file to: xml_ at the end.
I have done that already, but it still not removing the error.

When I installed your extension, the error started. I check the time of when I installed your extension, and the time when the error started, and they are both identical which is why I think the extension may have done something. I mean no disrespect.

If you install an extension for 2.2 on version 2.0.3.1, does it mess with other files? or does it try to change or create files that are located or compatible within 2.2 but not in 2.0.3.1?

Does your extension add any code to:
vq2-system_modification_catalog_view_theme_default_template_common_header.tpl

Code: Select all

                        <li class="dropdown"><a href="<?php echo $account; ?>" title="<?php echo $text_account; ?>" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_account; ?></span> <span class="caret"></span></a>
                            <ul class="dropdown-menu dropdown-menu-right">
<?php if ($image) { ?>
				<li><img src="<?php echo $image; ?>" class="img-thumbnail" /></li>
			<?php } ?>
Any advice on what the error means, and how to possible remove this error?

I am planning on upgrading soon, just waiting for my schedule to clear up so I have enough time to do it, and also fix any errors that come along.

Thanks :)

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by straightlight » Thu Jun 23, 2016 4:49 am

The line I added with the XML over the template was:

Code: Select all

<?php if ($image) { ?>
            <li><img src="<?php echo $image; ?>" class="img-thumbnail" /></li>
         <?php } ?>
In your vq2 cache file common controller file, can you confirm if you see:

Code: Select all

$this->load->model('tool/image');
			
			$this->load->model('account/customer_group');
			
			$customer_group = $this->model_account_customer_group->getCustomerGroup($this->customer->getGroupId());
			
			if (!empty($customer_group['image'])) {
				if ($customer_group['image']) {
					$data['image'] = $this->model_tool_image->resize($customer_group['image'], $this->config->get($this->config->get('config_theme') . '_image_product_width'), $this->config->get($this->config->get('config_theme') . '_image_product_height'));
				} else {
					$data['image'] = '';
				}
			}


?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by BrandonBerner » Thu Jun 23, 2016 4:52 am

Wow I feel stupid once again.

So I was disabling the wrong extension name. Yours was named "cgl_2031.xml" and I had 2 other extensions for adding image to account. I disabled those 2 and left cgl_2031.xml enabled.

I have now disabled all 3 and everything is working perfectly.

Sorry for the false alarm!


Would you still like me to confirm the code you send me above to help improve your extension?

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by straightlight » Thu Jun 23, 2016 5:00 am

BrandonBerner wrote:Wow I feel stupid once again.

So I was disabling the wrong extension name. Yours was named "cgl_2031.xml" and I had 2 other extensions for adding image to account. I disabled those 2 and left cgl_2031.xml enabled.

I have now disabled all 3 and everything is working perfectly.

Sorry for the false alarm!


Would you still like me to confirm the code you send me above to help improve your extension?
There we go, you solved the problem ! :)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 69 guests