changes at SmugMug appear to have blown up pysmug - django

Anyone else wrestling with changes instituted at SmugMug the week before Thanksgiving that have resulted in "invalid user" errors when using pysmug and Django?
There's a suggestion that they are now requiring the presence of an _su cookie, but it seems to me pycurl used in pysmug ought to handle this properly.
The error does not occur on login, so I'm assuming the error message "invalid user" is bogus.

For anyone else having pysmug trouble the following patch fixed the issue:
pysmug's implementation of pycurl does not set a cookie jar. To fix the problem, add the following two lines to smugmug.py at line number #143 and reinstall:
c.setopt(c.COOKIEFILE, 'cookies.txt')
c.setopt(c.COOKIEJAR, 'cookies.txt')
You may want to set an absolute path to cookies.txt to make sure it's getting written to a folder with the necessary permissions, i.e. /tmp/

Related

POST http://exaple.com/index.php?route=checkout/cart/add 500 (Internal Server Error)

I am new to opencart. Some how I managed to create a website after reading online tutorial.
The website was worked well, but since two day the add to cart button is not working. Its showing some error on console. I tried different browser but same result.
Here I attached the screenshot.
The website is posakaworld.com
Any tips or hint is appreciated :)
I also having the similar issue, please check your
system/log/error.txt
For my case, I installed a new extension, and it shows and error
2017-06-25 9:49:03 - PHP Notice: Undefined variable: checkCart in /Users/Shiro/Sites/opencart/vqmod/vqcache/vq2-catalog_controller_checkout_cart.php on line 724
When I check ajax response, it does not show the error, it is due to production display error off, so finally, I manage to find out it is just a PHP Notice can break the system.
Once I fix the undefined variable notice, my ajax no more error. Everything back to normal. I hope this solution is helped.

Jupyter Notebook error during saving

Everything used to work fine but now every time I try saving any file in Jupyter Notebook, I get the following error.
URIError: URIMalformed
Also the following is shown in the title bar.
Last Checkpoint: 09/02/2016 Autosave Failed!
How do I fix this issue?
I encountered this same error as well. I ended up tracing it down to the LastPass extension in Chrome. I disabled the extension, and I was able to save again.
[lastpass] [jupyter]
There is a solution for the Lastpass users:
https://github.com/jupyter/notebook/issues/1966
adding "localhost" to My Vault -> Account Settings -> Neverl URLS -> "Never Add Site"
I'm having the same issue and tracked it back to the character %.
I'm using it in the line %matplotlib auto.
I don't even have to run the line of code. Just having it in my text prompts the error. If I remove the character, then I can save again.
Remove any % and see if you can then save.
+1 to Scott's answer above. I also got the exact same error messages you got using Python 3.5.1. I fixed the issue by getting rid of any % characters in my code per Scott's answer from yesterday. I needed the % for the modulo operator. I just imported operator.mod() instead.
Aside: This is such a quirky bug!
As an alternative to globally disabling the LastPass extension in Chrome, I was able to get things working by running the notebook in a Chrome incognito window.
Additionally, this issue only seems to affect Chrome. Even with LastPass enabled in Firefox, I've been able to save the notebooks without the urierror.
Not using '%' in Jupyter Notebooks doesn't seem like a solution, since the magics all start with % and even having % in a print statement causes the error.

OpenCart Integrate wih template

Currently I using OpenCart v2.3.0.2, after me purchased the theme template, I tried follow the documentation but stuck on here.
Before met this errors, I get some similar error, which is
/var/www/html/public_html/catalog/view/theme/logancee/template/extension/module/featured.tpl on line 2
at the end i solve this error by deactive and active the extension. Now I stuck on the footer.tpl, which is this error.
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/footer.tpl on line 2
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/cart.tpl on line 2
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/header.tpl on line 2
Please advice me if you face this kind of error before.
You can end notices in the settings by setting Display Errors to No. Or you can back-trace these errors and variables and fix them accordingly.
The theme you purchased is not prepared to handle some of the extensions, you have already installed.
I suggest you remove ALL extensions, modifications & vQmods that you have added and start adding them again by testing one by one to find out which one is giving you the error!
Also remove all your cached content & files before each step including your browser's cache.

Editing Files With Flask-Admin

I am using Flask-Admin to provide an admin interface for my web app, and so far everything has gone well. However, I am trying to make it so that the .TXT files can be edited right in the browser.
Reading the docs, I have incorporated the line:
editable_extensions = ('txt')
into my FileAdmin class. However, every time I check the box beside the file and press With Selected -> Edit, I get a "Permission Denied" error. On the contrary, the Rename feature works fine, and I can also click the file name to view the contents.
Does anyone have any idea how to solve this problem, or where I should start looking?
Note that I may very well be missing some required code, as the line above is all I have done with regards to the editing functionality.
EDIT: I have now managed to get:
Unexpected error while reading from filename.txt
This file cannot be edited for now.
Never mind, this was fixed in an update. For those curious as to what the issue was, the edit() function in fileadmin.py was opening the file as 'r', rather than 'rb'. This caused the error:
'str' object has no attribute 'decode'
which consequently produced in error in the very end.

Sitecore Workbox Generating Odd Error

I've run into a problem in the Wokbox that seems like a Sitecore bug. When the "Items per Page" drop down is set to anything but "All", I'm able to expand the "Draft" and "Awaiting Approval" lists in the Workflow.
But when the "Items per Page" is set to "All", I get the following error:
Exception in MyWebSite: /sitecore/shell/default.aspx?xmlcontrol=Workbox&mo=preview
Message: Operation is not valid due to the current state of the object.
StackTrace: at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
at System.Web.HttpRequest.FillInFormCollection()
And at this point, I'm "stuck" - and unable to revert my view back to anything less than "All" in the "Items per Page" drop-down. So, because I cannot revert back, I cannot do anything on the page, and any attempt to expand the Workflow lists (or do anything on the page) generates the above error.
Any thoughts on what is happening and how to fix this?
I followed up on this to keep from leaving this question unanswered. It turns out that this issue was related to another known issue. For the benefit of those who might be getting a similar issue, here's what fixed this:
The problem can occur when Sitecore CMS is installed on systems that have Microsoft security update MS11-100 installed.
Please refer to the similar known issue on SDN:
The Template Builder may fail when saving templates with many fields
The solution:
Try to add the following node to the section of the web.config file:
<add key="aspnet:MaxHttpCollectionKeys" value="5000" />