Where are Magento’s log files located?

You can find them in /var/log within your root Magento installation There will usually be two files by default, exception.log and system.log. If the directories or files don’t exist, create them and give them the correct permissions, then enable logging within Magento by going to System > Configuration > Developer > Log Settings > Enabled …

Read more

“OverflowError: Python int too large to convert to C long” on windows but not mac

You’ll get that error once your numbers are greater than sys.maxsize: >>> p = [sys.maxsize] >>> preds[0] = p >>> p = [sys.maxsize+1] >>> preds[0] = p Traceback (most recent call last): File “<stdin>”, line 1, in <module> OverflowError: Python int too large to convert to C long You can confirm this by checking: >>> …

Read more

NULL pointer with boost::shared_ptr?

Your suggestion (calling the shared_ptr<T> constructor with no argument) is correct. (Calling the constructor with the value 0 is equivalent.) I don’t think that this would be any slower than calling vec.push_back() with a pre-existing shared_ptr<T>, since construction is required in both cases (either direct construction or copy-construction). But if you want “nicer” syntax, you …

Read more