Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Internal server error when installing fb extension #52

Closed
beachgeek opened this issue Oct 31, 2018 · 28 comments
Closed

Internal server error when installing fb extension #52

beachgeek opened this issue Oct 31, 2018 · 28 comments
Labels

Comments

@beachgeek
Copy link

beachgeek commented Oct 31, 2018

I saw several issues that occurred with the installation but I get an internal server error during the unpacking of the zip file. The installation stops halfway through the unpacking and a window comes up saying
internal server error
internal server error
Is anyone having this problem? I am on a godaddy server and file permissions are 755
Can I install manually?
OC version 3.0.2.0

image

@shue249
Copy link
Contributor

shue249 commented Nov 1, 2018

@beachgeek Can you share your server error log to us so that we can check what is the error. Pls ensure that you have installed the latest plugin which is 2.0.3 version. We do not need the full log, we need the log of where the error occurs so that we can check what is the code error.

Our email is ads_extension_opencart@fb.com.

@beachgeek
Copy link
Author

Hi Shue,

I was able to get the extension to unpack and install but I have some issues. The godaddy server did not have zip installed so I installed it and it unpacked and installed with no issues.
when I go to the Facebook extension on the main menu I it tells me I have no permission to access it.
When I go to extensions/extensions/modules and select the facebook ads extension it shows disabled then when I click edit it shows page not found.
when I go to Extensions/Modifications it is there and shows enabled. I uninstalled then reinstalled and same issues.

Thanks,

image
image
image

@beachgeek
Copy link
Author

I think I have it all corrected. permissions took care of most of it. The instructions on the FB page don't mention going to the user groups and selecting all the FB ad extensions so the admin has proper permissions. I did it and it works. I only have one issue on the Facebook side in the pixel the product pics don't render on the first click but if you close the popup of that product and click it again then it renders otherwise on the first click it stays blank.
And when viewing all products in the pixel you have to refresh the page to get the product pics to all start showing. may be a FF thing though? not sure but will let you know....

@beachgeek
Copy link
Author

beachgeek commented Nov 3, 2018

it seems to work fine but a huge issue was just discovered. The in the Opencart Admin Catalog/Products page is not coming up. I get a blank page and my employee at another computer gets a message that it cannot handle the request. This is after the FB extension was installed an set up.

I found these errors in my extension manager error log:

2018-11-03 19:58:04 - ----------------------------------------------------------------
MOD: Facebook Ads Extension
MISSING FILE!
/home/scubageek01/public_html/admin/view/template/common/dashboard.tpl

MOD: Facebook Ads Extension
MISSING FILE!
/home/scubageek01/public_html/admin/controller/common/menu.php

MOD: Facebook Ads Extension
MISSING FILE!
/home/scubageek01/public_html/admin/view/template/common/menu.tpl

MOD: Facebook Ads Extension
MISSING FILE!
/home/scubageek01/public_html/admin/view/template/catalog/product_list.tpl

MOD: Facebook Ads Extension
MISSING FILE!
/home/scubageek01/public_html/catalog/view/theme/*/template/common/header.tpl

MOD: Facebook Ads Extension
MISSING FILE!
/home/scubageek01/public_html/catalog/view/theme/*/template/product/product.tpl

@beachgeek
Copy link
Author

2018-11-02 17:00:33 - PHP Notice: Undefined index: filter_name in /home/scubageek01/public_html/catalog/controller/extension/facebookevents.php on line 338
2018-11-03 13:11:41 - PHP Notice: Undefined index: filter_manufacturer_id in /home/scubageek01/public_html/catalog/controller/extension/facebookevents.php on line 462
2018-11-03 18:04:46 - PHP Notice: Undefined index: filter_manufacturer_id in /home/scubageek01/public_html/catalog/controller/extension/facebookevents.php on line 462
2018-11-03 18:25:58 - PHP Notice: Undefined index: filter_name in /home/scubageek01/public_html/catalog/controller/extension/facebookevents.php on line 338
2018-11-03 19:58:03 - PHP Warning: rename(/home/scubageek01/public_html/system/-NA-.xml,/home/scubageek01/public_html/system/-NA-.xml_): No such file or directory in /home/scubageek01/public_html/admin/controller/extension/enhancement/ea_ocmod_manager.php on line 433

@beachgeek
Copy link
Author

beachgeek commented Nov 3, 2018

sad, it is a nice extension but since I cannot add or edit product to my site only on the FB side it isn't functional. plus you cannot edit the quantity of a product on the FB side and cannot see it on the site admin we cannot update products. seems this extension needs a lot of work.

@shue249
Copy link
Contributor

shue249 commented Nov 5, 2018

@beachgeek Thank you for the feedback. I am sorry that the plugin installation did not go as well for you and you have to spend time on this.

