Asset builder problem - resolved

Yes it is that problem I have had since RC1, and it looks like I resolved it. By upgrading the Pear package to PEAR 1.7.2 after get the latest mail.php from cvs.php.net. Note it is a stock standard RHEL 5.1 install.


Going to post a bug report because the error.log and system.log file provide no assistance.



Error log for attempting to upload image, which fails:



[codebox][2008-05-26 13:39:43][43:Nick Cowie][2048:php 5 strict standards][R] (/usr/share/pear/Mail.php:21) - Assigning the return value of new by reference is deprecated

[2008-05-26 13:39:43][43:Nick Cowie][2048:php 5 strict standards][R] (/usr/share/pear/Mail.php:21) - Assigning the return value of new by reference is deprecated[/codebox]



Which looks like it was a Mail.php error until I tried to upload an image I had already done manually, error log



[codebox][2008-05-26 13:39:22][43:Nick Cowie][2048:php 5 strict standards][R] (/usr/share/pear/Mail.php:21) - Assigning the return value of new by reference is deprecated

[2008-05-26 13:39:22][43:Nick Cowie][2048:php 5 strict standards][R] (/usr/share/pear/Mail.php:21) - Assigning the return value of new by reference is deprecated

[2008-05-26 13:39:23][43:Nick Cowie][512:mysource warning][R] (/core/include/asset_manager.inc:4345) - Unable to Create link: Cannot create link from “images” (# 849) to “bear.jpg” (# 1318), path(s) “bear.jpg” already in use by one of the children of “images” [SYS0301]

[2008-05-26 13:39:23][43:Nick Cowie][512:mysource warning][R] (/packages/cms/page_templates/page_asset_builder/page_asset_builder.inc:599) - Failed to create link to asset 849 [CMS0035][/codebox]



The problem that was stopping me from uploading, happened after those two error messages and was not being noted in error.log



So time to look at system.log because the error.log was not catching the error.



System.log for when image exists:

[codebox][2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “name” for asset “Image #1318” has been changed from “temp” to “bear.jpg”

[2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “width” for asset “Image #1318” has been changed from “0” to “420”

[2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “width” for asset “Image #1318” has been changed from “0” to “”

[2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “height” for asset “Image #1318” has been changed from “0” to “300”

[2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “height” for asset “Image #1318” has been changed from “0” to “”

[2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “size” for asset “Image #1318” has been changed from “0” to “60336”

[2008-05-26 13:39:23][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1318;] (Asset Attribute Changed) - The value of attribute “size” for asset “Image #1318” has been changed from “0” to “”[/codebox]

Not extremely useful but it does have an error message.



System.log when existing image:

[codebox][2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset - assetid:1319;] (Asset Created) - New image “Image #1319” created

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.permissions.grant - assetid:1319;] (Asset Permission Set) - Read permission has been granted on asset “Image #1319” for “Public User”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.permissions.grant - assetid:1319;] (Asset Permission Set) - Read permission has been granted on asset “Image #1319” for “sitewide”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.permissions.grant - assetid:1319;] (Asset Permission Set) - Write permission has been granted on asset “Image #1319” for “sitewide”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.linking.create - majorid:816;minorid:1319;linkid:1596;] (Asset Link Created) - “Image #1319” was successfully linked to “uploads”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “title” for asset “Image #1319” has been changed from “” to “not loaded”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “title” for asset “Image #1319” has been changed from “” to “not loaded”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “alt” for asset “Image #1319” has been changed from “” to “an image”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “alt” for asset “Image #1319” has been changed from “” to “an image”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “name” for asset “Image #1319” has been changed from “temp” to “elebits1_1280.jpg”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “name” for asset “Image #1319” has been changed from “temp” to “elebits1_1280.jpg”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “width” for asset “Image #1319” has been changed from “0” to “1280”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “width” for asset “Image #1319” has been changed from “0” to “”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “height” for asset “Image #1319” has been changed from “0” to “1024”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “height” for asset “Image #1319” has been changed from “0” to “”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “size” for asset “Image #1319” has been changed from “0” to “63729”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1319;] (Asset Attribute Changed) - The value of attribute “size” for asset “Image #1319” has been changed from “0” to “”

[2008-05-26 13:39:43][43:Nick Cowie][1024:mysource notice][ ] [asset.linking.create - majorid:849;minorid:1319;linkid:1597;] (Asset Link Created) - “elebits1_1280.jpg” was successfully linked to “images”[/codebox]



This is system.log for a successful upload

[codebox][2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset - assetid:1321;] (Asset Created) - New image “Image #1321” created

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.permissions.grant - assetid:1321;] (Asset Permission Set) - Read permission has been granted on asset “Image #1321” for “Public User”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.permissions.grant - assetid:1321;] (Asset Permission Set) - Read permission has been granted on asset “Image #1321” for “sitewide”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.permissions.grant - assetid:1321;] (Asset Permission Set) - Write permission has been granted on asset “Image #1321” for “sitewide”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.linking.create - majorid:816;minorid:1321;linkid:1600;] (Asset Link Created) - “Image #1321” was successfully linked to “uploads”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “title” for asset “Image #1321” has been changed from “” to “yay”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “title” for asset “Image #1321” has been changed from “” to “yay”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “alt” for asset “Image #1321” has been changed from “” to “this should work”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “alt” for asset “Image #1321” has been changed from “” to “this should work”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “name” for asset “Image #1321” has been changed from “temp” to “liningup.jpg”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “name” for asset “Image #1321” has been changed from “temp” to “liningup.jpg”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “width” for asset “Image #1321” has been changed from “0” to “2560”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “width” for asset “Image #1321” has been changed from “0” to “”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “height” for asset “Image #1321” has been changed from “0” to “1600”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “height” for asset “Image #1321” has been changed from “0” to “”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.fulllog.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “size” for asset “Image #1321” has been changed from “0” to “93843”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.attributes.scalar - assetid:1321;] (Asset Attribute Changed) - The value of attribute “size” for asset “Image #1321” has been changed from “0” to “”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.linking.create - majorid:849;minorid:1321;linkid:1601;] (Asset Link Created) - “liningup.jpg” was successfully linked to “images”

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.dates - assetid:1321;] (Asset Date Changed) - The published date of “liningup.jpg” was successfully changed from “never published” to “26th May 2008 3:51pm by user #43

[2008-05-26 15:51:11][43:Nick Cowie][1024:mysource notice][ ] [asset.status - assetid:1321;] (Asset Status Changed) - The status of “liningup.jpg” was successfully changed from “Under Construction” to “Live”[/codebox]

I suspect that the initial issue, regarding the Strict Standards errors for Mail appearing, is similar in issue to http://forums.matrix.squiz.net/index.php?showtopic=5009, which was handled as part of http://forums.matrix.squiz.net/index.php?showtopic=5009.


You have two options. You can wait until version 3.18.2 is released on Monday (2nd June), which will suppress Strict Standards warnings in that error handler (essentially respecting the error reporting default in Matrix). Some have also reported that this issue goes away by upgrading PEAR (as in, the core PEAR package) to version 1.7.2; I can’t vouch for that myself but you could also try that.



The Asset Builder uses its own error handler, but looking at the code, it should still be logging as far as I know…

See top of the post, upgrading to PEAR 1.7.2 resolved the issue. I was just tidying up and that upgrade just fixed it.


[quote]The Asset Builder uses its own error handler, but looking at the code, it should still be logging as far as I know…[/quote]

That was my main concern, error handling does not point to the culprit.