Will you still be interested to debug with us for us to understand where has the problem gone wrong? The plugin should automatically sync in new products and product changes from your site to FB automatically. However, this could mean taking up some of your time.

Will love to hear your thoughts.

@beachgeek
Copy link
Author

beachgeek commented Nov 5, 2018 via email

@beachgeek
Copy link
Author

@shue249 I am certain it would sync automatically but I the products page in admin is not there. When I click the link it goes to a blank page.
Therefore, I cannot add or edit products on the site unless I disable the FB ads extension.
like I mentioned in my other reply, I disabled the extension added and edited products then reenabled.
A pain but it worked for now.
Now to figure out why the products page in the site admin is no longer available when the extension is enabled.

@shue249
Copy link
Contributor

shue249 commented Nov 5, 2018

@beachgeek I am suspecting that the blank page is due to some problems with our plugin integrating with the product management module on your system. In order for us to do the automatic sync, we added in some codes to the product management module.

Are you able to send us a copy of your webserver log file? It is not the opencart extension mod log but probably the apache web server log. It should reside in the /var/log/apache2/error.log location.

If you can find the file, pls send to our email alias instead of putting here as there.

@beachgeek
Copy link
Author

beachgeek commented Nov 5, 2018 via email

@beachgeek
Copy link
Author

beachgeek commented Nov 6, 2018

Shue, if you would like access to the admin I can set that up.... would rather do that by skype though

@facebookarchive facebookarchive deleted a comment from beachgeek Nov 7, 2018
@shue249
Copy link
Contributor

shue249 commented Nov 7, 2018

@beachgeek I deleted away the comment on server logs as there are sensitive information. Will you be able to strip away the sensitive information and send us the error information. Look out for information related to catalog.

Also, it will be inappropriate for us to access your server. We DO NOT require any server access, so pls do not give them away to anyone.

@beachgeek
Copy link
Author

beachgeek commented Nov 8, 2018 via email

@shue249
Copy link
Contributor

shue249 commented Nov 9, 2018

@beachgeek Thanks for the feedback!

I may have spot the problem. Will you be able to share with us a copy of this file, vqmod/vqcache/vq2-storage_modification_admin_controller_catalog_product.php

image

@beachgeek
Copy link
Author

beachgeek commented Nov 9, 2018 via email

@beachgeek
Copy link
Author

beachgeek commented Nov 9, 2018 via email

@beachgeek
Copy link
Author

beachgeek commented Nov 14, 2018 via email

@shue249
Copy link
Contributor

shue249 commented Nov 14, 2018

@beachgeek Thanks for following up! Unfortunately we did not receive the email, and may have been filtered by our spam system. Will you be able to upload the file to a common location so we can grab the file?

@beachgeek
Copy link
Author

beachgeek commented Nov 15, 2018 via email

@beachgeek
Copy link
Author

@beachgeek
Copy link
Author

As I said on another thread here I installed the latest version of the FB extension tonight.
The extension still says it is 2.0.3.
Products are still not syncing and the product page in OC Admin still doesn't show while the FB extension is enabled.
I am still confused as to why in the error log it looks for files that are not present in the OC build at all or apparently this extension?

@beachgeek
Copy link
Author

I don't understand why these files are not being found if the app needs them? Why are they not in the Opencart build or in the extension files?

image

@shue249
Copy link
Contributor

shue249 commented Nov 22, 2018

@beachgeek My apologies for the delay. I can get your catalog file now, let me check on what is the problem and get back to you soonest. For the latest version of the plugin, can you grab it from here https://github.com/facebookincubator/Facebook-For-OpenCart/releases/tag/v2.1.2

@shue249 shue249 added the bug label Nov 27, 2018
@shue249
Copy link
Contributor

shue249 commented Nov 27, 2018

@beachgeek We have identified the problem and is working on the fix now. We will update you on this thread once we release out the fix in a new version of the plugin. Thank you again for your patience.

@beachgeek
Copy link
Author

beachgeek commented Dec 6, 2018 via email

@shue249
Copy link
Contributor

shue249 commented Dec 7, 2018

@beachgeek Thank you for your patience!

We have identified the fix for your case. We are still working to fix few other bugs before releasing the latest version.

Alternatively, you can also download a the plugin file locally, make the modifications on your plugin file and re-install the plugin file.
The fix will be to remove these set of lines from this file in the plugin.
https://github.com/facebookincubator/Facebook-For-OpenCart/blob/master/install.xml#L289-L297

@shue249
Copy link
Contributor

shue249 commented Dec 14, 2018

@beachgeek Thank you again for your patience. We have released a new version 2.1.3 to address this issue. You can either download from OpenCart or from here https://github.com/facebookincubator/Facebook-For-OpenCart/releases/tag/v2.1.3.

We will close out the ticket, but feel free to let us know if there's further questions.

@shue249 shue249 closed this as completed Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants